BUG: "Unable to import binding" error message when you try to create an XML Web service proxy for the .NET Framework remoting service that contains Char data type members or Guid data type members (831689)
The information in this article applies to:
- Microsoft Web Services (included with the .NET Framework 1.1)
- Microsoft Web Services (included with the .NET Framework) 1.0
SYMPTOMSWhen you run the Web Services
Description Language tool (Wsdl.exe) in Microsoft Visual Studio .NET to create an XML Web service proxy for the
.NET Framework remoting service that contains either a Char data type member or
a Guid data type member, you may receive an error message that is similar to
the following error message: Error: Unable to
import binding 'MyRemoteObjectBinding' from
namespace
'http://schemas.microsoft.com/clr/nsassem/ConsoleApplication1/ConsoleApplication1%2C%20Version%3D1.0.1510.36520%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'.
- Unable to import operation 'setValue'. - The datatype 'Char' is
missing. Note The following information pertains to the previous error message: CAUSEThe common language runtime supports the Char data type and
the Guid data type. The Web Services Description Language (WSDL) does not
implicitly support these data types. The WSDL code for the .NET Framework
remoting service only references these data types from the predefined http://schemas.microsoft.com/clr/ns/System namespace. However, the WSDL code does not contain the
definitions that are included in the http://schemas.microsoft.com/clr/ns/System namespace, and the WSDL code does not import
the http://schemas.microsoft.com/clr/ns/System namespace. Therefore, because the WSDL code contains references to
a Char data type value or to a Guid data type value, the problem that is
mentioned in the "Symptoms" section occurs.WORKAROUNDTo work around this problem, you must not use data types
such as the Char data type and the Guid data type in the WSDL code for the .NET Framework remoting service.
Instead, you must use custom classes that implement these data
types.STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
REFERENCESFor additional information about creating an XML Web service proxy, visit the following Microsoft
Developer Network (MSDN) Web site: For additional information about the .NET Framework remoting service, visit the following
MSDN Web site: For additional information about the Web Services Description Language tool (Wsdl.exe), visit the following
MSDN Web site: For additional information about WSDL with .NET
attribution, visit the following
MSDN Web site: For additional information about how to understand
WSDL, visit the following
MSDN Web site:
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
301112
HOW
TO: Marshal an object to a remote server by reference by using Visual Basic
.NET
Modification Type: | Major | Last Reviewed: | 2/27/2004 |
---|
Keywords: | kberrmsg kbcode kbMiscTools kbChannels kbCommandLine kbhttp kbNameSpace kbServer kbWebServices kbRemoting kbBug KB831689 kbAudDeveloper |
---|
|