• 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

creating soap requests in java

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)


 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic