Hi!
I'm having problems with a document style web service published with Axis
1.4.
I've implemented an operation wich returns a complex object wich has a
String[] attribute inside.
Here is the mapping for the element:
<complexType name="Group">
<sequence>
<element name="children" nillable="true"
type="impl:ArrayOf_xsd_anyType"/>
<element name="name" nillable="true" type="xsd:string"/>
<element name="parent" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ArrayOf_xsd_anyType">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item"
type="xsd:anyType"/>
</sequence>
</complexType>
The soap invocation returns an xsd:string for each String[] element.
When I invoke the operation with Axis I get:
15-may-2008 11:48:25 org.apache.axis.client.Call invoke
GRAVE: Exception:
java.lang.NullPointerException
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:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:657)
at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.doInvoke(JaxRpcPortClientInterceptor.java:591)
at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:562)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
Debuggin axis code, I see that Axis can't found a desearializer for the
elements inside String[] because it gets null xsi type for the elements.
I have added the bean mapping on server and client for the Group complex
type.
I think I don't need to add any deserializer for the String[].
Am I missing anything.
Any help will be greatly appreciated.
--
View this message in context:
http://www.nabble.com/Problem-deserializing-a-String---object.-tp17249669p17249669.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]