question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Error reading XMLStreamReader: Unexpected character '"' when mocking soap endpoint

See original GitHub issue

Getting 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
arunvelusamydcommented, Feb 9, 2019

No problem dude and it’s not a big delay.😊 Thanks for the update.

0reactions
authorjappscommented, Oct 29, 2020

Available in the below version and higher versions.

<dependency>
  <groupId>org.jsmart</groupId>
  <artifactId>zerocode-tdd</artifactId>
  <version>1.3.2</version>
</dependency>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected character SOAP API - Stack Overflow
Solved ! Error reading XMLStreamReader: Unexpected character SOAP API ... I'm trying to communicate with SOAP API https://www.flussituristici.
Read more >
Error reading XMLStreamReader: Unexpected character 'S ...
Trying to invoke a SOAP web service. Mule Studio version : 7.9.0. Error Logs: Caused by: ...
Read more >
System.XmlException: start tag unexpected character
There are few things wrong with the xml. 1) In Apex, the string starts and end with single quotes ' , thus you...
Read more >
Sheet1 - Europe PMC
deployFromUrl uses wrong separator for building the service name from URL ... to get element text from XMLStreamReader provided by ADBBean, When reading...
Read more >
Facing issue while replicating EmployeeMaster Data from SF ...
We are using SOAP Adapter in HCI with SAP RM protocol. ... reading XMLStreamReader: Unexpected character 'j' (code 106) in prolog; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found