Hi, The possible issues here can be :
- Your incoming message is encrypted and the handler is not configured to decrypt the encrypted body and the de-serialization fails. - The de-seialization logic might be trying to de-serialize the wsse:Security header into some available type ... Can this happen?? ... Can someone with experience on Axis 1.x de-serialization shed some light on this please? Thanks, Ruchith On Tue, May 27, 2008 at 9:22 PM, José Ferreiro <[EMAIL PROTECTED]> wrote: > Thank you Ruchith, > > This is the stack trace. > As already said the exchange works well if I don't use WSS4J but only Axis > 1.4 > > > > > - Verification successful for URI "#id-3125250" > - Verification successful for URI "#SigConf-1693359" > - Exception: > org.xml.sax.SAXException: SimpleDeserializer encountered a child element, > which is NOT expected, in something it was trying to deserialize. > at > org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) > 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.unece.tir.wss.itdbonlineplus.tests.client.BasicComplexTypeSOAPSoapBindingStub.basicComplexType(BasicComplexTypeSOAPSoapBindingStub.java:201) > at > org.unece.tir.wss.itdbonlineplus.tests.client.ClientTester.returnArray(ClientTester.java:64) > at > org.unece.tir.wss.itdbonlineplus.tests.client.ClientTester.main(ClientTester.java:20) > ; nested exception is: > org.xml.sax.SAXException: SimpleDeserializer encountered a child > element, which is NOT expected, in something it was trying to deserialize. > > > On Tue, May 27, 2008 at 5:49 PM, Ruchith Fernando > <[EMAIL PROTECTED]> wrote: >> >> Can you please send the stack trace that is generated by WSS4J? >> >> Thanks, >> Ruchith >> >> On Tue, May 27, 2008 at 9:09 PM, José Ferreiro <[EMAIL PROTECTED]> >> wrote: >> > Hello, >> > >> > I am trying to exchange an array using Axis 1.4 and wss4j 1.5.3 >> > >> > The exchange between the client and the server works well when only >> > using >> > axis 1.4. that is to say there is no security implied. The client and >> > the >> > server exchange the information well. >> > >> > Once I apply the layer security that is to say wss4j then I encounter >> > the >> > following mistake in the client side: >> > >> > SimpleDeserializer encountered a child element, which is NOT expected, >> > in >> > something it was trying to deserialize. at >> > >> > org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) >> > >> > It has to be noticed that the server deserialized well the request and >> > produced a response. >> > >> > Does anyone has an idea? >> > >> > Thank you. >> > >> > >> > -- >> > José Ferreiro >> > ing.sys.com.dipl.EPFL >> > >> > >> >> >> >> -- >> http://blog.ruchith.org >> http://wso2.org > > > > -- > José Ferreiro > ing.sys.com.dipl.EPFL > > -- http://blog.ruchith.org http://wso2.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
