I am trying to test an outbound messaging request end to end from sandbox A to B. Have imported the WSDL from sandbox A to B. Have given the endpoint in server A as server B's URL (but as both these sandboxes are on same server cs*,have give the url of the wsdl2apex ).
But it keeps failing with the below message :
org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
Am just starting to explore API using Apex and would like to know: post executing the wsdl2apex in server B : with 4 classes --and referring the endpoint as i understand-still it doesn't work. I am not aware if I need to edit this wsdl2apex code to make this work or is a way that i can parse the XML received in the wsdl2apex to check if the message from server A has been received and then fails due to some xyz reason ?