function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dipti AmbavaneDipti Ambavane 

org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected

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.
 
TJ McDowellTJ McDowell
What happens if you turn response.Ack = false?