Hi All-
I have got a simple service using Doc/Literal/Wrapped style. When I access the service
using a call object in my java/Axis client, the response message contains SOAP
Encoding for the Arrays. I need the output to match the Doc/Lit style. Is this a bug?
Appreciate your input.
Here is the simple java service:
---------------------------------------------
package com.test;
public class TestArray
{
public String[] echoArray()
{
String[] title = {"Book1", "Book2", "Book3", "Book4", "Book5"};
return title;
}
}
Here is the service entry:
--------------------------
<service name="urn:arrayDOC" provider="java:RPC" style="wrapped" use="literal">
<parameter name="allowedMethods" value="echoArray"/>
<parameter name="className" value="com.test.TestArray"/>
</service>
Here is the output I got:
-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<echoArrayResponse xmlns="urn:arrayDOC">
<echoArrayReturn soapenc:arrayType="xsd:string[5]"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<item xmlns="">Book1</item>
<item xmlns="">Book2</item>
<item xmlns="">Book3</item>
<item xmlns="">Book4</item>
<item xmlns="">Book5</item>
</echoArrayReturn>
</echoArrayResponse>
</soapenv:Body>
</soapenv:Envelope>
-Muthu