DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 23 Jul 2007 13:11:52 -0000,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    Jens


Problem retreiving data from Soap message   
Hello,

I've written a webservice in Asp.Net that has to retreive data from a
soap message.
See below for the example soap message:

<?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:ns3112="http://
tempuri.org">
<SOAP-ENV:Body>
  <TheData>
     <![CDATA[ <?xml version="1.0" encoding="UTF-8"?><Test><Dag>23</
Dag></Test>  ]]>
  </TheData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I want to retreive the data in the CDATA section to process in my
webservice.
Here are some lines of my code:

Public Function getData(ByVal XMLString As XmlDocument) As
XmlDataDocument
    Dim strString As String
    strString = XMLString.InnerText.ToString
    ...
End Fuction

The error I receive is:
Object reference not set to an instance of an object.

Can someone please help me? I've tried several options to get the
information in the CDATA section but it looks like the webservice
thinks there's no data in the soap message.

best regards,
Jens
Date:Mon, 23 Jul 2007 13:11:52 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us