on 07-06-2009 12:40 PM
Hi,
an SAP ECC application wants to invoke a webservice available on internet e.g curryency converoor webservice available on http://www.webservicex.net/CurrencyConvertor.asmx?wsdl
in this case,
can we write an abap application in ECC to directly invoke the webserivce (ECC -> externalWebservice), or
is it required to use PI to invoke the external webservice. (ECC -> PI -> externalWebservice)
are both are possible?, which one is recommended.
thanks,
Madhu.
Both are very much possible.
Use PI if you want to enhance the monitoring capabilities and accumulating monitoring at a central location. PI will also let you add certian mappings if required.
Don't use PI if you think that this ABAP report would be the only communication to that webservice in future. Otherwise for some next call to the same webservice you would require another report. Therefore when reuse is not required, you may avoid PI.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu,
---> We can go for both options which we have one is with out PI (Point to Point webservice) an the other option is with PI (Brokered Webservice).
-->Download the WSDL file from the respective location and save it on your local system.
-->To consume the webservice create the Client Proxy in SE80,select Enterprise Services while creating import the WSDL file into it and create the program and write the required logic.
it depends on your requirement whether you want to go for with PI or with out PI.If you want change the incoming source structure (Mapping Transformation) into required format of the target structure then we must and should go for Brokered Webservice other wise it will be better to go for POINT TO POINT Webservice
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu,
Here is one way of consuming a webservice using ABAP (Without using PI)
http://sample-code-abap.blogspot.com/2009/05/simple-code-consume-web-service-using.html
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both options are possible ...
Use PI if you need to do e.g. mapping between different message structures. If mapping is not necessary the you can call directly.
What you need to do to consume webservice directly is to create service (SE80 -> create proxy object -> URL /HTTP Destination)
/Jakub
PS. check this nice weblog: [BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1012] [original link is broken] [original link is broken] [original link is broken];.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.