Any ideas anyone? _____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12 February 2007 11:08 To: [email protected] Subject: WSS4J/Axis - SAXException: SimpleDeserializer encountered a child element, which is NOT expected I have an Axis client that can call an unsecure service (Spring-ws) without any problems. When I introduce a WSS4J Password Token, the service receives the request and validates it OK and then returns a valid response (the same response as when un-secured), but the client fails to read it with the following error: [java] Exception in thread "main" AxisFault [java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException <http://schemas.xmlsoap.org/soap/envelope/}Server.userException> [java] faultSubcode: [java] faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. [java] faultActor: [java] faultNode: [java] faultDetail: [java] {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException <http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException> : SimpleDeserializer encountered a child element, which is NOT expecte d, in something it was trying to deserialize. [java] at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeser ializer.java:145) [java] at org.apache.axis.encoding.DeserializationContext.startElement(Deserializa tionContext.java:1035) [java] at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java: 165) [java] at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j ava:1141) [java] at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) [java] at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) [java] at org.apache.axis.client.Call.invoke(Call.java:2467) [java] at org.apache.axis.client.Call.invoke(Call.java:2366) [java] at org.apache.axis.client.Call.invoke(Call.java:1812) [java] at org.springframework.ws.samples.sms.client.axis1.SessionMessagingSoapBind ingStub.getMessageDeliveryStatuses(Unknown Source) [java] at org.springframework.ws.samples.sms.client.axis1.Main.main(Unknown Source) [java] [java] {http://xml.apache.org/axis/}hostname:BTG197298 <http://xml.apache.org/axis/}hostname:BTG197298> I have found some similar posts in Google, but never a resolution. Please can anyone help out? TIA
