cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice creation for SAP XI/PI Scenarios

Former Member
0 Kudos

Hi,

How can I develop A simple Webservice for any scenario, for example, if am doing File to file copy scenario,So I want to develop a Webservice for the same scenario,

I want to develop webservices for the entire Scenario, for this I am Using Microsoft Visual Studio.

I Shall Create a Form/Page for UI to select the source file, and when I trigger the Copy button, the service should execute the backend SAP XI Scenario and the file should get copied.

How should i proceed to develop the Webservice?

Regards,

Varun

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Varun,

It looks like you are talking about Webservice-PI-FILE scenario ?

If yes, then first develope the scenario in PI. Use the SOAP sender adapter to expose the webservice. Generate the wsdl file and use it in visual studio to implement the functionality by generating the proxy and customizing it, if required.

You can design the UI as you wish and then on any event of your UI object you can invoke the proxy function.

Hope I have not misunderstood the problem.

Regards.

varun_k
Contributor
0 Kudos

Hi Jitesh,

What you said is correct but, I want to execute the same, for file copy Scenario. If I place a file in folder1, the XI should process the file and create the same file in folder2. I want the same functionality, the entire scenario as a service.

Also here my sender Adapter is File and Receiver Adapter is File

Regards,

Varun

Edited by: Varun Reddy K on Aug 13, 2008 2:52 PM

Former Member
0 Kudos

Hi Varun,

Let me understand this-

>>Also here my sender Adapter is File and Receiver Adapter is File

Do you mean to say that you can't change the existing FILE-PI-FILE scenario to Webservice-PI-FILE scenario on PI box?

If yes, then you just need to create a UI to copy the file in the source file folder as specified in FILE adapter settings and set the FILE adapter poll interval. It will keep polling the file source file directory and pick the file from there.

Am I missing something here?

And also can you tell me what do you mean when you say "service"? You want it to be invoked following some user action? I guess it would be difficult to directly trigger the PI excecution when you have file adapter at both the end.

Regards.