Saturday, 15 February 2014

How to submit invalid XML through QTP Web Services -


I am trying to submit an XML using the Web service tool in QPP. I can submit valid XML with no problem, but when I try to submit an invalid XML for a negative test (such as setting an element value for 'XXX', when it should be a valid date ). I keep an error on the line

SetXMLRequest = Set WebServices (webservicename). SubmitRequest (subReq)

error "is an error in the XML document (92,8) with exception: mscorlib string not recognized as valid date time

by submitting a request How do I stop XML data from being valid?

Did you use the web service tool Have tried to kill the web service via ktp? I am trying to kill the web service via ktp / uff I can run any of the services that are in my part without any suite. I can deposit whatever APIs I want to do.

I have to check the reaction after submitting the faulty XML / JSON data. So that it can be ensured that the check was done before it was processed by the main service, what you are trying to do.

Actually, by not using that device, what Submit it Area before it can be used to validate your request? If so, then it will not be possible to inject bad request data.

No comments:

Post a Comment