Running web service on non-standard port

  • Thread starter Thread starter Raj
  • Start date Start date
R

Raj

I run a web service on a non-standard port 6010.

How do I consume this service from a client?

What are the changes to be made to make it work?

Able to consume this web service as long as I run the web service in
standard port 80.

Regards
Raj
 
Raj said:
I run a web service on a non-standard port 6010.

How do I consume this service from a client?

What are the changes to be made to make it work?

Able to consume this web service as long as I run the web service in
standard port 80.

There's nothing special to do on the client, except to specify the
correct Url (including the port) for the proxy class in your client.

MyNamespace.MyService myProxy = new MyNamespace.MyService();
myProxy.Url = "http://myserver:6010/myfolder/myservice.asmx";
myProxy.MyMethod();

Or, if you are just taking the Url from the .config file, edit the
..config and write there the correct port into the URL.

And, of course, verify that port 6010 is open on your firewall.
 
I run a web service on a non-standard port 6010.

How do I consume this service from a client?

What are the changes to be made to make it work?

Nothing.

If you generate a stub, then it should just work, because
the WSDL contains the full URL including port number.

Arne
 
Thank you

Regards
Raj

Arne Vajhøj said:
Nothing.

If you generate a stub, then it should just work, because
the WSDL contains the full URL including port number.

Arne
.
 
Thank you

Regards
Raj

Alberto Poblacion said:
There's nothing special to do on the client, except to specify the
correct Url (including the port) for the proxy class in your client.

MyNamespace.MyService myProxy = new MyNamespace.MyService();
myProxy.Url = "http://myserver:6010/myfolder/myservice.asmx";
myProxy.MyMethod();

Or, if you are just taking the Url from the .config file, edit the
..config and write there the correct port into the URL.

And, of course, verify that port 6010 is open on your firewall.

.
 
Back
Top