facebook

How To Publish Complex Data Structures

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #257327 Reply

    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?

    #257465 Reply

    Riyad Kalla
    Member

    Brendan,
    I’ve asked someone from the WS team to have a look at your post if they have a minute, please follow up with us if you find something on your own incase they are busy and forget to reply.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How To Publish Complex Data Structures

You must be logged in to post in the forum log in