M
martinwlarsen
I have made a web service that returns a typed dataset that includes a
uniqueidentifier field. When I import this web service into visual studio
using add reference I get the following error: Custom tool error: Failed to
generate dataset. Undefined data type: 'anyType' in the output window.
The xsd for the dataset looks like this:
<xs:element name="TestWeb">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" type="xs:int" />
<xs:element name="Text1" type="xs:string" />
<xs:element name="Text2" type="xs:string" />
<xs:element minOccurs="0" name="Test3" type="xs:string" />
<xs:element minOccurs="0" name="Text4" type="xs:string" />
<xs:element msdataataType="System.Guid, mscorlib,
Version=2.0.3600.0, Culture=neutral,
PubicKeyToken=b77a5c561934e089" minOccurs="0" name="Testuni"
type="xs:anyType" />
</xs:sequence>
</xs:complexType>
</xs:element>
If I remove the uniqueidentifier field from the dataadaptor and re-generate
the dataset everything works. And I can refrence the web service with a
uniqueidentifier field from vs 2005 without any problem. I have also tried to
import the web service to a different mashine with VS2003 and have the same
problem.
Is there a bug fix or a good explanation for this issue?
BRGDS
Martin W. Larsen
uniqueidentifier field. When I import this web service into visual studio
using add reference I get the following error: Custom tool error: Failed to
generate dataset. Undefined data type: 'anyType' in the output window.
The xsd for the dataset looks like this:
<xs:element name="TestWeb">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" type="xs:int" />
<xs:element name="Text1" type="xs:string" />
<xs:element name="Text2" type="xs:string" />
<xs:element minOccurs="0" name="Test3" type="xs:string" />
<xs:element minOccurs="0" name="Text4" type="xs:string" />
<xs:element msdataataType="System.Guid, mscorlib,
Version=2.0.3600.0, Culture=neutral,
PubicKeyToken=b77a5c561934e089" minOccurs="0" name="Testuni"
type="xs:anyType" />
</xs:sequence>
</xs:complexType>
</xs:element>
If I remove the uniqueidentifier field from the dataadaptor and re-generate
the dataset everything works. And I can refrence the web service with a
uniqueidentifier field from vs 2005 without any problem. I have also tried to
import the web service to a different mashine with VS2003 and have the same
problem.
Is there a bug fix or a good explanation for this issue?
BRGDS
Martin W. Larsen