Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bit of Help needed! SOAP 1.1 Web Service Request/Response  RSS feed

 
Santiago Beltran
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone I hope you have enjoyed your weekend. My name is Santiago and it is my first post in this forum. Reason is that I've been having a hard time implementing a SOAP 1.1 request and response message on an xml file that manages what to print to a receipt printer. I'm getting the following error:
org.xml.sax.SAXParseException:
The markup in the document following the root element must be well-formed. Here is what I've got so far:

Here is the code I'm using inserted at the end of the xml file:


Any help, hint, tip will be greatly appreciated I need to present this tomorrow and not sure if I can accomplish it on my own.

Thank you everyone in advance,
God Bless you all!
 
g tsuji
Ranch Hand
Posts: 697
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[1]
org.xml.sax.SAXParseException:
The markup in the document following the root element must be well-formed.

Is it by itself at least suggestive enough to invite you to look at the root element? (a surplus stroke at the end before the angle bracket)


[2] And then if you have a namespace-aware parser in action, you should declare properly all the namespace prefixes (other than strictly needless xml and xmlns) That may be termed as namespace-well-formedness.

[2.1] In a sense, if the document is to be processed more than its syntactic facet of it to pick up some of its semantics, you should also declared xsd used in the value of xsi:type attribute. But in terms of well-formedness alone, it is not strictly necessary. In the same spirit, the mustUndestand attribute too.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!