MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
billflood
Post subject: JAX-WS can't generate Complex type beans  PostPosted: Jul 22, 2009 - 12:13 AM
Registered Member
Registered Member


Joined: Jul 22, 2009
Posts: 3

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: JAX-WS can  PostPosted: Jul 22, 2009 - 10:34 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442

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.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
billflood
Post subject: RE: JAX-WS can  PostPosted: Jul 23, 2009 - 12:29 AM
Registered Member
Registered Member


Joined: Jul 22, 2009
Posts: 3

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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: JAX-WS can  PostPosted: Jul 24, 2009 - 06:07 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

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

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits