Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > How to include GUID in a SOAPmessage

Reply
Thread Tools

How to include GUID in a SOAPmessage

 
 
gunnar
Guest
Posts: n/a
 
      01-30-2006
I've declared a variable, ID, in a statement
dim ID as new Guid("12345678-1234-1234-5678-12345678")

Now I will include and send it in a SOAP message but the webservice doesn't
accept the ID converted to a string.
Does anybody know how to include GUID's in a SOAPmessage?
Gunnar


 
Reply With Quote
 
 
 
 
Yunus Emre ALP÷ZEN [MVP]
Guest
Posts: n/a
 
      01-30-2006
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

"gunnar" <(E-Mail Removed)> wrote in message
news:r8lDf.154857$(E-Mail Removed)...
> I've declared a variable, ID, in a statement
> dim ID as new Guid("12345678-1234-1234-5678-12345678")
>
> Now I will include and send it in a SOAP message but the webservice
> doesn't accept the ID converted to a string.
> Does anybody know how to include GUID's in a SOAPmessage?
> Gunnar
>
>



 
Reply With Quote
 
 
 
 
gunnar
Guest
Posts: n/a
 
      02-01-2006

"Yunus Emre ALP÷ZEN [MVP]" <yemre> skrev i meddelandet
news:(E-Mail Removed)...
> 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
>
> "gunnar" <(E-Mail Removed)> wrote in message
> news:r8lDf.154857$(E-Mail Removed)...
>> I've declared a variable, ID, in a statement
>> dim ID as new Guid("12345678-1234-1234-5678-12345678")
>>
>> Now I will include and send it in a SOAP message but the webservice
>> doesn't accept the ID converted to a string.
>> Does anybody know how to include GUID's in a SOAPmessage?
>> Gunnar



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">
<sattern
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
is namespace enabled when retreiving document from SOAPMessage from AXIS MORALBAROMETER Java 0 03-02-2007 07:25 PM
SAAJ SOAPMessage: how to find content length? Luke Webber Java 0 10-13-2005 03:51 AM
the reverse of SOAPMessage's writeTo(out) method Qingchun Guo Java 1 02-29-2004 06:46 AM
Convert SOAPMessage object to W3C Document without serialization? iksrazal Java 0 11-04-2003 08:34 PM



Advertisments