axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Krishnamurthy <ra...@savvion.com>
Subject Re: String[] for xsd:anyType with axis1.2.1
Date Fri, 26 May 2006 00:04:53 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">
Anne:<br>
Changing to Object[] also does not work.<br>
<br>
Regards,<br>
Ravi<br>
Anne Thomas Manes wrote:
<blockquote
 cite="midbf414ee60605250549u7c519c86p239eb8bd5da321e8@mail.gmail.com"
 type="cite">Perhaps you need Object[] rather than Object.<br>
  <br>
Anne<br>
  <br>
  <div><span class="gmail_quote">On 5/25/06, <b
 class="gmail_sendername">Hariharasudhan.D Dhakshinamoorthy</b> &lt;<a
 href="mailto:hariharasudhan.d@gmail.com">
hariharasudhan.d@gmail.com</a>&gt; wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
    <div>
    <div>Ravi ,</div>
    <div>i too have the same problem , could you figure out something ?
    <br>
    <br>
&nbsp;</div>
    </div>
    <div><span class="e" id="q_10b6a8786a4db98d_1">
    <div><span class="gmail_quote">On 5/25/06, <b
 class="gmail_sendername">Ravi Krishnamurthy</b> &lt;<a
 href="mailto:ravik@savvion.com" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">ravik@savvion.com
    </a>&gt; wrote:</span>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left:
1ex;">Hello;<br>
Would be evry helpful if someone could reply this email.<br>
      <br>
thanks,<br>
Ravi<br>
      <br>
Ravi Krishnamurthy wrote: <br>
      <br>
&gt; More information:<br>
&gt; The exception that I mentioned happens only if the webservice is a<br>
&gt; document/literal/wrapped but with RPC it is fine.<br>
&gt;<br>
&gt; Is there is any known bug related to wrapped/literal style,
anytype <br>
&gt; and ArrayOfString and axis1.2.1<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ravi<br>
&gt;<br>
&gt; Ravi Krishnamurthy wrote:<br>
&gt;<br>
&gt;&gt; Hello;<br>
&gt;&gt; One of the javabean I have registered as a bean mapping has a
field <br>
&gt;&gt; of Object type which corresponds to xsd:anyType. But the
types&nbsp;&nbsp;for<br>
&gt;&gt; Object are always primitive types. As long they are primitives
it<br>
&gt;&gt; works fine. I tried to pass String[] and it started to throw <br>
&gt;&gt; exception at the test cases generated by wsdl2java when I
executed<br>
&gt;&gt; the JUnit test case as below:<br>
&gt;&gt;<br>
&gt;&gt; AxisFault<br>
&gt;&gt;&nbsp;&nbsp;faultCode:<br>
&gt;&gt; {<a
 href="http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://schemas.xmlsoap.org/soap/envelope/}Server.userException</a><br>
&gt;&gt;&nbsp;&nbsp;faultSubcode:<br>
&gt;&gt;&nbsp;&nbsp;faultString: org.xml.sax.SAXException: No deserializer
for<br>
&gt;&gt; {<a href="http://www.w3.org/2001/XMLSchema%7DanyType"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.w3.org/2001/XMLSchema}anyType</a><br>
&gt;&gt;&nbsp;&nbsp;faultActor:<br>
&gt;&gt;&nbsp;&nbsp;faultNode:<br>
&gt;&gt;&nbsp;&nbsp;faultDetail:<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; {<a
 href="http://xml.apache.org/axis/%7DstackTrace:org.xml.sax.SAXException"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException </a>:<br>
&gt;&gt; No deserializer for {<a
 href="http://www.w3.org/2001/XMLSchema%7DanyType" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">
http://www.w3.org/2001/XMLSchema}anyType</a><br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt; org.apache.axis.encoding.ser.BeanDeserializer.onStartChild
(BeanDeserializer.java:314)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt; org.apache.axis.encoding.DeserializationContext.startElement
(DeserializationContext.java:1035)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt; org.apache.axis.message.SAX2EventRecorder.replay
(SAX2EventRecorder.java:165)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt; org.apache.axis.message.MessageElement.publishToHandler
(MessageElement.java:1141)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt; org.apache.axis.message.RPCElement.deserialize
(RPCElement.java:236)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
      <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke(Call.java:2448)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke
(Call.java:2347)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.axis.client.Call.invoke(Call.java:1804)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at
      <br>
&gt;&gt;
com.savvion.webservice.workflow.BizLogic1SoapBindingStub.getProcessTemplateDataSlot(BizLogic1SoapBindingStub.java
:1704)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt;
com.savvion.webservice.workflow.WorkFlowWSServiceTestCase.test20BizLogic1GetProcessTemplateDataSlot
(WorkFlowWSServiceTestCase.java:457)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native
Method)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt;
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt;
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:324)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.runTest(TestCase.java:216)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.runBare(TestCase.java
:188)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at
junit.framework.TestResult$1.protect(TestResult.java:150)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at junit.framework.TestResult.runProtected
(TestResult.java:168)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at junit.framework.TestResult.run(TestResult.java
:153)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.run(TestCase.java:179)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt;
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:478)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at <br>
&gt;&gt;
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at<br>
&gt;&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java :196)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; {<a href="http://xml.apache.org/axis/%7Dhostname:chennai"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://xml.apache.org/axis/}hostname:chennai
      </a><br>
&gt;&gt;<br>
&gt;&gt; The returned soap envelop looks like below:<br>
&gt;&gt; HTTP/1.1 200 OK<br>
&gt;&gt;<br>
&gt;&gt; Date: Wed, 24 May 2006 23:45:26 GMT<br>
&gt;&gt;<br>
&gt;&gt; Content-Type: text/xml; charset=utf-8
      <br>
&gt;&gt;<br>
&gt;&gt; Connection: Close<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; <br>
&gt;&gt; &lt;?xml version="1.0" encoding="utf-8"?&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;soapenv:Envelope<br>
&gt;&gt; xmlns:soapenv="
      <a href="http://schemas.xmlsoap.org/soap/envelope/"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://schemas.xmlsoap.org/soap/envelope/
      </a>"<br>
&gt;&gt; xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.w3.org/2001/XMLSchema</a>"<br>
&gt;&gt; xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2001/XMLSchema-instance
      </a>"&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soapenv:Body&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;getProcessTemplateDataSlotResponse<br>
&gt;&gt; xmlns="<a href="http://workflow.webservice.savvion.com/"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://workflow.webservice.savvion.com </a>"&gt;<br>
&gt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&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;value&gt;one&lt;/value&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;value&gt;ten&lt;/value&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/value&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/getProcessTemplateDataSlotReturn&gt; <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/getProcessTemplateDataSlotResponse&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/soapenv:Body&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/soapenv:Envelope&gt;<br>
&gt;&gt;<br>
&gt;&gt; and the xsd:anytype if for the following element:
      <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;value&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;value&gt;one&lt;/value&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;value&gt;ten&lt;/value&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/value&gt;<br>
&gt;&gt;<br>
&gt;&gt; Would appreciate any help on this. <br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Ravi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;
---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: <a
 href="mailto:axis-user-unsubscribe@ws.apache.org" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">
axis-user-unsubscribe@ws.apache.org</a><br>
&gt; For additional commands, e-mail: <a
 href="mailto:axis-user-help@ws.apache.org" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">axis-user-help@ws.apache.org
      </a><br>
&gt;<br>
      <br>
      <br>
      <br>
--------------------------------------------------------------------- <br>
To unsubscribe, e-mail: <a
 href="mailto:axis-user-unsubscribe@ws.apache.org" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">
axis-user-unsubscribe@ws.apache.org</a><br>
For additional commands, e-mail: <a
 href="mailto:axis-user-help@ws.apache.org" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">axis-user-help@ws.apache.org
      </a><br>
      <br>
    </blockquote>
    </div>
    <br>
    </span></div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message