Skip to Content
avatar image
Former Member

Webservice creation for SAP XI/PI Scenarios


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?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 13, 2008 at 09:06 AM

    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.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.