Yunus Emre ALPÖZEN said:
Hi,
Just define your variable as string, and try to parse input string into
guid in your web service implementation...
--
HTH
Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
Microsoft .NET & Security MVP
Thanks for answering,
Perhaps some missunderstanding.
I wan't to consume a webbservice that requires a GUID for authorization.
The webservice looks like
....
<s:simpleType name="guid">
<s:restriction base="s:string">
<s
attern
value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
/>
</s:restriction>
</s:simpleType>
....
and the recommended SOAPrequest is
....<AuthID xmlns:s0="
http://microsoft.com/wsdl/types/"
xsi:type="s0:guid">guid</AuthID >...I've declared a variable, AuthID, in a
statement
dim AuthID as new Guid("ABCD5678-AB34-AB34-5678-ABCD5678")
and I convert it with the ToString method before I send it in a SOAPmessage.
The webservice answers with the somewhat cynical statement 'Something has
went wrong"
By the way
When I test the content of the GUID with the statement
response.write (AuthID.ToString()) all capital letters are converted to
small letters
Thanks
Gunnar