cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice sender . Pls advice urgent

Former Member
0 Kudos

Hi Piyush/All,

My scenario is

System A (Webservice) -- XI -- File

System A is providing WebService(wsdl) to XI

So It is a webservice(wsdl) of System A.

XI will import that wsdl as External Defination and map to File Interface.

System A will send soap request to XI.

Can this scenario be made

1. Soap Sender Adapter --- XI --- File Receiver Adapter?

2. WebServer needs to be installed at System A?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

you have to use the soap sender as well as the soap receiver adapter bcoz the web service url will be provided in the soap receiver adapter only. so u also have to configured the soap receiver adapter also.

the scenario will be like this"

import the file as external definitions.

create the data type/Message type for the request message as well as the response message type foe the target side.

create the outbound interface using the wsdl file imported.

and create the inbound interface using the message type craeted above.

both the interfaces will be sync type.

and do the message mapping(request as well as for response) and the interface mapping.

and configure the scenario accordingly.

if u still face the problem please reply me back.

Thanks

Rinku

Former Member
0 Kudos

Hi Piyush/All,

System A (webservice) -- XI -- File

System A wants to send data to File .

System A has Webservice (wsdl) with it through which it will

send data to XI.

I was planning to make this scenario :

Soap Sender Adapter --- XI --- File Receiver Adapter

But Piysuh says that Soap Sender Adapter cannot be used

as System A is webservice provider.

Pls suggest.

Regards

Former Member
0 Kudos

Hi Rac,

Web Services automatically cannot send the data. It needs some client to call it and initiate the process.

Since file adapter is not synchronous ,you need BPM to do this.

Regards,

Piyush

Former Member
0 Kudos

Hi Piyush,

My Scenario:

System A (webservice) -- XI -- File

System A hjas its own webservice (wsdl)

with which it wants to send data to XI.

I will import wsdl of System A in XI as External Defination.

My Question is:

Can I use I Soap Sender Adapter for

System A (webservice) -- XI

Is my approach corrcet? If not then how can I do

Regards

Former Member
0 Kudos

Hi rac,

As I have already told, you cannot use SOAP Sender Adapter for this scenario.

Some Sender Adapter>XI-->SOAP Receiver ADAPter

You need someone on the XI sender side to initiate the scenario.

You can use BPM for this .

1)Trigger the BPM with some external call

2) Call Web Service

3) Forward the response to File.

Hope you know about BPM ( ccBPM in XI)

regards,

Piyush

Former Member
0 Kudos

Hi Piyush,

System A(webservice) -- XI -- File

My Question:

1. How XI generating WSDL and giving to System A is different from System A having its own WSDL? Pls explain

2. If I make wsdl in XI and send that wsdl to System A.

Then can System A send its soap request to XI using Soap Sender Adapter?

Regards

Former Member
0 Kudos

Hi Rac,

There is concept of Producer and consumer in Web Services.

There is always one producer and any no. of consumer for that service.

If System A is giving you WSDL, it means System A is producer and has rights to restrict/authorize that who will access its web service. System A is owner of this Web Service. In this case, XI is cosumer of the Web Service and can use SOAP Receiver Adapter to call that Web Service.

If XI is producer of Web Service, that means all the business logic is written with XI and XI is owner of this Web Service. Anyone who is authorized can make a connection to XI and call that Web Service. In this case System A is cosumer/client of Web Service and XI would give WSDL to System A. Any client can make connection to XI using SOAP Sender Adapter to consume this service.

Hope this helps.

regards,

Piyush

Former Member
0 Kudos

Hi Rac,

I don't understand your first question, but generally:

when you have a SOAP->XI->FIle scenario, Xi serves as a webservice in this case. So you must generate it's WSDL (this is generated based on the message interface (message structure)). You can generate a WSDL using Generate Web Service menu option in the Directory.

Then use this WSDL to generate a web service client. And finally - the client sends SOAP message to XI and everything worx fine

Peter

Former Member
0 Kudos

Hi Piyush,

Thanks !!!

I have awarded you full points.

So best way is I will make wsdl in XI and send that wsdl to System A.

Then can System A send its soap request to XI using Soap Sender Adapter -- Right.

But If some system is reciver then I can use its wsdl and

can send soap response to it using Soap Receiver Adapter -- Right.

Regards

Former Member
0 Kudos

Hi Piyush,

Very Informative explanation.

I am working on a scenario where we are supposed to extract data from a legacy system using a web service, and then send it using XI as a file to some file server.

So in that case what steps should be taken to configure the scenario?

In this case the legacy system should be the service provider?

Please let me know the steps and also in what kind of a scenario would we configure a web service on XI, as per my knowledge a web service is used to extraxt data from a system and I am unable to think of a situation where we would have to use it on XI.

Any examples would be helpful.

Regards,

Sampada

Answers (5)

Answers (5)

Former Member
0 Kudos

a

Former Member
0 Kudos

1 Soap Sender Adapter --- XI --- File Receiver Adapter?

ans:yes

2. WebServer needs to be installed at System A?

ans:yes

Check links on soap.

For SOAP see below links

/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

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f22...

/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap

How to use SOAP adapter:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f...

Former Member
0 Kudos

In addition to above replies, this may help you..

Few facts about Webservice:

1. Webservice is a remote application which is available in the Web.

2. XI communicates with Webservice by using SOAP adapter.

3. XI can send data to Webservice and can receive data from it.

How to use webservices in XI

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

A good start to creating web services:

/people/sap.user72/blog/2005/12/29/service-enable-your-sap-application-component

How To Use the XI 3.0 SOAP Adapter

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a2202...

Former Member
0 Kudos

Hi,

First of all we have to create webservice

go to Tools in ID and click create webservice..and provice..url and message interface and namesapce...then webservice is created..

Former Member
0 Kudos

Hi Rac,

> 1. Soap Sender Adapter --- XI --- File Receiver Aadapter

No, It cannot be made. When someone is providing you WSDL, you can only use SOAP Receiver Adapter.

SOAP Sender is used when XI is providing a Web Service.

> 2. WebServer needs to be installed at System A?

Yes, Web Server is needed at System A.

Regards,

Piyush

Former Member
0 Kudos

Hi Piyush,

Then how can I make this scenario?

Pls advice?

Regards

Former Member
0 Kudos

Hi Rac,

Can you please explain what you want to do?

What is your input and output?

What are the sources available?

Which systems you want to connect?

How do you want to initiate this scenario?

Regards,

Piyush