Cassio Posted May 5, 2003 Posted May 5, 2003 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. Quote Stream of Consciousness (My blog)
TheExtreme Posted May 5, 2003 Posted May 5, 2003 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. Quote
Cassio Posted May 5, 2003 Author Posted May 5, 2003 Can I make my app to comunicate the web service through port 80? Quote Stream of Consciousness (My blog)
TheExtreme Posted May 5, 2003 Posted May 5, 2003 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? Quote
Hornet Posted May 5, 2003 Posted May 5, 2003 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 Quote
*Experts* Nerseus Posted May 5, 2003 *Experts* Posted May 5, 2003 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 Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Cassio Posted May 5, 2003 Author Posted May 5, 2003 I wanted to change the port cause I didnt know it used de port 80 already. The web service is at home on my web server. So I made a web reference to http://myIP/service/service.asmx. Could it be a firewall that permits access through port 80 only by specific programs, like IE? Quote Stream of Consciousness (My blog)
Cassio Posted May 7, 2003 Author Posted May 7, 2003 Now I saw the error msg: 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! Quote Stream of Consciousness (My blog)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.