SOAP help -- parsing returned string

Y

YYZ

I've got a piece of code provided by a third party that we are trying
to integrate with. We are using VB 2003, and the code is supposed to
send a SOAP request to their servers and receive a message. All works
great, I just don't know what to do with the returned data in the
format it is in. I get back a whole bunch of SOAP stuff wrapped
around a valid XML document (well, it WOULD be valid) but the XML is
all escaped. Here is a small sample...

<noname xsi:type="xsd:string">&lt;RESPONSE_GROUP MISMOVersionID=&quot;
2.1&quot;&gt;

As you can see, the last part of the SOAP (envelope?) is the
<noname....stuff, then the information I want starts. But < is now
&lt; and > is not &gt; and quotes are &quot;

I remember all of this from my HTML days, but my thinking is that I
don't want to do some fancy string manipulation to pull out all the
stuff I need, then do a bunch of replace calls to change those escape
sequences to <. > and " - -I mean, what if they escape somethign else
that I forget to check for?

My thinking is that this is standard SOAP stuff, and that if I only
had some direction, I could create some kind of SOAP message, and call
the "Decode" function or whatever on it, and I'd get what I really
wanted.

Is that correct? Can someone help me?

Thanks for any hints.

Matt
 
G

Guest

<noname xsi:type="xsd:string">&lt;RESPONSE_GROUP MISMOVersionID=&quot;
2.1&quot;&gt;

As you can see, the last part of the SOAP (envelope?) is the
<noname....stuff, then the information I want starts. But < is now
&lt; and > is not &gt; and quotes are &quot;

I remember all of this from my HTML days, but my thinking is that I
don't want to do some fancy string manipulation to pull out all the
stuff I need, then do a bunch of replace calls to change those escape
sequences to <. > and " - -I mean, what if they escape somethign else
that I forget to check for?


Use HTMLDecode to unescape the string.

HTMLDecode is located in the System.Web.HttpServerUtility namespace.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top