axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Krishnamurthy <ra...@savvion.com>
Subject Axis 1.2.1 - arrayofstring as Object array from wrapped/style
Date Wed, 31 May 2006 20:46:51 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello:<br>
I have an object array as one of the field for the java bean called
SimpleBeanArray which is attached. As a test I assigned the Object[]
variable to String[]. <br>
<br>
<i><br>
</i>My service is defined as below:<br>
&lt;service name="tata" provider="java:RPC" style="wrapped"
use="literal"&gt;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;namespace&gt;<a class="moz-txt-link-freetext" href="http://testanytypearray.webservice.com">http://testanytypearray.webservice.com</a>&lt;/namespace&gt;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;parameter name="allowedMethods"
value="*"/&gt;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;parameter name="scope" value="request"/&gt;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;parameter name="className" value="test.AnyTypeArray"/&gt;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;arrayMapping<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:ns=<a class="moz-txt-link-rfc2396E" href="http://testanytypearray.webservice.com">"http://testanytypearray.webservice.com"</a><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
qname="ns:ArrayOf_xsd_anyType"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
type="java:java.lang.Object[]"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
innerType="cmp-ns:anyType"
xmlns:cmp-ns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
encodingStyle=""<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;typeMapping<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:ns=<a class="moz-txt-link-rfc2396E" href="http://testanytypearray.webservice.com">"http://testanytypearray.webservice.com"</a><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
qname="ns:SimpleJavaBeanArray"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
type="java:test.SimpleBeanArray"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
encodingStyle=""<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&gt;<br>
&nbsp;&lt;/service&gt;<br>
<br>
The service class is attached with the name AnyTypeArray.java<br>
<br>
The wsdl is also attached as TestAntTypeArray.wsdl<br>
<br>
but when I try to call the service&nbsp; method getgetSimpleBeanArray() from
.Net visual studio 2003 the soap message response looks like below:<br>
<br>
&lt;soapenv:Envelope
xmlns:soapenv=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a>
xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soapenv:Body&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;getSimpleBeanArrayResponse
xmlns=<a class="moz-txt-link-rfc2396E" href="http://testanytypearray.webservice.com">"http://testanytypearray.webservice.com"</a>&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;getSimpleBeanArrayReturn&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;name xsi:nil="true"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;value xsi:type="xsd:string"&gt;one&lt;/value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;value xsi:type="xsd:string"&gt;two&lt;/value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/getSimpleBeanArrayReturn&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/getSimpleBeanArrayResponse&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/soapenv:Body&gt;<br>
&nbsp;&nbsp; &lt;/soapenv:Envelope&gt;<br>
<br>
But the value for the array is null on the client object representation
of SimpleBeanArray.value field. Let me know if I'm doing anything
wrong. <br>
<br>
Thanks for your time,<br>
Ravi<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>

Mime
View raw message