473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

soap xml reader problem

hi

im having problem on getting the <session> inner text value using .net

xmlDoc->SelectSingleNode("SOAP-ENV:Envelope/SOAP-ENV:Body/namesp1:createsess
ioncmdResponse/session")->get_InnerText()

here is the sample xml ...

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<namesp1:createsessioncmdResponse xmlns:namesp1="urn:SMITHWS">
<session_result xsi:type="xsd:int">0</session_result>
<session xsi:type="xsd:string">SATA7L4OYEHJ61T10R3L</session>
</namesp1:createsessioncmdResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

and im gettings this error..

Namespace Manager or XsltContext needed. This query has a prefix, variable,
or user-defined function
at System.Xml.XPath.CompiledXpathExpr.get_QueryTree() at
System.Xml.XPath.XPathSelectionIterator..ctor(XPat hNavigator nav,
XPathExpression expr) at System.Xml.XPath.XPathNavigator.Select(String
xpath) at System.Xml.XmlNode.SelectSingleNode(String xpath) at
CSoapClient.CreateSessionID() in
c:\renato\c++\ecpn\ecpnwebtopup\soapclient.h:line 63 at
CTransaction.RequestTransaction(XmlDocument xmlDoc) in
c:\renato\c++\ecpn\ecpnwebtopup\transactionlogic.h :line 64

any form of help will be great!

-thanks
renato
Nov 16 '05 #1
0 1187

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fabrice Meichtry | last post by:
hi everybody, I still have some difficulties to acces a web service created in C# with soap toolkit.. In fact I'd like to access it with the low-level sample that was on the sample exemple. ...
0
by: Nalla | last post by:
Hi, I have a requirement to call webservices from my old C++ application.So first I tried with Vc++.net as follows.....There are 2 approach Dotnet frame work and soaptoolkit 3.0 I am not able to...
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
0
by: TC | last post by:
Hey All, Below is a sample of the code that I was handed in VB using the SOAP SDK --I did not write this -- don't shoot the messenger ;-) Private Const ENC =...
0
by: TC | last post by:
Hey All, I have been asked to port a VB6 COM component that makes SOAP calls to .Net. The server side SOAP calls are written in PHP and after referencing the WSDL, the SOAP methods do not offer...
0
by: Ramon de Klein | last post by:
I try to serialize an exception using the SoapFormatter, but this is a little bit problematic. The MethodInfo tag of the serialized exception contains &x00 characters (ASCII 0x00) in its serialized...
1
by: khoy | last post by:
Hello. I am writing a web service and I need to use a Soap Extension to add a custom header that is expected at the destination. I can use the Soap Extension successfully for adding the header...
2
by: Frederik Vanderhaegen | last post by:
Hi, I'm writing a simple soap extension for a webservice I developed (without the use of an extension the webservice works perfect). The extension is registered through the web.config files of...
0
by: Grzegorz Smith | last post by:
Hi All. I 'm learning ZSI to use SOAP and I desperately need help. I'm working on example from tutorial -(examples/server/send_response/ simple/wsdl/). Here are my wsdl files...
1
by: Vesna Sarajevo | last post by:
Hi all and thanx for your help in advance. I'm using MS SOAP Toolkit V3 to call my webservice (which works) but I always get 0 in result, whatever numbers I send. This is just a dummy function...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.