I want to use rpc/lit with Arrays. I have a method returning a String[]. If I don't use a wrapper for the String[], it looks like my String[] is returned rpc/ENCODED (and not rpc/LITERAL, according to wsdl) from the server:
| <soapenv:Body> | <ns1:hellostringArrayResponse xmlns:ns1="http://db.bioinfo.rzg.mpg.de"> | <ns2:StringArray soapenc:arrayType="xsd:string[4]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://arrays/java/lang"> | <item>one</item> | <item>two</item> | <item>three</item> | <item>jboss47</item> | </ns2:StringArray> | </ns1:hellostringArrayResponse> | </soapenv:Body> | If I use a wrapper as returntype (MyStringArray.java), rpc/lit is used: | <soapenv:Body> | <ns1:hellostringArrayWRAPPEDResponse xmlns:ns1="http://db.bioinfo.rzg.mpg.de"> | <ns1:MyStringArray> | <stringArray>one</stringArray> | <stringArray>two</stringArray> | <stringArray>three</stringArray> | <stringArray>jboss47</stringArray> | </ns1:MyStringArray> | </ns1:hellostringArrayWRAPPEDResponse> | </soapenv:Body> | I think the same happens with ACustomObject[]. Question: Is it possible at all to use rpc/lit with return types String[], ACustomObject[] (without wrapping them !!!)? [If yes:]What do I have to do to encode them correctly with rpc/lit (perhaps add a typemapping in the ws4ee-deployment.xml -> which (De)SerializerFactory class?)? [If no:] Please tell me so! Thanks for any comments & help! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884539#3884539 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884539 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
