gauls

Hi,

I have a Mobile Client Application(VS2005) cosuming a web service (VS2005) when i try to step through the webservice using the call made from device/emulator i am not able to do that. The value retrieved from webservices can be viewed on the device. Previously the webservice was developed using 2003 which could be debugged from the Mobile application (VS2005). I can also stepinto webmethods from the browser.

I tired adding both Mobile application and Web service under one solution and vice-versa but failed to debug the webmethod calls

Has anyone come accross this issue

Thanks

Regards

Gauls




Re: Smart Devices VB and C# Projects Debugging Webservice from Device

Ilya Tumanov

Web Service should be debugged on the server with whatever tool it was created with, client is irrelevant. Simply run a second independent instance of VS, load WS project and hit F5.






Re: Smart Devices VB and C# Projects Debugging Webservice from Device

gauls

Hi Ilya,

I think i haven't framed my question very well. Webservice can be debugged on its own. In VS2005 when the webservice is running by default the rootURL is set to

http://localhost:1700/trysite/Service.asmx

if this added to the consumer/client application using "Add Reference" i can step into the webservice, but in Device application i can't keep the web reference URL to http://localhost:1700/trysite/Service.asmx that has to be changed to the server name http://gauls/trysite/Service.asmx (can view this from Pocket IE). Now i cannot step into the webmethod of the service.

Is there any way to change the RootURL of the web service

Regards

Gauls






Re: Smart Devices VB and C# Projects Debugging Webservice from Device

Ilya Tumanov

You can provide correct URL (not localhost which is not going to work unless application is running on a Web Server itself) at the time you're adding web reference.

Or you can set it at runtime by setting Url property of the generated proxy class:

myWebService = new MyWebService();
myWebService.Url = @"http://gauls/trysite/Service.asmx";






Re: Smart Devices VB and C# Projects Debugging Webservice from Device

gauls

Hi

Got it solved the problem was the new studio of webservice . By default the VS2005 runs the service under default web server (ASP.NET development Server) i changed to use the custom and supplied with the base url.

BTW is there any UI to handle the default web server within VS2005






Re: Smart Devices VB and C# Projects Debugging Webservice from Device

Pipe2Path

Hey gauls,

How did you change to use the custom web service I am having exactly the same problem. Here is my code :

DriverInfoService.DriverInfoService driverInfo = new TruckTrailerMobile.DriverInfoService.DriverInfoService();

driverInfo.Url = SettingValues.Instance.GetValue("DriverInfoURL");

DataSet ds = driverInfo.GetDriverInfo(strEmployeeID , strFirstName , strLastName );

I can never get it to break in the web service. It never seems to reach it.

Please let me know what you did to fix your problem. Appreciate it.





Re: Smart Devices VB and C# Projects Debugging Webservice from Device

gauls

Hi Pipe2Path,

I am not sure if you have the same problem as mine , Are you using VS2005 to debug your webservice if yes right click on th e webservice project click properties select the start options under Server option choose "use custom server" and give the base URL as ur webservice endpoint eg: http://IPaddress/TestWS/

Hope this helps

Regards

Gauls