When calling a Web Service, SOAP error "Content is not allowed in prolog".
SOLUTION:
The error was caused by the target URL being incorrect in the Web Service resource. The customer had put in the URL from where he does the query when using a browser, instead of the .asmx address.
The error from the server log was:
Code: Select all
Tue Jul 10 16:26:10: Error : Content is not allowed in prolog.
Tue Jul 10 16:26:11: Debug : XML Web Services Example in performCall() - XML response document written to console
Tue Jul 10 16:26:11: Debug : <xml>
<soapenv>
<soapenv>
<soapenv>
<faultcode>soap:Client</faultcode>
<faultstring>Content is not allowed in prolog.</faultstring>
<faultactor>
<detail>
<errordetail>soap:ClientContent is not allowed in prolog.</errordetail>
</detail>
</soapenv>
</soapenv>
</soapenv>