iliasbasha
15 years agoNew Contributor
Problem while consuming a webservice that expects an xml packet as the reques
Hi,
I have to get the response from a webservice which expects an xml packet as the parameter.
And i am using soap-ui for the simulation of my application. I have copied the expected response packet in the place of the response field in the static soap-ui response.
Now when i make a webservice call, by pointing to the soap-ui url. I am getting the following exception.
Hi,
I have to get the response from a webservice which expects an xml packet as the parameter.
And i am using soap-ui for the simulation of my application. I have copied the expected response packet in the place of the response field in the static soap-ui response.
Now when i make a webservice call, by pointing to the soap-ui url. I am getting the following exception.
view plaincopy to clipboardprint?
1. AxisFault
2. faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
3. faultSubcode:
4. faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
5. faultActor:
6. faultNode:
7. faultDetail:
8. {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
9. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
10. at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
11. at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
12. at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
13. at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
14. at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
15. at org.apache.axis.client.Call.invoke(Call.java:2467)
16. at org.apache.axis.client.Call.invoke(Call.java:2366)
17. at org.apache.axis.client.Call.invoke(Call.java:1812)
18. at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197)
19. at SOAP.Try.main(Try.java:34)
20.
21. {http://xml.apache.org/axis/}hostname:SGSLDTP0463
22.
23. org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
24. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
25. at org.apache.axis.client.Call.invoke(Call.java:2470)
26. at org.apache.axis.client.Call.invoke(Call.java:2366)
27. at org.apache.axis.client.Call.invoke(Call.java:1812)
28. at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197)
29. at SOAP.Try.main(Try.java:34)
30. Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
31. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
32. at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
33. at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
34. at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
35. at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
36. at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
37. at org.apache.axis.client.Call.invoke(Call.java:2467)
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: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 com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197) at SOAP.Try.main(Try.java:34) {http://xml.apache.org/axis/}hostname:SGSLDTP0463 org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.client.Call.invoke(Call.java:2470) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197) at SOAP.Try.main(Try.java:34) Caused by: 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)
Can anybody guide me where i am doing the mistake...
Thanks in advance..
I have to get the response from a webservice which expects an xml packet as the parameter.
And i am using soap-ui for the simulation of my application. I have copied the expected response packet in the place of the response field in the static soap-ui response.
Now when i make a webservice call, by pointing to the soap-ui url. I am getting the following exception.
1. AxisFault
2. faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
3. faultSubcode:
4. faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
5. faultActor:
6. faultNode:
7. faultDetail:
8. {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
9. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
10. at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
11. at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
12. at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
13. at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
14. at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
15. at org.apache.axis.client.Call.invoke(Call.java:2467)
16. at org.apache.axis.client.Call.invoke(Call.java:2366)
17. at org.apache.axis.client.Call.invoke(Call.java:1812)
18. at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197)
19. at SOAP.Try.main(Try.java:34)
20.
21. {http://xml.apache.org/axis/}hostname:SGSLDTP0463
22.
23. org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
24. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
25. at org.apache.axis.client.Call.invoke(Call.java:2470)
26. at org.apache.axis.client.Call.invoke(Call.java:2366)
27. at org.apache.axis.client.Call.invoke(Call.java:1812)
28. at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197)
29. at SOAP.Try.main(Try.java:34)
30. Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
31. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
32. at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
33. at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
34. at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
35. at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
36. at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
37. at org.apache.axis.client.Call.invoke(Call.java:2467)
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: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 com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197) at SOAP.Try.main(Try.java:34) {http://xml.apache.org/axis/}hostname:SGSLDTP0463 org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.client.Call.invoke(Call.java:2470) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197) at SOAP.Try.main(Try.java:34) Caused by: 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)
Hi,
I have to get the response from a webservice which expects an xml packet as the parameter.
And i am using soap-ui for the simulation of my application. I have copied the expected response packet in the place of the response field in the static soap-ui response.
Now when i make a webservice call, by pointing to the soap-ui url. I am getting the following exception.
view plaincopy to clipboardprint?
1. AxisFault
2. faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
3. faultSubcode:
4. faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
5. faultActor:
6. faultNode:
7. faultDetail:
8. {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
9. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
10. at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
11. at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
12. at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
13. at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
14. at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
15. at org.apache.axis.client.Call.invoke(Call.java:2467)
16. at org.apache.axis.client.Call.invoke(Call.java:2366)
17. at org.apache.axis.client.Call.invoke(Call.java:1812)
18. at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197)
19. at SOAP.Try.main(Try.java:34)
20.
21. {http://xml.apache.org/axis/}hostname:SGSLDTP0463
22.
23. org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
24. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
25. at org.apache.axis.client.Call.invoke(Call.java:2470)
26. at org.apache.axis.client.Call.invoke(Call.java:2366)
27. at org.apache.axis.client.Call.invoke(Call.java:1812)
28. at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197)
29. at SOAP.Try.main(Try.java:34)
30. Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
31. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
32. at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
33. at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
34. at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
35. at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
36. at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
37. at org.apache.axis.client.Call.invoke(Call.java:2467)
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: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 com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197) at SOAP.Try.main(Try.java:34) {http://xml.apache.org/axis/}hostname:SGSLDTP0463 org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.client.Call.invoke(Call.java:2470) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.bankdhofar.beans.BdWsSoapBindingStub.getTelecomCustomerBillInfo(BdWsSoapBindingStub.java:197) at SOAP.Try.main(Try.java:34) Caused by: 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)
Can anybody guide me where i am doing the mistake...
Thanks in advance..