cancel
Showing results for 
Search instead for 
Did you mean: 

How to Post a SOAP request ?

Former Member
0 Kudos

Hi,

I have created a Webservice model using WebDynpro to which I need to pass a SOAP request.

Can anybody tell me how to pass a SOAP object to my WS model as a request over the SOAP connection.

SOAPConnectionFactory soapConnectionFactory =

SOAPConnectionFactory.newInstance();

SOAPConnection connection =

soapConnectionFactory.createConnection() SOAPFactory soapFactory =

SOAPFactory.newInstance();

MessageFactory factory =

MessageFactory.newInstance();

SOAPMessage message = factory.createMessage();

I guess the above code would create the SOAP message for me...

Can someone please help me out?

- Ashwini.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Valery,

I got your point, but my requirement is to transmit a SOAP message, also use a WS model. So in webdynpro is there a way by which I can extract the elements , generate the SOAP message and then call the execute() -

But here again I realised that I cannot pass any parameters to the execute().

Would like to know your thoughts on this..

-Ashwini.

Former Member
0 Kudos

Ashwini,

If you mean that you have created WebService Model using WebDynpro wizardm then why you ever need to operate on such low (transport) level? Just use generated *_Request classes...

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com