on 01-30-2007 11:33 PM
Hi there:
I'm using the sneak preview of SAP NetWeaver 2004s ABAP Server and am able to consume in Visual Studio 2005 (C#) all the 'delivered' Web Services without any problems. However, when I create a Web Service through SE37 or SE80 (Wizard WS_WZD_START) using a BAPI or Remote enabled RFC (ie RFC_READ_TABLE) I am getting a error when I try to call it in Visual Studio. In Visual Studio, I am able to add the reference (http://localhost:8000/sap/bc/srt/rfc/sap/ZRFC_READ_TABLE?WSDL) no problem. When I call it though, I get {"Unable to connect to the remote server"}, with inner exception {"No connection could be made because the target machine actively refused it"}.
I am providing the credentials (username and password) in the code which are the same as when I go to retrieve the reference.
Any help would be greatly appreciated.
Thanks
Russ
Thanks Andre:
While I was able to successfully read the WSDL from the url, your response did force me to look at the WSDL file I was bringing in and find the problem.
There is an entry in the WSDL file that was causing the problem.
<soap:address location = "http://localhost ....
when "localhost" was changed to the the actual ip address, the service worked.
Thanks again
Russ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Russ,
I had similar problems. You should download the WSDL file to the local file system. Then you can add the downloaded WSDL file as a Web reference rather than using a URL.
Please note the following issue:
You have to provide the full qualified path <b>including</b> the file name in the text box for the URL and then press Go.
For example:
<i>
C:\Documents and Settings\USERID\My Documents\downloads\SAP\WebServices
Z_BAPI_CUSTOMER_FIND_VI.wsdl
</i>
If you just provide the path and try to select the WSDL file this probably does not work. At least it was not working for me.
Best regards,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.