VS 2015 SOAP does not work, but in SOAPUi it works normal

0

At the company there is a Service provided through WebService SOAP (IBM BPM) . I can not reply to VS 2015 using the Web Reference a connection to this service. I always get the answer after a long time; The timeout of the operation has been reached. But if I use SOAPUi I can connect normal to the service. In the company have a proxy but I tried to turn on and off the windows 10 proxy to test, I also added the following code:

WebProxy proxyObj = new WebProxy("proxy.url.com", 3128);
NetworkCredential networkCredential = new NetworkCredential("****", "****");
proxyObj.Credentials = networkCredential;
soapReference.Proxy = proxyObj;

But with this code already falls into error 403 face. I tested close with the server a telnet and it worked everything normal, also I tried to enter the direct url and it worked also. Anyone have any idea what this is?

    
asked by anonymous 22.01.2018 / 20:31

2 answers

0

I was able to resolve a reverse proxy. the server responds to port 9443 with https, for some reason Windows 10 barred. Solution was to create a reverse proxy for standard port 443 from https and solved everything. As the company default is to create reverse proxy for all applications, everything was good. Obg.

    
05.02.2018 / 22:21
0

Try the following steps:

  • Disable all anti-virus (including Windows Defender)
  • Disable any machine firewall rule

Check if you can get to the web service via browser, otherwise this code will not work.

Add this line:

soapReference.UseDefaultCredentials = true;

This command forces you to use the credentials used in windows. If it does not work, you may need specific access. But you can still test this command line:

soapReference.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

Remember to take your existing authentication settings in the code.

And check that there is no restriction to the destination IP. A PING or TELNET command can help you.

    
23.01.2018 / 17:22