By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,262 Members | 2,664 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,262 IT Pros & Developers. It's quick & easy.

Webservice on port other than 80

P: n/a
Hi all,
I have a webservice that's running on a specific port (8003) in webserver
behind a firewall.
The service accesses a CC authorization service on the internet. We use a
proxy to get out to the internet.

We have a domain name registered for this webservice. So my WSDL gives me
the following:

http://ourdomain.com:8003/ProcessCC.asmx

But I can't access the service this way. I can access it when I remove the
":8003" but when I invoke my method from this service it submits the request
to

http://ourdomain.com:8003/ProcessCC.asmx/mytestmethod?

It tries to run for a few seconds and gives me the following error,

"The web server specified in your URL could not be contacted. Please check
your URL or try your request again."

Now when I remove the ":8003" from the submit url the service seems to work
fine.

I'm not sure why I can access it without the port number but the webservice
won't submit to a url without the port number. I'm at a loss with this one.

Any help is appreciated.

TIA,
Suresh.
Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
It is unclear how you try to access the service.
If you add the web ref in the VS, you need to go to the web ref wrapper and
change the port# manually. I have a webservice running on Apache with port
8080. I need to manually change my C# client's web ref wrapper even I put
8080 in the web ref url already.
M$ thinks all webservice runs on port 80.
Egghead

"Suresh" <Su****@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
Hi all,
I have a webservice that's running on a specific port (8003) in webserver
behind a firewall.
The service accesses a CC authorization service on the internet. We use a
proxy to get out to the internet.

We have a domain name registered for this webservice. So my WSDL gives me
the following:

http://ourdomain.com:8003/ProcessCC.asmx

But I can't access the service this way. I can access it when I remove
the
":8003" but when I invoke my method from this service it submits the
request
to

http://ourdomain.com:8003/ProcessCC.asmx/mytestmethod?

It tries to run for a few seconds and gives me the following error,

"The web server specified in your URL could not be contacted. Please
check
your URL or try your request again."

Now when I remove the ":8003" from the submit url the service seems to
work
fine.

I'm not sure why I can access it without the port number but the
webservice
won't submit to a url without the port number. I'm at a loss with this
one.

Any help is appreciated.

TIA,
Suresh.

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.