Last post Jun 03, 2015 11:47 AM by Taichung
Jun 01, 2015 07:01 PM|Taichung|LINK
Hi, I'm using VS2013.
Why did it add my local development machine to the applicationsettings in the web config file after I added the java web service? I then also get a socket exception referencing local host, my local dev PC wont' connect. It's very confusing. I want to connect
to the web services APIs not my own local PC. How to address this? Thank you.
msg "System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it [::1]:8443\r\n at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\n at System.Net.ServicePoint.ConnectSocketInternal(Boolean
connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address,
ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)" string
Jun 02, 2015 10:55 PM|Krunal Parekh|LINK
Why did it add my local development machine to the applicationsettings in the web config file after I added the java web service?
1. Where is your java web service located? is it on your local machine or on the web?
2. I suggest you can follow this article to understand how you can do this.
Hope this helps.
Jun 03, 2015 11:47 AM|Taichung|LINK
Your posted link 1 is what I followed to be able to reference the code using a proxy class after adding the api as a web service in the Advanced button area. The 2nd link is no help unfortunately.
Sorry, forgot to include what's appended at the end of my web.config,
<setting name="TestApi_XXXXService_XXXXService" serializeAs="String">
This Java web service API is installed by 3rd party vendor at one of our web server. I found this in their wsdl. Is this where my web.config auto generated after I added the web reference?
<wsdl:service name="XXXXService"><wsdl:port binding="tns:XXXXServiceSoapBinding" name="XXXXServicePort"><soap:address location="https://localhost:8443/XXXX/api"/></wsdl:port></wsdl:service>