Web Service error: 'Content is not allowed in prolog'.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

User avatar
Sarah
Ebase User
Posts: 63
Joined: Fri Sep 07, 2007 2:42 pm
Location: Sandy, UK
Contact:

Web Service error: 'Content is not allowed in prolog'.

#1

Postby Sarah » Tue Sep 25, 2007 4:03 pm

Problem:
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&#58;26&#58;11&#58; Debug &#58; <xml>
<soapenv>
<soapenv>
<soapenv>
<faultcode>soap&#58;Client</faultcode>
<faultstring>Content is not allowed in prolog.</faultstring>
<faultactor>
<detail>
<errordetail>soap&#58;ClientContent is not allowed in prolog.</errordetail>
</detail>
</soapenv>
</soapenv>
</soapenv>
0 x

Who is online

Users browsing this forum: No registered users and 2 guests