Reading CDATA with asp.net webservice

J

Jens

Hello,

I'm relatively new to webservices.
Now I've created a webservice that has to read a xml document within a
CDATA section of a soap message. See an example below:

<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-
ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2199="http://
tempuri.org">
<Bericht><Verzend><Dag>18</Dag><Maand>07</Maand><Jaar>2007</Jaar></
Verzend></Bericht>
]]>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

When this message is send to my webservice, I want to read an process
the xml document within the CDATA section. Can someone tell me how to
do this, maybe with a little example?

Do I have to make something like this?
Public Function GetXML(ByVal Xml As XmlCDataSection) As String
...
End Function

Thanks in advance!
Jens
 

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

Members online

No members online now.

Forum statistics

Threads
473,829
Messages
2,569,737
Members
45,525
Latest member
RosalindSa

Latest Threads

Top