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.
Hello to everybody!
I use JBoss 4.2.0.GA. I wrote web service and its method uses java.lang.String as input parameter. I generated stubs using wsconsume. But when I try to invoke this method type of input parameter is net.java.dev.jaxb.array.StringArray, not java.lang.String. Why? Hpw can I solve this proplem? Thank you!
Please post here you service endpoint interface / service implementation and the wsdl contract the jbosws stack generated for you so that we can better understand what's happening.