aspose file tools
The moose likes Web Services and the fly likes Constructing SOAP Request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Constructing SOAP Request" Watch "Constructing SOAP Request" New topic
Author

Constructing SOAP Request

babu babu
Greenhorn

Joined: Apr 01, 2005
Posts: 1
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

Joined: Mar 16, 2001
Posts: 965

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.


Please ignore post, I have no idea what I am talking about.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Constructing SOAP Request
 
Similar Threads
I have problem when I parsing inputstream from http
Getting data from a webpage
problem with String [] in axis 1.3 and .net client
alert function
Mapping different XML documents to a single database schema?