Forum Discussion

stst's avatar
stst
New Contributor
9 years ago

How can I skip an empty request in a SOAP MockService?

Hi,

 

I'm having some nasty third party software, that seems to send an empty request just before every SOAP request. Unfortunately, the SOAP MockService returns an error 500 in this case. Moreover I get the XmlException: Content is not allowed.

In an OnRequest Script I can see that mockRequest.getRequestContent()==null.

 

Can you tell me how I can end the request procession in this case so that the MockService does not return an error but skips this request?

 

thanks,

Stefan

 

No RepliesBe the first to reply