Calling NAV Web Service from Java
zimworxcode
Member Posts: 53
My NAV webservices use XMLPort references. I got this from: http://kauffmann.nl/index.php/2011/06/0 ... rvices-3/.. Calling the services in .Net is works perfectly. However using the same concept in Java gives problems. Here is my java call:
public static void main(String[] args) {
Webservice service = new USSDWebservice();
WebservicePort port = service.getUSSDWebservicePort();
Holder<NavCustomers> NavCustomer = new Holder<NavCustomers>();
Holder<Programmes> Programme = new Holder<Programmes>();
port.getStudent(NavCustomer, "P0128549D");
System.out.println("\n Dynamics NAV Result: " + NavCustomer.value);
System.out.println("\nTHE END");
}
I get an error from the NAV server:
Parameter XXX in method XXXX in service Webservice is null! What am i missig?
public static void main(String[] args) {
Webservice service = new USSDWebservice();
WebservicePort port = service.getUSSDWebservicePort();
Holder<NavCustomers> NavCustomer = new Holder<NavCustomers>();
Holder<Programmes> Programme = new Holder<Programmes>();
port.getStudent(NavCustomer, "P0128549D");
System.out.println("\n Dynamics NAV Result: " + NavCustomer.value);
System.out.println("\nTHE END");
}
I get an error from the NAV server:
Parameter XXX in method XXXX in service Webservice is null! What am i missig?
0
Comments
-
Hallo
Take a look this:
http://blogs.msdn.com/b/freddyk/archive/2010/01/19/connecting-to-nav-web-services-from.aspx
and
http://blogs.msdn.com/b/freddyk/archive/2010/01/19/connecting-to-nav-web-services-from-java.aspxRegards
Christer in Stockholm, Sweden0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
