Is this a proxy problem?

Cassio

Junior Contributor
Joined
Nov 30, 2002
Messages
276
Location
Rio de Janeiro
Hi! I have an app that connects to a web service. It was working fine. But yesterday I took it to the company I work to test it and it couldnt conect to the web service. But when I use the internet explorer http://mysite/myservice.asmx, I can see the web service. Could it be my companys proxy blocking the comunication? How can I fix this?
I've already tested it from computers that have direct access to the internet and it worked fine.

Thanks for the help.
 
If the web service is external to the customer, your assumption is probably correct. depending on how the customers LAN/WAN is set up it could be many things. Proxy, ISA (firewall) or the ports could be closed on the routers. based on your code you should know what port you are using. check the firewall/ proxy etc. Get with their firewall admin and ask him to look at failed traffic, this should get you headed in the right dirrection.
 
you can if you wrote the web service or the developer of the web services allows it. the port depends on what the web sevice was written to listen on. could be 9595, could be 80. What are you accessing in your code? Are you specifing a port?
 
You can change this port in your propertiesboxof the object in your environment.

I think it's named LocalPort.

Normaly all ports less then 10000 are used by Windows.

Maybee you can try some higher then 10000.

Greetz,

Hornet
 
Port 80 is the default for HTTP requests. If you can reach the webservice from outside their internal network, then they are allowing port 80 communications.

WebServices are meant to be accessed via standard http or https so putting them on another port would only make it harder for programmers. Moving them to port 10000 isn't making the webservice secure (there is NO security in just "hiding" or obfuscating something). At best, you'll keep simple hacker-wannabees from finding it but that's about all. If you want security, you'll need to use https.

Back to your problem. If you can reach the webservice from a browser but not from your app on the same machine, then I'm not sure what the problem is. It's almost definitely NOT blocking of any ports. Is your webservice address hard-coded or are you reading from a config file?

As a side note, if you really wanted to use another port, you could put it in the address line. For example, if microsoft moved to port 8010, you could use:
http://www.microsoft.com:8010/msdn

-Nerseus
 
Now I saw the error msg:
Code:
The request failed with HTTP status 407: Proxy authentication required.

Why is the proxy blocking my app since I have normal access to the internet using IE?
Is there anyway I can go through the proxy?

Thanks!
 
Back
Top