0

I am using the .Net tool wsdl.exe to generate a service reference for a webservice from the WSDL. One of the methods on the service takes in a Guid as a parameter. When I look at the code that is generated, the parameter is now a string.

Why does this happen?

David Pilkington
  • 13,528
  • 3
  • 41
  • 73

1 Answers1

0

All values to and from a web service must be primitive types, and are serialised to be such - the consumers may very well be using a variety of platforms, the specific Guid type would mean nothing to anyone not on a .NET platform.

As to whether Guid is a primitive type, see this question.

Community
  • 1
  • 1
dyson
  • 866
  • 6
  • 12