org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize

19,419

It sounds as though you're sending it an element it's not expecting, i.e. your request is invalid for some reason. Check it with a lint tool to ensure it's valid, then double check the spec for the service you're making the request to.

Failing that, you'll need to provide a lot more information to get a better answer.

Share:
19,419
Vivek
Author by

Vivek

Updated on June 04, 2022

Comments

  • Vivek
    Vivek almost 2 years

    i am trying to call service by passing xml request. but i am getting error in response xml. Can you please help in this problem. I am using soapUI and i have set credential in request header. Response : soapenv:Server.userException org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.