HELP, I am a newbie to SOAP and I am out of my depth.
I need to publish a web service that accepts and returns complex data structures.
I have been reading (and successfully implementing) all the examples I can find but I need to acomplish something beyond the simple examples I have found.
The following three classes are a simplified example of what I am trying to achive:
package au.mydomain.mytreeservice.mytype;
@XmlType(name="Node", namespace="urn:xfire:mytype.node")
class Node {
String name;
String description;
}
.............................
package au.mydomain.mytreeservice.mytype;
import au.mydomain.mytreeservice.mytype.Node;
@XmlType(name="Branch", namespace="urn:xfire:mytype.branch")
class Branch{
String name;
ArrayList<Branch> children;
ArrayList<Node> nodes;
}
.............................
package au.mydomain.mytreeservice;
import au.mydomain.mytreeservice.mytype.Node;
import au.mydomain.mytreeservice.mytype.Branch;
class MyService {
int importTree(Branch root);
root exportTree(int key);
}
I know how to publish the class MyService, but how do I publish the other two classes so that the MyService class works?