Running web service on non-standard port

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
 
A

Alberto Poblacion

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.
 
A

Arne Vajhøj

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
 
R

Raj

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
.
 
R

Raj

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.

.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top