• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error when receiving SOAP message from a web service

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have built a JAXWS web service which returns an Object (ResultReport) as result. This class contains a result string and a SOAPMessage.

My webservices executes a method which builds a SOAPMessage. In the web service I have build a test class to verify if everything is OK.

My test class:



My buildReport method:


The result is the expected. The value of the SOAPMessage is written on the console and it is:



However, when I call the buildReport webservice method from a client class, I get an error:



The error happens in the buildReport method when I try to build my SOAPMessage (final SOAPMessage m = (SOAPMessage) TestExport.process(xml);).

For now, it is a simple SOAPMessage. But I am doing this because I want to add an attachment into the SOAPMessage and return it to the client who called the web service.

Thanks for any help
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you check the content of the xml which is the input to the method? Can you post that?
 
reply
    Bookmark Topic Watch Topic
  • New Topic