Hi All,
I'm trying to call a NAV web service from Windows Phone 7 with no success ](*,) ](*,) ](*,) ](*,) ](*,) ](*,) ](*,)
I added the Service Reference but then I don't know how to pass the windows credential???
I read alredy Freddy's blog but I cannot understand what I'm missing....
Is anyone able to give me a tip/help???
Please??
Thanks
0
Comments
Create 1 files: Login.aspx. it can be accessed without any credentials. You can allow only anonymous access .
Add To login control in Login.aspx.
The following code
Web_Ser.UseDefaultCredentials = False;
Web_Ser.Credentials = New System.Net.NetworkCredential(Login1.UserName.ToString(), Login1.Password.ToString());
Senior NAV Developer
Microsoft Dynamics NAV
http://www.mibuso.com/dlinfo.asp?FileID=1123
for me its working with the information from freddy. But I only did this for testing. NAV is installed on my developer machine. I have no possibility to build a real scenario for this.
Please read this or better follow the instruction in the video.
http://blogs.msdn.com/b/freddyk/archive/2010/01/30/web-services-infrastructure-and-how-to-create-an-internal-proxy.aspx
If your service is running try the following code in WP7.
You need to add your service reference first.
I have also a question. How can we serve our customers with Windows Phone 7 apps? You can't download the app and think this will work. There much more work to do.
Please let me know if it this is working for you.
greetings
mik
With kind regards
mik
What do you mean exactly how to install the app?
You would have to publish it to the marketplace and let your client download it...
http://www.mibuso.com/dlinfo.asp?FileID=1123
yeah I mean that if we publish a WP7 app we will also have to do some modifications in NAV. If I publish my app the client will have to download the Service/Proxy and maybe the modified NAV objects which will be published as webservice.
But how will Microsoft proof our app? Is the certification process only a codecheck?
With kind regards
mik
If you publish it and you want to address generic customers and not the one you already have then you'll have to specify to contact your company to complete the setup or you would have to have a web site with the rest of the objects needed to make it work...
http://www.mibuso.com/dlinfo.asp?FileID=1123
http://www.mibuso.com/dlinfo.asp?FileID=1123