axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Keese <bi...@tech.beacon-it.co.jp>
Subject Re: Returning arrays to .Net (again)
Date Thu, 10 Feb 2005 01:19:34 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">
It doesn't work because your WSDL specifies an element called
&lt;listReturn&gt; but your response doesn't contain such an element.<br>
<br>
I think you need Eric Chijoke's code modification (hereafter referred
to as "Eric Chijoke's famous Axis array patch" :-)<br>
<br>
Bill<br>
<br>
Eugene Shershnev wrote:
<blockquote cite="mid03af01c50ec4$e517ac80$5e2a010a@eshershn0011"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2800.1479" name="GENERATOR">
  <style></style>
  <div><font size="2">Hi All,</font></div>
  <div>&nbsp;</div>
  <div><font size="2">I've searched through the list trying to find why
.Net client does not see the array of beans returned by&nbsp;Axis-based
wrapped service.</font></div>
  <div><font size="2">I've tried everything I found except changing the
code as was suggested by Eric Chijioke at <a
 href="http://marc.theaimsgroup.com/?l=axis-user&amp;m=109606665519335&amp;w=2">http://marc.theaimsgroup.com/?l=axis-user&amp;m=109606665519335&amp;w=2</a></font></div>
  <div>&nbsp;</div>
  <div><font size="2">The response that I have now&nbsp;looks fine to me,
but .Net still gets an empty array back.</font></div>
  <div>&nbsp;</div>
  <div><font size="2">Any tips will be greatly appreciated.</font></div>
  <div>&nbsp;</div>
  <div><font size="2">The WSDL is attached (didn't want to make the
message body huge) but the response is here:</font></div>
  <div>&nbsp;</div>
  <div><font size="2">&lt;soapenv:Envelope<br>
&nbsp;&nbsp;&nbsp; xmlns:soapenv="<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>"<br>
&nbsp;&nbsp;&nbsp; xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"<br>
&nbsp;&nbsp;&nbsp; xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"&gt;<br>
&nbsp; &lt;soapenv:Body&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;listResponse xmlns="<a href="http://enterprise.ent">http://enterprise.ent</a>"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item xsi:type="ns1:EntDocument"
xmlns:ns1="<a
 href="http://enterprise.ent">http://enterprise.ent</a>"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;URI
xsi:type="xsd:string"&gt;ent://000000000080ea83202a2bf6b9724d04&lt;/URI&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;created
xsi:type="xsd:dateTime"&gt;2005-02-02T21:42:31.765Z&lt;/created&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;name xsi:type="xsd:string"&gt;TEST&lt;/name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;size xsi:type="xsd:long"&gt;0&lt;/size&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/item&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item xsi:type="ns2:EntDocument"
xmlns:ns2="<a
 href="http://enterprise.ent">http://enterprise.ent</a>"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;URI
xsi:type="xsd:string"&gt;ent://000000000080f9502c042b57dd68d7eb&lt;/URI&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;created
xsi:type="xsd:dateTime"&gt;2005-02-08T15:39:49.640Z&lt;/created&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;name xsi:type="xsd:string"&gt;FirstNewDocument&lt;/name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;size xsi:type="xsd:long"&gt;0&lt;/size&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/item&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/listResponse&gt;<br>
&nbsp; &lt;/soapenv:Body&gt;<br>
&lt;/soapenv:Envelope&gt;<br>
  </font></div>
  <div><font size="2">The WSDL was originally auto-generated by Axis,
but was later slightly modified.</font></div>
  <div>&nbsp;</div>
  <div><font size="2">Also, here is my deploy.wsdd file:</font></div>
  <div>&nbsp;</div>
  <div><font size="2">&lt;deployment xmlns="<a
 href="http://xml.apache.org/axis/wsdd/">http://xml.apache.org/axis/wsdd/</a>"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:java="<a
 href="http://xml.apache.org/axis/wsdd/providers/java">http://xml.apache.org/axis/wsdd/providers/java</a>"&gt;</font></div>
  <div>&nbsp;</div>
  <div><font size="2">&nbsp; &lt;service name="ent" provider=<a class="moz-txt-link-rfc2396E"
href="java:RPC">"java:RPC"</a>
style="wrapped" use="literal"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;wsdlFile&gt;ent-wrapped.wsdl&lt;/wsdlFile&gt;</font></div>
  <div>&nbsp;</div>
  <div><font size="2">&nbsp;&nbsp;&nbsp; &lt;parameter name="className"
value="ent.enterprise.EntAPI" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;parameter name="allowedMethods" value="load write clear
list
delete read create login logout"/&gt;</font></div>
  <div>&nbsp;</div>
  <div><font size="2">&nbsp;&nbsp;&nbsp; &lt;operation name="list"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qname="ns:list"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; returnQName="ns:item"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; returnType="ns:ArrayOf_EntDocument"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:ns="<a href="http://enterprise.ent">http://enterprise.ent</a>"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter name="sid" qname="ns:sid"
type="xsd:string"
mode="IN" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/operation&gt;</font></div>
  <div>&nbsp;</div>
  <div><font size="2">&nbsp;&nbsp;&nbsp; &lt;beanMapping<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:ns="<a href="http://enterprise.ent">http://enterprise.ent</a>"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qname="ns:EntDocument"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; languageSpecificType=<a class="moz-txt-link-rfc2396E"
href="java:ent.enterprise.EntDocument">"java:ent.enterprise.EntDocument"</a>/&gt;<br>
&nbsp; &lt;/service&gt;</font></div>
  <div>&nbsp;</div>
  <div><font size="2">&lt;/deployment&gt;<br>
  </font></div>
  <div>&nbsp;</div>
  <div><font size="2">Thanks for any help,</font></div>
  <div><font size="2">Eugene</font></div>
  <div><font size="2">&nbsp;</font></div>
</blockquote>
</body>
</html>

Mime
View raw message