Although not very experienced with XML / WebServices I was asked to look into a issue where ASP 3.5 webservice sometimes returnes a 400 'Bad Request'. Along with the issue I recieved an example of an accepted xml message, one with a rejected xml message.
I decided to test both xml messages against the webservice with SoapUI, with which I'm pretty unfamiliar with. I created a project based on the wsdl copied in the both xml messages and guess what BOTH files gave me a 400 - bad request.
SoapUI validation of both the sample requests tell me "line 4: XML declaration is not well formed" on the first line of the xml I pasted into the Soap envelope; "<?xml version="1.0" encoding="ISO-8859-1"?>".
After removing the XML declarations SoapUI Validiation succeedes an BOTH message were accepted and processed by the webservice when submitting the request???
Question 1: If understand correct the xml declaration should not be included in the soap envelope?
Question 2: Why is the xml message reported to be rejected with 400 - bad request succesfully accepted and processed by the webservice?