G
Guest
Hi,
Here is my problem. I have a serviced component that is exposed via a SOAP
interface. This particular component, Person, has a method that takes in
another object called PersonHobby. When I try and use wsdl.exe, it always
fails on the method "AddHobby" which takes in the PersonHobby.
Here is what I enter on the command line:
wsdl /out:C:\proxies\Person.cs
http://development4/Demo/DAL_Demo.Entities.Person.soap?WSDL
"C:\PersonHobby.xsd"
Here is the error:
Error: Unable to import binding 'PersonBinding' from namespace
'http://schemas.
icrosoft.com/clr/nsassem/DAL_Demo.Entities/DAL_Demo.Entities%2C%20Version%3D1.0.
0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D87d46b0839097fa7'.
- Unable to import operation 'AddHobby'.
- The datatype
'http://schemas.microsoft.com/clr/nsassem/DAL_Demo.Entities/DA
_Demo.Entities%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3D87d46b0839097fa7ersonHobby' is missing.
Here is my xsd:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="PersonHobby" type="PersonHobby" nillable="true"/>
<xs:complexType name="PersonHobby" mixed="false">
<xs:complexContent mixed="false">
<xs:extension base="ServicedComponent">
<xs:sequence>
<xs:element name="PersonID" type="xs:int"/>
<xs:element name="HobbyID" type="xs:int"/>
<xs:element name="Hobby" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ServicedComponent" abstract="true" mixed="false">
<xs:complexContent mixed="false">
<xs:extension base="ContextBoundObject"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ContextBoundObject" abstract="true" mixed="false">
<xs:complexContent mixed="false">
<xs:extension base="MarshalByRefObject"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="MarshalByRefObject" abstract="true"/>
</xs:schema>
Here is the namespace in my WSDL
xmlns:ns5="http://schemas.microsoft.com/clr/ns...ture=neutral, PublicKeyToken=87d46b0839097fa7"
You will be my hero of the day if you can help me. Thanks in advance.
Pete
Here is my problem. I have a serviced component that is exposed via a SOAP
interface. This particular component, Person, has a method that takes in
another object called PersonHobby. When I try and use wsdl.exe, it always
fails on the method "AddHobby" which takes in the PersonHobby.
Here is what I enter on the command line:
wsdl /out:C:\proxies\Person.cs
http://development4/Demo/DAL_Demo.Entities.Person.soap?WSDL
"C:\PersonHobby.xsd"
Here is the error:
Error: Unable to import binding 'PersonBinding' from namespace
'http://schemas.
icrosoft.com/clr/nsassem/DAL_Demo.Entities/DAL_Demo.Entities%2C%20Version%3D1.0.
0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D87d46b0839097fa7'.
- Unable to import operation 'AddHobby'.
- The datatype
'http://schemas.microsoft.com/clr/nsassem/DAL_Demo.Entities/DA
_Demo.Entities%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3D87d46b0839097fa7ersonHobby' is missing.
Here is my xsd:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="PersonHobby" type="PersonHobby" nillable="true"/>
<xs:complexType name="PersonHobby" mixed="false">
<xs:complexContent mixed="false">
<xs:extension base="ServicedComponent">
<xs:sequence>
<xs:element name="PersonID" type="xs:int"/>
<xs:element name="HobbyID" type="xs:int"/>
<xs:element name="Hobby" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ServicedComponent" abstract="true" mixed="false">
<xs:complexContent mixed="false">
<xs:extension base="ContextBoundObject"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ContextBoundObject" abstract="true" mixed="false">
<xs:complexContent mixed="false">
<xs:extension base="MarshalByRefObject"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="MarshalByRefObject" abstract="true"/>
</xs:schema>
Here is the namespace in my WSDL
xmlns:ns5="http://schemas.microsoft.com/clr/ns...ture=neutral, PublicKeyToken=87d46b0839097fa7"
You will be my hero of the day if you can help me. Thanks in advance.
Pete