Web service DemoCU - UsingLettersService
Louis
Member Posts: 78
I try the WS sample of NAV2009 in the Virtual machine using its Visual Studio 2008 version
There is a compilation issue
Could someone help me with this problem
The C# line where the issue occurs :
DemoCU ws = new DemoCU();
Error message in VStudio
The Type or namespace name "DemoCU" could not be fround ( are you missing a using directive or an assembly reference ?
What is missing in VS2008 ?
TIA
There is a compilation issue
Could someone help me with this problem
The C# line where the issue occurs :
DemoCU ws = new DemoCU();
Error message in VStudio
The Type or namespace name "DemoCU" could not be fround ( are you missing a using directive or an assembly reference ?
What is missing in VS2008 ?
TIA
0
Comments
-
"DemoCU could not be found"
I can see DemoCU_Port + DemoCU_PortChannel + DemoCU_PortClient
but not the DemoCU class. It is not visible in VStudio. What is missing (directive, assembly, "whatelse" ) ?
My question is
HOWTO => Create a new instance of the service.
In IE, I have checked the published service name
contractRef ref="http://nav-srv-01:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Codeunit/DemoCU"
It's ok.0 -
It sounds like the reference added is a Service reference instead of a web reference.
When you add the service you can select Advanced (I think) and add a Web reference instead.
The programming needed to use the webservice is different based on service or web reference.
(note - I haven't seen the sample mentioned...)Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
Thank you Freddy that was my problem - now it works.
FYI The sample is located in NAV2009 Developer Help - Creating and Consuming a Codeunit Web Service
Louis0
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
- 328 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