• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

HttpClient invok CXF throw a strange error

Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



when i use httpclient to access the webservice's setRequestContent method the error is
HTTP/1.1 500 Internal Server Error
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Unmarshalling Error: Unexpected close tag </mer:setRequestContent>; expected </requestInfo>.
at [row,col {unknown-source}]: [1,465] </faultstring></soap:Fault></soap:Body></soap:Envelope>!
But when i use SoapUI it work normally,i think the error happened in the <merchant>,but i really want to pass the xml parameter to the method and i can't solve the problem by myself! I'll thank everyone who can help me to solve the problem!
Java Cowboy
Posts: 16084
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at lines 24 - 44 in your last code snippet. The XML is not well-formed; the </requestInfo> close tag is missing. That should be added between lines 41 and 42:
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!