facebook

JAX-WS can’t generate Complex type beans

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #300669 Reply

    billflood
    Member

    I’m using ME Version: 7.5 Build id: 7.5-20090609

    I am generating a Web service from the bottom up.

    I have a Java class with two methods – one returns a simple class and this works fine.

    The other method returns a complex type containing an array of itself and an array of another simple class.

    public MessageBody[] GetMessageBody(String host, String user, String password, String protocol, int port, String readFolder, int[] msgNumbers)
    throws MailFault

    public class MessageBody {
    int msgNumber;
    String bodyText;
    Attachment[] attachments;
    MessageBody[] childParts; // Enbedded multipart

    }
    public class Attachment {
    String contentType;
    String fileName;
    byte[] content;
    }

    The only thing that shows up in the schema is MessageBody as a sequence with no other elements.

    The response is empty when this method is called and no fault occurs even though I can see the array is populated.

    Why don’t these complex types get annotated?

    thnaks

    #300674 Reply

    support-joy
    Member

    Billflood,

    I don’t have visibility of your complex web service. I would recommend you to try debugging and also try to cross post to relevant forums.

    #300703 Reply

    billflood
    Member

    In the classes shown above, MessageBody and Attachments, which are return types for the Web service method used in bottom up development, do not get annotated. I added these annotations manually to these types and the code worked.

    I am pretty sure this is a bug.

    The tool should annotate return types for Web service methods so they show up properly in the schema.

    #300776 Reply

    Loyal Water
    Member

    billflood,
    The dev team is looking into this issue. They will get back to you with a reply asap.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JAX-WS can’t generate Complex type beans

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