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 Thu, 25 May 2006 01:58:41 GMT
More information:
The exception that I mentioned happens only if the webservice is a 
document/literal/wrapped but with RPC it is fine.

Is there is any known bug related to wrapped/literal style, anytype and 
ArrayOfString and axis1.2.1

Thanks,
Ravi

Ravi Krishnamurthy wrote:

> Hello;
> One of the javabean I have registered as a bean mapping has a field of 
> Object type which corresponds to xsd:anyType. But the types  for 
> Object are always primitive types. As long they are primitives it 
> works fine. I tried to pass String[] and it started to throw exception 
> at the test cases generated by wsdl2java when I executed the JUnit 
> test case as below:
>
> AxisFault
>  faultCode: 
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXException: No deserializer for 
> {http://www.w3.org/2001/XMLSchema}anyType
>  faultActor:
>  faultNode:
>  faultDetail:
>     {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: 
> No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
>     at 
> org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:314)
>     at 
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
>     at 
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
>     at 
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
>     at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>     at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>     at org.apache.axis.client.Call.invoke(Call.java:2448)
>     at org.apache.axis.client.Call.invoke(Call.java:2347)
>     at org.apache.axis.client.Call.invoke(Call.java:1804)
>     at 
> com.savvion.webservice.workflow.BizLogic1SoapBindingStub.getProcessTemplateDataSlot(BizLogic1SoapBindingStub.java:1704)
>     at 
> com.savvion.webservice.workflow.WorkFlowWSServiceTestCase.test20BizLogic1GetProcessTemplateDataSlot(WorkFlowWSServiceTestCase.java:457)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:324)
>     at junit.framework.TestCase.runTest(TestCase.java:216)
>     at junit.framework.TestCase.runBare(TestCase.java:188)
>     at junit.framework.TestResult$1.protect(TestResult.java:150)
>     at junit.framework.TestResult.runProtected(TestResult.java:168)
>     at junit.framework.TestResult.run(TestResult.java:153)
>     at junit.framework.TestCase.run(TestCase.java:179)
>     at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
>     at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
>     at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
>     {http://xml.apache.org/axis/}hostname:chennai
>
> The returned soap envelop looks like below:
> HTTP/1.1 200 OK
>
> Date: Wed, 24 May 2006 23:45:26 GMT
>
> Content-Type: text/xml; charset=utf-8
>
> Connection: Close
>
>
>
> <?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>
>          <getProcessTemplateDataSlotResponse 
> xmlns="http://workflow.webservice.savvion.com">
>             <getProcessTemplateDataSlotReturn>
>                <choices xsi:nil="true"/>
>                <isReadOnly>false</isReadOnly>
>                <isWriteOnly>false</isWriteOnly>
>                <name>listds</name>
>                <ptid>1</ptid>
>                <type>LIST</type>
>                <value>
>                   <value>one</value>
>                   <value>ten</value>
>                </value>
>             </getProcessTemplateDataSlotReturn>
>          </getProcessTemplateDataSlotResponse>
>       </soapenv:Body>
>    </soapenv:Envelope>
>
> and the xsd:anytype if for the following element:
>                 <value>
>                   <value>one</value>
>                   <value>ten</value>
>                </value>
>
> Would appreciate any help on this.
>
> Thanks,
> Ravi




---------------------------------------------------------------------
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