• Dipti Ambavane
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected
I am getting the above exception (as in the subject line) for outbound message.
 
Please see the code block below
 
We are using Businessconnect WSDL , hosted in salesforce:
https://equifax-1498--full.cs17.cloudforce.com/soap/wfoutbound.jsp?aid=04kg00000004DHj&type=Partner
 
 We are calling this notification  service in WCF class library in .NET version 4.5
Here is our .Code
 
public notificationsResponse notifications (notifications notificationsRequest)

notificationsResponse response = new notificationsResponse();
response.Ack = true;
return response ;
}
 
Here is the response , which is returned by Web Method. We don’t want to get  < notificationsResult > tag in response.
 
        <notificationsResponse xmlns="http://tempuri.org/">
            <notificationsResult>
                <Ack xmlns="http://soap.sforce.com/2005/09/outbound">true</Ack>
            </notificationsResult>
        </notificationsResponse>
 
Appreciate your quick response.