I'm working on NAV 2013,
I had exposed Sales Order page as a web service and writing the unit test using that exposed web service.
FYI, I'm coding the scenario for sales order and want to run load test against unit test. so my concern is when updating sales order lines I'm getting salesorderlines object set to null.
newOrder.SalesLines = new SalesOrderService.Sales_Order_Line[1]; newOrder.SalesLines[0] = new SalesOrderService.Sales_Order_Line(); salesOrderService.Update(ref newOrder); // here I get newOrder.SalesLines[0] set to null.
Can anybody have an idea why it sets to null?
Help is appreciated. Thanks!
*This post is locked for comments
did you create the neworder object ?
follow:
blogs.msdn.com/.../extending-page-web-services-and-creating-a-sales-order-again.aspx
Can you let me know how to create the separate page set for this requirement? any links?
Why do you construct Sales_Order_Line twice? AFAICR, this should work differently. Also, publishing a standard page as a web service is a bad idea. You have lots of clutter that you don't want or need in the resulting web service. Better to create a separate page set for this.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156