cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a webservice from ABAP stack directly without using ABAP Proxy

Former Member
0 Kudos

Hi guys,

             I have a requirement to call a PI Interface from ABAP stack.

I couldn't generate ABAP Proxy because the interface using an external message type.

is it possible to directly call a webservice from ABAP stack with out using ABAP Proxy or with WSDL can I directly create a ABAP proxy ?!

What is point-to-point connection using the Web service infrastructure ?

Thanks

Sam

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

I have a requirement to call a PI Interface from ABAP stack.

I couldn't generate ABAP Proxy because the interface using an external message type.

It is possible to generate, but you could only use external message types for your request and response message. You cannot mix an external message (External Definition) with a Message Type for proxy generation.

is it possible to directly call a webservice from ABAP stack with out using ABAP Proxy or with WSDL can I directly create a ABAP proxy ?!

It is also possible to call a webservice from ABAP stack by using the function module HTTP_POST or via the CL_HTTP_CLIENT. Using either approach, you are still required to build your SOAP Envelope and the corresponding HTTP Headers e.g for SOAP Action, Content-Type, etc.

Hope this helps,

Mark

Former Member
0 Kudos

Hi Mark,

              Thanks for your reply.

is there any document or blog I can read to understand and implement your approach ?

Thanks

Sam

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Sam,

As for the HTTP_POST, I could only find this:

http://www.sap-forum.org/f19/manual-http-post-from-abap-t1558/

Here is a document from SAP Help for executing an HTTP Request

http://help.sap.com/saphelp_gateway20sp03/helpdata/en/1f/93163f9959a808e10000000a114084/content.htm

You can get the response HTTP Body by the method GET_CDATA from the interface IF_HTTP_ENTITY. You should try first what Gagandeep suggested in your other thread

Hope this helps,

Mark