• Post Reply Bookmark Topic Watch Topic
  • New Topic

ADDING XML TO SOAP BODY  RSS feed

 
Ravi Verma
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working on some SOAP transport mechanism with jaxp-1.0 for which i need to add one xml document or string xml to the SOAP Body but the problem is when i it cannot transform the '< '>' things in the xml-body document.
If anybody can help that will be grateful to me
as how to add xml to the soap body?
Thanks in advance
Ravi
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not real clear on what you want. Is this XML you want to add supposed to be interpreted by SOAP as part of the Body, or just passed on as text that is not parsed?
Are you working with one of the SOAP packages such as Apache SOAP or creating your own SOAP processor.
Why are you using JAXP 1.0?
Bill
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm confused too. Are you trying to put arbitrary XML inside of a SOAP parameter in a SOAP method call?
If that's what you want, there are other ways to look at doing that...
Kyle
 
Badal Kotecha
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do u generate a soap envelope through java code... ?
I dont want to do it using XML file... my SOAP envelope must be constructed dynamically depending on the user input parameters...
I have seen SOAP envelop APIS but was not able to find any such working example where these APIS has been implemented... can anyone help me...
I am using SOAP implementation of Apache and Tomcat.
Thanks in advance..
Badal
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the JAXM API.
http://java.sun.com/xml/jaxm/index.html
The "winter pack" download contains code and some working examples.
Kyle
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Badal - if you have the Apache SOAP package, the address book sample clearly shows dynamic creation of a SOAP message.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!