How to extend page web services

wbenamor
Member Posts: 4
Hello all,
I would like to extend the page web service, with another operation but with complex data types as input parameters (object class) like (customer, salesorder).
Is there anyone can help me to do so ?
I would like to extend the page web service, with another operation but with complex data types as input parameters (object class) like (customer, salesorder).
Is there anyone can help me to do so ?
0
Comments
-
Take a look at http://msdn.microsoft.com/en-us/library/dd338962.aspx
Then define your Object as Parameter of the function.0 -
deV.ch wrote:Take a look at http://msdn.microsoft.com/en-us/library/dd338962.aspx
Then define your Object as Parameter of the function.
I have tested this example in msdn yet but, the extension operation (service.CapitalizeName(cust.Key)) takes the customer key as parameter (when calling the operation from client code) not the whole customer object.0 -
The first parameter of the code unit function that extends a page should be the object that the page is based on (Customer). Your clients first parameter for that extended function is the key that you obtained when invoking the read operation on the page based web service. The web service will automatically give the object to your code unit. If you need to pass additional objects as parameters, I would pass record Id's.Wm. Matthew Street (Matt)
http://www.wmmatthewstreet.com0 -
Hello,
The best way to pass complex parameter to codeunit operation is to use the XMLPorts.
refer to :
http://www.kauffmann.nl/blog/index.php/ ... ervices-2/
https://community.dynamics.com/product/ ... vices.aspx
http://blogs.msdn.com/b/nav/archive/200 ... vices.aspx
viewtopic.php?f=32&t=29557
http://blogs.msdn.com/b/freddyk/archive ... stuff.aspx
https://community.dynamics.com/product/ ... 67809.aspx
Thanks a lot for your help.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions