This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating soap requests in java

 
Lavanya Halliwell
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code snippet below is my attempt at creating a soap request. I can see the parts of my envelope, and even add content to the body with out compilation error. However, when I try to print the request at the end of the snippet all I get is null. What is the appropriate way to view a soap request like this? why do you suppose that it is coming as null?

(for the purpose of this topic, I created a simple java application and imported the required resources, I am not actually making a request of any web service as of yet)


 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Here is a method that creates a string representation of an instance of SOAPMessage, along with any MIME attachments to the SOAP message:

Best wishes!
 
Lavanya Halliwell
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed to get my soap functions working the original way.

but what is the soap Mime header/body.

is it just where you include the header/body as an attachment? in which case you could have prepared it earlier?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic