Ship-to-Address - Webservice Integration.

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Verified) This post has 1 verified solution | 4 Replies | 1 Follower

Not Ranked
10 Posts
90 Points
Joined: Mar 16, 2009
Last Online:
Apr 1, 2009 14:48
Location: india
Thompson posted on Mar 16, 2009 12:18
How helpful was this post/question? Please rate here:

Hi,

I am new to Dynamics NAV2009 werservices integration with C#, I was working on standard web services example provided by Microsoft http://msdn.microsoft.com/en-us/library/dd355316.aspx on how to expose a page as a Web service and how to manipulate data from that page, (basic example explain how we can created/update/delete customer in Dynamics NAV) Based on this example  i tried to insert Ship-to-Address into Dynamics NAV from C# for a Customer by exposing Page "300"  of ship-to-address as web service. But i am gettting an Error "Customer No. does not exist." when tring to insert new address and  i am not able to find Customer No field  in ship-to-address Webservice. Can any body please help me with this.

Solution (Verified) Verified Solution

Top 10 Contributor
Male
1,415 Posts
21,017 Points
Joined: Aug 16, 2000
Last Online:
Mar 13, 2010 18:29
Location: Vienna, Austria, Europe
Moderator
Sponsor
Solution (Verified) Thomas Brodkorb replied on Mar 16, 2009 14:55
How helpful was this comment/solution? Please rate here:
Verified by Thompson

The idea behind only publishing the fields in the web is to provide a kind of security.

You could (and should) rather define your own pages and populate those as web service and just with the fields you definitely need - not populate all fields of every table.

 

Thomas Brodkorb


Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.

 

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

 

All Replies

Top 10 Contributor
Male
1,415 Posts
21,017 Points
Joined: Aug 16, 2000
Last Online:
Mar 13, 2010 18:29
Location: Vienna, Austria, Europe
Moderator
Sponsor
Thomas Brodkorb replied on Mar 16, 2009 12:44
How helpful was this comment/solution? Please rate here:

The reason for this is that the Customer Number field which is present in the shipping address table is not available at the shipping address form (page) and therefore not populated.

I'm not sure if it is sufficient to just include that field and set it to visible = FALSE or if it must be visible TRUE in order to be exposed in the web service, but give it a try.

Thomas Brodkorb


Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.

 

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

 

Not Ranked
10 Posts
90 Points
Joined: Mar 16, 2009
Last Online:
Apr 1, 2009 14:48
Location: india
Thompson replied on Mar 16, 2009 13:58
How helpful was this comment/solution? Please rate here:

Thanks Thomas, It works if we create an new field in ship-to-address Page, but can i achieve this with out customizing standard Dynamics NAV 2009 - ship-to-address Form/ Pages.

Top 10 Contributor
Male
2,050 Posts
27,300 Points
Joined: Jan 23, 2004
Last Online:
Mar 13, 2010 0:43
Location: Howell, MI
DynamicsNAVMVP
Moderator
DenSter replied on Mar 16, 2009 14:16
How helpful was this comment/solution? Please rate here:

As far as I know, the web service only exposes the fields that are on the page. If there's a field that you need in the web service, you have no choice but to put it on the page.

Top 10 Contributor
Male
1,415 Posts
21,017 Points
Joined: Aug 16, 2000
Last Online:
Mar 13, 2010 18:29
Location: Vienna, Austria, Europe
Moderator
Sponsor
Solution (Verified) Thomas Brodkorb replied on Mar 16, 2009 14:55
How helpful was this comment/solution? Please rate here:
Verified by Thompson

The idea behind only publishing the fields in the web is to provide a kind of security.

You could (and should) rather define your own pages and populate those as web service and just with the fields you definitely need - not populate all fields of every table.

 

Thomas Brodkorb


Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.

 

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

 

Page 1 of 1 (5 items) | Get this RSS feed | Bookmark and Share