Forum Discussion

mishra232's avatar
mishra232
New Contributor
12 years ago

Content is not allowed in prolog

Hi,

I am using SOAP UI 4.6.

Configured SOAP UI Mock service which running on port 8080. but after SOAP UI get's request from my application it's giving error in the logs :-
ERROR:An error occured [org.apache.xmlbeans.XmlException: error: Content is not allowed in prolog.], see error log for details.

What to do to resolve it.

ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: org.apache.xmlbeans.XmlException: error: Content is not allowed in prolog.
com.eviware.soapui.impl.wsdl.mock.DispatchException: org.apache.xmlbeans.XmlException: error: Content is not allowed in prolog.

Mock Service Proprties, Require SOAP Action is false and Dispatch Resonses is true.

Thanks!
Vishal
  • Hi,

    Do you have an empty soap action by chance?
    Example: <wsdlsoap:operation soapAction=""/>
  • mishra232's avatar
    mishra232
    New Contributor
    Thanks James for reply.

    No I don't have empty soap action.
    when within SOAP UI itself I run request to the same mock server I get correct reply.

    Also one more thing I want to do is creating some global variable like count which can display total number of responses sent by the mock server.
    for that I have created one property "count" inside properties (left tab of start script) and would like to use this count variable inside OnRequest script so that there I can do ++ and printing it to some outputfile to know total number of reponses.
  • Hi,

    when within SOAP UI itself I run request to the same mock server I get correct reply.


    Are you running this service outside of SoapUI such as deployed as a war file on a application server and getting this error?


    As for the property question please look at http://www.soapui.org/Scripting-Propert ... properties.
    Properties can be dynamically changed with groovy script property expansion.