Sunday, March 11, 2012

Web Services and System.Guid

Try changing the type of the GUID column to string in your wsdl. If getting from a column in SQL Server you will need to amend GUIDCOL to CONVERT(VARCHAR(35), GUIDCOL) AS GUIDCOL.

HTH

i don't think that changing the SQL will work since i am dealing with a strongly typed dataset. in other words... it's going to cast into a type of System.Guid

as far as the WSDL, doesn't the WSDL get created based on what i am going to be returning?
So if i am returning a strongly typed dataset, it's going to inspect that dataset to find out what it needs to generate. then after that i will have to modify the WSDL to change System.Guid to a String.

won't that screw up the serializiation?

oh yeah... where is the WSDL defined?!?!
now people have called me slow before but... when i add an "asmx" to my application where does the WSDL get created. does the WSDL get created or is this done on the fly?

i guess my question really is... is this something that i am going to have to change anytime i want a webservice to return a System.Guid


I saw a post from the team that says they are considering adding support for Atlas native Guid class. For now you have to use string or your own Guid class with serialization.

AO


thanks for the heads up...

MM

No comments:

Post a Comment