[jboss-user] [JBossWS] - Re: String[] and jax-ws

shoeb1981 do-not-reply at jboss.com
Fri Dec 7 02:43:41 EST 2007


I've not worked much with web service. Here is my speculation only.


When you use web services, your use XML to communicate with the client. Not all the java in-build types are provided by xml schema (be a DTD or XSD). In this case,  you are returning Stringp[] array. There probably be no corresponding data type in the XSD for that. Or the tool that you have used to generate the WSDL might have translated the String[] to net.java.dev.jaxb.array.StringArray. So at client you are getting StringArray class.

If you don't want StringArray to be returned, you might need to change the WSDL to change the return type definition mentioned in the schema.

Hope that helps.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111116#4111116

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111116



More information about the jboss-user mailing list