This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Constructing SOAP Request  RSS feed

 
babu babu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I trying to construct a SOAP request using SAAJ APIs.

The operation name is "stop" and below xml is the parameter

<?xml version="1.0" encoding="UTF-8"?>
<McomStopRunningMandateRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\tibco\administrator\5.1\tomcat\webapps\ROOT\rm_cc\css\pub\request_message_mandateterminate_css\css\Main.xsd">
<MSISDN>+0000</MSISDN>
<Mandate_ID>xxxxxxxxxxxxxxxx:xxxx</Mandate_ID>
</McomStopRunningMandateRequest>

Are there any API's available to convert the avive into SOAP message.

Can anyone help me ?

Thanks in advance ,
Babu
 
William Barnes
Ranch Hand
Posts: 1046
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SAAJ is the low level way of doing this. JAX-RPC is built on top of SAAJ and does a lot of the work for you.

But to answer your question the SAAJ api is javax.xml.soap and you would use "addBodyElement" method from the SOAPElement class. This is assuming you have lots of other stuff set up correctly also.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!