cancel
Showing results for 
Search instead for 
Did you mean: 

Consume Webservice

Former Member
0 Kudos

We are having a Web Service in our R/3 System and one of the Database inside our firewall is ready to consume the above Webservice . The DB will send a Request to the underlying R/3 System(Web service) for some Order Inquiry Information and wants the Order Staus as response.

How to configure the above scenario? Also whether a DB can send a SOAP request to the XI?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>How to configure the above scenario? Also whether a DB can send a SOAP request to the XI?

there are two ways:

you can use XI (SOAP adapter) or you can consume WS directly from R3

the first approach allows better secutiry and monitoring

the second one might be a little bit faster

how to configure SOAP receiver adapter (via XI):

http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm

then from XI to R3 you can either use

RFC or ABAP proxy connection

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Thanks Michal. But not very clear with your answer, would you explain a bit more please. For me the sender is a Database and the receiver is an R/3 System(Web Service). The DB is ready to consume the Webservice in the R/3.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

with XI you can create a WS (with the use of SOAP adapter)

so your db will consume WS on XI instead of consuming on R3

then the message will flow through XI and XI can consume WS on R3

but no need to use WS on R3 - you can also go for ABAP proxy

or RFC

it is clearer now ?

usage of XI will allow you to separete SAP (r3) from the DB

(R3 can stay in inner DMZ for example)

+

you will have very good message monitoring via SXMB_MONI

or RWB in XI

Regards,

michal

prateek
Active Contributor
0 Kudos

Hi Pete,

Ur scenario should have

Sender: JDBC (synchronous)

Receiver SOAP (synchronous)

XI could poll ur databse at the sender end and fetches the Order Inquiry Information. This information is then sent as input to the web service. Web service is created at XI and a call the web service URL at the receiver end. The response of the web service (Order Staus) will be sent back to the JDBC sender

Regards,

Prateek

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>Ur scenario should have

Sender: JDBC (synchronous)

no need to use jdbc if he can use WS from the DB

why:

- no need to use jdbc <b>document formats</b>

- SOAP is more/will still become more standard than jdbc

Regards,

michal

Former Member
0 Kudos

Thanks Michal. So I can use

Sender SOAP Adapter and use a RFC Adapter on the Receiver Side.

How to create the Web SErvice in XI to consume the WS in R/3?

Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Sender SOAP Adapter and use a RFC Adapter on the Receiver Side.

yes - but you can also use ABAP proxy on the reciever side

>>>>How to create the Web SErvice in XI to consume the WS in R/3?

you mean create WS in XI (to be consumed by he DB?) ?

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken]

but if you want to consume from XI (on R3)

then you need to get the wsdl of R3 WS

and import it inside XI and then use soap receiver channel

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use SOAP instead of JDBC

See the below links

Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii

Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a...

/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client

/people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12

yes it will be possible, see below links

/people/thomas.jung3/blog/2005/01/11/publishing-abap-webservices-to-an-external-uddi-server

/people/sap.user72/blog/2005/11/17/xi-how-to-publish-wsdl-generated-from-xi-to-uddi

/people/thomas.jung3/blog/2005/05/25/sap-teched-2005--shameless-plug

Troubleshooting SOAP Message - XI - /people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi

Troubleshooting - RFC and SOAP scenarios-/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

HTTP* Errors /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi

XI: Why don't start searching for all errors from one place? - /people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place

/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1

/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2

/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi

/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services

/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken] [original link is broken]

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295a...

Regards

Chilla

former_member201264
Active Contributor
0 Kudos

hi pete,

U can see the below links to create the webservices,

/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i -&#61664; Web Dynpro – Part I

/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i &#61664; Web Dynpro – Part II

/people/riyaz.sayyad/blog/2006/05/10/consuming-xi-web-services-using-web-dynpro-150-ui-design-part-iii &#61664; Web Dynpro – Part III

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cb243c45-0801-0010-eb9c-88669007...

reward points if helpful.

regards

sreeni