on 08-18-2008 6:40 AM
Hi,
I am developing a webservice in Microsoft Visual Studio. I want to access a file which is in SAP XI/PI server(i.e XI server local file). How can I connect to XI server and access the file.
Regards,
Varun
Hi,
You need to deploy the wsdl file in XI as below
You can connect to XI server by using the End Point URL as
The SOAP Sender uses the XI Server URL as below
http://<server>:<port>/XISOAPAdapter/MessageServlet?channel=<party>:<service>:<channel>;
Service & channel indicates the Sender SOAP adapter in XI to be used..and will direct to integration server.
Refer
How To Set Up a Web-Service-Related Scenario with SAP XI
https://websmp207.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000582377&;
SOAP Sender Steps
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Varun,
1. generate a proxy for ur webservice in ur local machine by using command prompt.
2. create a project in Visual Studio .Net & Do right click the refence folder in your project and click add reference.
3.Choose .net tab --> select System.Web & System.Web.Services --> confirm with OK
4. Right click your project and select add --> Existing Items. Navigate to your generated proxy and select it.
5. Use these codings in ur project. Here i am giving for c#
using System.Net;
using Sap.EnterpriseService.Employee;
//.....
//create object for ur proxy. For ex your proxy name is SampleService
SampleService service = new SampleService();
service.Credentials = new NetworkCredential("<username>","<password>");
service.Proxy = new WebProxy("proxy.pal.sap.corp",8080);
this is the code for using user credentials.
Hope this will help u. All the best.
Regards,
Nithya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your reply. Assume that I have done a simple file copy Scenario in XI/PI.
Also we have developed a simple webservice which can copy a local file on the desktop to an another path on the same system, by specifying the respective source file and Target file locations.
But now I want to access the server file (server local file) not system local file, to copy it and place in some other location. We are developing Webservices in Microsoft Visual Studio. We are unable to form the link from webservice to XI/PI. I think if we could mention the login credentials and server hostname, client, all those details in the webservice, I think we can connect to the PI Server.
Please give your valueable inputs.
Regards
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
XI is the Middelware...and you are trying to access the files from PI Server, So yes you can connect to the integration server directly and access the files placed on PI server (locally).
But here there will no involvment of XI....as Middelware..
With Web service you are trying to access the source file and copying to another location.
You can access the PI server as normal server with appropriate credentials like USER ID and Password.
Thanks
swarup
Hi,
If iam correct
You have file that is located at XI Server and that needs to be accessed and send to the Webservice(Microsoft Visual Studio)
then you can develop File--XI--Webservice(SOAP Adapter)
Elese please clear your requirement
Regards
Seshagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.