Visual Studio 2008 (and the new version of the .NET Framework) want you to use the new service reference model instead of the old web references. When I add create a new service reference and point it at the SuiteTalk WSDL (2008.1), I get the following warnings when I build:
Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='urn:platform_2008_1.webservices.netsuite.com']/wsdl:binding[@name='NetSuiteBinding']
XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:platform_2008_1.webservices.netsuite.com']/wsdl:service[@name='NetSuiteService']/wsdl:port[@name='NetSuitePort'] C:\Documents and Settings\bmills\Desktop\SharpTalk\Service References\SuiteTalk\Reference.svcmap 1 1 SharpTalk
-- AND --
Custom tool warning: Cannot import wsdl:binding
Detail: The WSDL binding named NetSuiteBinding is not valid because no match for operation login was found in the corresponding portType definition.
XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:platform_2008_1.webservices.netsuite.com']/wsdl:binding[@name='NetSuiteBinding'] C:\Documents and Settings\bmills\Desktop\SharpTalk\Service References\SuiteTalk\Reference.svcmap 1 1 SharpTalk
Is there a problem with the WSDL or is it something I'm not understanding in Visual Studio?
The bigger problem is that I don't see the NetSuiteService object which was available with the old style web reference. There does seem to be a NetSuitePortTypeClient with the same methods, but I have to create that object before I call the methods.
I'm very confused. Can anyone give me some tips on switching from old style web references to new style service references?
Thanks,
Ben