Web Service - Archive Sales Orders
gianmariai
Member Posts: 7
Hello,
I'm tring to find the page that can expose a web service capable of archive sales orders. The same operation you can do in NAV with the button "Archive". I've tried with pages 42 and 48 but there are no exported methods to do it.
Please some one can give some good information on it?
my best regards,
Gianmaria
I'm tring to find the page that can expose a web service capable of archive sales orders. The same operation you can do in NAV with the button "Archive". I've tried with pages 42 and 48 but there are no exported methods to do it.
Please some one can give some good information on it?
my best regards,
Gianmaria
0
Comments
-
Hey,
Why don't you try to publish Codeunit 5063 and use ArchiveSalesDocument function from the exposed codeunit.
The function accept a parameter that is Sales Order No.
Let me know the issue completely.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0 -
Hello,
a nice idea.. I've tried to access this code unit but seems i don't have permission. I work a lot with other web services using pages and everything goes ok, but when i try to use code units and expose as web service. Visual studio give me a permission error. Same thing if i try to open the SOAP url by internet explorer. Seem I have to unlock something.
Regards,
Gianmaria
ERROR:Errore during download from 'http://xxx.xxxxxxx.it:7057/COMPANY/WS/BS/Codeunit/ArchiveManagement/_vti_bin/ListData.svc/$metadata'. Request failed with error: -- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Service.WebMetadata.ServiceBrokerException</faultcode><faultstring xml:lang="it-IT">Service "Codeunit/ArchiveManagement/_vti_bin/ListData.svc/$metadata" was not found!</faultstring><detail><string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Service "Codeunit/ArchiveManagement/_vti_bin/ListData.svc/$metadata" was not found!</string></detail></s:Fault></s:Body></s:Envelope> --. Metadata contains a reference cant be resolved: 'http://xxx.xxxxxxx.it:7057/COMPANY/WS/BS/Codeunit/ArchiveManagement'. La richiesta HTTP non è autorizzata con lo schema di autenticazione client 'Anonymous'. Intestazione di autenticazione ricevuta dal server: 'NTLM'. Errore del server remoto: (401) Non autorizzato. Se il servizio è definito nella soluzione corrente, provare a compilare la soluzione e ad aggiungere nuovamente il riferimento al servizio.
0 -
I think you can't directly use codeunit ArchiveManagement as webservice since the function defined accept a record variable.
Simply create a wrapping codeunit which receive document type and document no. as separated parameters and call ArchiveSalesDocument function
* Daniele Rebussi * | * Rebu NAV Diary *0 -
Thank you Daniele,
I already tried this way ... but seem i can't add a new codeunit (nag development environment) nor i can view the code of existing one. Don't have permission to do it. Will call my support and will ask them how to unlock.
Gianmaria0 -
gianmariai wrote:Thank you Daniele,
I already tried this way ... but seem i can't add a new codeunit (nag development environment) nor i can view the code of existing one. Don't have permission to do it. Will call my support and will ask them how to unlock.
Gianmaria
Oh, I thought you were already working with a development license: you'll probably better getting in touch with your partner and ask for this new custom functionality.* Daniele Rebussi * | * Rebu NAV Diary *0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 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

