Showing posts with label published. Show all posts
Showing posts with label published. Show all posts

Wednesday, March 28, 2012

web service

Hi,

I am using web method in my web app by using web reference.

It works fine when in debug mode.

It fails when testing a published version.

error message is: The remote name could not be resolved: 'ws.mysite.net'

Is there any issue when publishing project?

Do I need to do something different while publishing web project that uses web service reference.

Thanks,

Vaibhav

Open the web.config file and change the location of the WebService URL. that should solve the issue.

Hope this helps...


Unfortunately, this didn't help me. Any other input?

Thanks,

Vaibhav


This must be the issue of the proxy server. Please ensure that the server does not require any kind of authentication like telnet. Also add entry in the machine.config for your application under Default proxy tag.

hope this helps

Regards,

Suhas


Hi,

Entry in machine.config solved problem.

I added a sectiongroup in it i.e. same lines copied from web.config to machine.config for web url.

Thanks,

Vaibhav

Saturday, March 24, 2012

Web Service Problem

Hi, i created a web service and i published it, and i created a client. when the client calls the web service for the firs time everything is ok, but when the client calls the service for the second time the service is not responding, can someone help me please.On the second time, does it time out? Give an error? What happens?

How does the client call your web service?
I think it does time out. It can't find the service. the client calls the service through an instance of the service in client code
Can you put up some of your code from the client calling the webservice.

It could be something as simple as you missing the 'New' keyword when creating an object of the webservice. At least i think I had that problem when I initially started and I think that's what the solution was.