I am having some problems using webservices with an XMLPort from withing Visual Studio (2005 and 2008). When the web reference is added to the project the following warning is displayed :
Schema validation warning: Schema item 'element' named 'GetMyCustomers_Result' from namespace 'urn:microsoft-dynamics-schemas/codeunit/GetMyStuff' is invalid. Namespace 'urn:microsoft-dynamics-nav/xmlports/mycustomers' is not available to be referenced in this schema.
I am have tried this using the the xmlports/codeunits from Freddy Kristiansen's GetMyStuff gadget and the proxy class is created with the event handlers for GetMyCustomers/GetMyVendors/GetMyItems but the function calls are not available.
I have tried creating the proxy class directly using wsdl.exe from 3 different versions of visual studio and get the same result each time - has anybody got any ideas on how to get this to work?