on 10-31-2014 2:31 PM
Hi all,
how to consume the webservice (BZSt: USt-IdNr. Bestätigung) in SAP system which has RPC XML interface.
There should be a communication between this website and my ABAP program so that i can send the input data and receive the result in the ABAP program.
i tried searching in the forum but only found webservices using WSDL.
Thanks in advance,
regards,
NarsiReddy.
You build the consumer proxy using the WSDL supplied for the website. This generates ABAP classes that you then use to consume the web service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, a more interesting problem. I like those.
I think you'll need to do something with CL_HTTP_CLIENT - maybe something like this?
DATA client TYPE REF TO cl_http_client.
CREATE OBJECT client.
client->request->set_header_field(
NAME = 'SOAPAction'
VALUE = 'https://evatr.bff-online.de/' ).
Then use various method calls to send parameters and retrieve results. I've not had a chance to test it at all. I think maybe this will give you some hints. (Also in German).
Narsi
From the details on the website, it looks like it just requires either a HTTP POST or HTTP GET request. It is not a SOAP-based interface, so no WSDL is required.
You just need to dynamically form the URL with the relevant parameter & value pairs, and execute the HTTP request. The class CL_HTTP_CLIENT mentioned above provides the necessary methods (CREATE_BY_URL, SEND, RECEIVE, etc) to fulfill such HTTP requests.
Rgds
Eng Swee
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.