Getting Error reading XMLStreamReader: Unexpected character '"' when mocking soap endpoint
See original GitHub issueGetting Error reading XMLStreamReader: Unexpected character ‘"’ when mocking soap response.
Below is the sample of how i mocked a soap endpoint
{ "name": "mocking_SOAP_to_get_device_details", "operation": "POST", "url": "/ws", "request": { }, "response": { "status": 200, "body": "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"><SOAP-ENV:Header/><SOAP-ENV:Body><ns2:GetDeviceDetailsResponse xmlns:ns2=\"http://flexy.com/device\"><ns2:DeviceDetails><ns2:id>1</ns2:id><ns2:name>iPad</ns2:name><ns2:description>It is a tablet computers designed, developed and marketed by Apple.</ns2:description></ns2:DeviceDetails></ns2:GetDeviceDetailsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>" } }
But I’m getting the below error, Error reading XMLStreamReader: Unexpected character ‘"’ (code 34) in prolog; expected ‘<’
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top GitHub Comments
No problem dude and it’s not a big delay.😊 Thanks for the update.
Available in the below version and higher versions.