cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data in an url (api link ) from ABAP.

SVT
Explorer
0 Kudos

Hi guys,

I have tried few methods but its not working for me..I am running out of time.

I have with me one data format and url(API link ending with WSDL) link to connect.Using this I need to send the invocie details .

My requirment :

1.I need to send invoice details in a api link.

2.The data format is in SOAP format.I am confued how to take it forward.

What I have tried till now:

1.created a http connection and trying to send the data in that.

2.Created JSON format as well as XML format and tried..both are not working.

Screenshots of my code.

Data format to send it to client.

Please someone explain the steps to done this.

Thanks in advance.

Sandra_Rossi
Active Contributor
0 Kudos

Well seen by Ulrich, WSDL is not the Web service, it's its definition, you must not "call it" (it does nothing).

View Entire Topic
matt
Active Contributor

It's been a long time since I've done it, but why not just create a soap proxy to consume the webservice?

Go to SE80, Edit Object, Enhanced Options, Enterprise Services, Create, Service Consumer

This will create proxy classes for accessing the external webservice. You probably have to do some configuraiton on SOAMANAGER as well.

Sandra_Rossi
Active Contributor

srividya.eeswar To create the proxy as explained by Matthew, ask the Web Service provider to provide the WSDL definition file of the Web service (usually available at a public/accessible URL).

SVT
Explorer
0 Kudos

Yes I am trying that struck with one error.

Following the steps from this link

https://developers.sap.com/tutorials/abap-environment-soap-web-services.html

Trying to clear this issue.