Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Is it possible to use uniqueidentifier in a web service type Datas

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
martinwlarsen@online.nospam - 25 Feb 2005 09:45 GMT
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'.

Is there anyway way to make this work ?

   BRGDS
    Martin W. Larsen
Dilip Krishnan - 25 Feb 2005 18:13 GMT
> 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  
[quoted text clipped - 5 lines]
>     BRGDS
>      Martin W. Larsen

Martin,
   The only way I can think of is to not use typed dataset. You're
running to this problem possibly because something in the typed dataset
is not xml serializable

Signature

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

martinwlarsen@online.nospam - 28 Feb 2005 16:03 GMT
I have tried that to but as soon the program calls the webservice it throws
an exception about the anytype.

As anyone gotten a dataset with a Guid Field working from a webservice using
VS 2003?

Thanks
   Martin

> > 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  
[quoted text clipped - 10 lines]
> running to this problem possibly because something in the typed dataset
> is not xml serializable
M.Posseth - 28 Feb 2005 13:32 GMT
The XML  anytype is normally used for the  .Net Object datatype

Signature

Met vriendelijke groet
Kind regards,

Michel Posseth
Software Developer
Microsoft Certified Professional

> 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
[quoted text clipped - 5 lines]
>     BRGDS
>      Martin W. Larsen
martinwlarsen@online.nospam - 28 Feb 2005 14:35 GMT
Hi,

I know but it does not work when I have a dataset that includes a table with
a uniqueidentifier field. 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 msdata:DataType="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.

> The XML  anytype is normally used for the  .Net Object datatype
>
[quoted text clipped - 8 lines]
> >     BRGDS
> >      Martin W. Larsen
[MSFT] - 02 Mar 2005 05:31 GMT
Hell Martin,

I have replied your question in another thread. Please refer to that.

Thanks,

Luke

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.