• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

HttpClient invok CXF throw a strange error

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


applicationContext-cxf.xml


wsdl





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
88
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:
 
Pay attention! Tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic