I have written two simple webservice functions and trying
to consume them through a client piece. Both the
webservice functions have similar signature.
--------------------------------------------------------
public string quoteNew(System .Xml.XmlNode passedXML)
and
public string EmitXml(System. Xml.XmlNode passedXML)
---------------------------------------------------------
These two functions are defined in the same namespace and
same class.
So, in the client piece I have written code to acces these
webservices as:
-----------------------------------------------------------
--------
System.Xml.XmlD ocument myDoc = new XmlDocument();
myDoc.Load("som eXMl.XMl");
AccessWebServ.A ttemptII.Attemp tII ws = new
AccessWebServ.A ttemptII.Attemp tII();
string xmlOut1 = ws.EmitXml(myDo c.DocumentEleme nt);
string xmlOut2 = ws.quoteNew(myD oc.DocumentElem ent);
-----------------------------------------------------------
----------
When I debug, I am seeing only EmitXml gets proper xml
passed 100% of the time and quoteNew gets xml with error
filled properties for node (especially Node.InnerXml is
filled with error message).
I get this even if I try one call at a time. I am using
VS.NET Professional evaluation version on windows 2000
server.
Any suggestions to resolve this problem?
Thank you. 1 3644
I apologize, but I don't have time to look at this in more detail, and I'll
be out for a few days. Have you posted this to the web services group?
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
"Srini" <us****@hotmail .com> wrote in message
news:0f******** *************** *****@phx.gbl.. . For the two webServices, I am using same client application. Also, I have both the webServices in the same nameSpace and same class. So, I have added only one web reference for both webServices in my client application. I am using debug mode to see the flow and parameters passed. When control gets into EmitXML, the parameter passedXML shows all correct values (I am interested in innerXML property and it shows that correctly). However, for the same XML, when control comes into quoteNew all the properties of passedXML show error. Here is the snapshot of passedXML properties when control is on the first executable statement of quoteNew:
- passedXML {System.Xml.Xml Element} System.Xml.XmlN ode + [System.Xml.XmlE lement] {System.Xml.Xml Element} System.Xml.XmlE lement System.Object {System.Xml.Xml Element} System.Object Attributes error: cannot obtain value System.Xml.XmlA ttributeCollect ion BaseURI error: cannot obtain value string ChildNodes error: cannot obtain value System.Xml.XmlN odeList Document error: cannot obtain value System.Xml.XmlD ocument FirstChild error: cannot obtain value System.Xml.XmlN ode HasChildNodes error: cannot obtain value bool InnerText error: cannot obtain value string InnerXml error: cannot obtain value string IsContainer error: cannot obtain value bool IsReadOnly error: cannot obtain value bool Item <cannot view indexed property> System.Xml.XmlE lement Item <cannot view indexed property> System.Xml.XmlE lement LastChild error: cannot obtain value System.Xml.XmlN ode LastNode error: cannot obtain value System.Xml.XmlL inkedNode LocalName error: cannot obtain value string Name error: cannot obtain value string NamespaceURI error: cannot obtain value string NextSibling error: cannot obtain value System.Xml.XmlN ode NodeType error: cannot obtain value System.Xml.XmlN odeType NullNode error: cannot obtain value System.Xml.XmlN ode OuterXml error: cannot obtain value string OwnerDocument error: cannot obtain value System.Xml.XmlD ocument + parentNode {System.Xml.Xml DocumentFragmen t} System.Xml.XmlN ode ParentNode error: cannot obtain value System.Xml.XmlN ode Prefix error: cannot obtain value string PreviousSibling error: cannot obtain value System.Xml.XmlN ode Value error: cannot obtain value string XmlLang error: cannot obtain value string XmlSpace error: cannot obtain value System.Xml.XmlS pace XPLocalName error: cannot obtain value string XPNodeType error: cannot obtain value System.Xml.XPat h.XPathNodeType
Since I am using same XML for both the services, why is quoteNew not receiving proper properies?
Thanks for your help.
-----Original Message----- Can you elaborate on the error? Are you 100% your application is notreturning well-formed XML?
-- HTH Christoph Schittko [MVP] Software Architect, .NET Mentor
"Srini" <us****@hotmail .com> wrote in message news:03******* *************** ******@phx.gbl. .. I have written two simple webservice functions and trying to consume them through a client piece. Both the webservice functions have similar signature. -------------------------------------------------------- public string quoteNew(System .Xml.XmlNode passedXML)
and
public string EmitXml(System. Xml.XmlNode passedXML)
-------------------------------------------------------- - These two functions are defined in the same namespace and same class.
So, in the client piece I have written code to acces these webservices as: -------------------------------------------------------- --- -------- System.Xml.XmlD ocument myDoc = new XmlDocument();
myDoc.Load("som eXMl.XMl");
AccessWebServ.A ttemptII.Attemp tII ws = new AccessWebServ.A ttemptII.Attemp tII();
string xmlOut1 = ws.EmitXml(myDo c.DocumentEleme nt); string xmlOut2 = ws.quoteNew(myD oc.DocumentElem ent); -------------------------------------------------------- --- ----------
When I debug, I am seeing only EmitXml gets proper xml passed 100% of the time and quoteNew gets xml with error filled properties for node (especially Node.InnerXml is filled with error message).
I get this even if I try one call at a time. I am using VS.NET Professional evaluation version on windows 2000 server.
Any suggestions to resolve this problem?
Thank you.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: cem marifet |
last post by:
I am trying to pass in a value of null to a webservice
parameter.
I 've tried xsi:nil="true" attribute on the parameter
tag. But it is not recognizing the value as null. Is
there any thing else I need to specify? Any help would be
greatly apreciated.
here is part of soap message for the parameter going in
to webservice
<test xsi:nil="true" /></test>
|
by: K Altsj? |
last post by:
If passing a DataSet to a web method for update using ADO.NET and the
update fails, the parameter list may get corrupt.
The following code example consists of a Web Service and a consumer
console application, both written in C# using VS.NET.
A tiny MSSQL database is required to run the example:
create table test1 (id numeric(1) unique)
The console app creates a DataSet and passes it to the Web Service for
update. The first execution...
|
by: Pete Hearn |
last post by:
Hello All,
New to the whole C#/Webservice/ADO.NET thing, so apologies in advance if
this is a daft question!
I have a webservice which returns a dataset - no problem there and all very
standard. However, I want to pass an arraylist of objects to the method
which returns the dataset (the arraylist contains QBE parameter objects) but
the compiler chokes saying it wants an object array instead.
|
by: Martin |
last post by:
Hi all,
I have a Webservice in C#, I call this webservice function with a parameter
as String object (named pMessage)
In the function the String object pMessage will be set to corresp. messsage.
But in client program, this parameter is unchanged. Why? How can I do?
The code is following:
public bool xxx(String pMessage)
|
by: placek |
last post by:
Hi all.
I would like to create two web services:
- The first one - ImportData - should take as an input parameter a XML
document and return an integer saying if passed XML document was valid
and was succesfully processed.
- The second one - ExportData - should take as an input parameter an
integer an return a XML document.
I would like to know if it is possible to do something like that. Do I
| |
by: Tarlanim |
last post by:
Hi,
i'm looking for a way to pass parameter from a HTML-File to a XML-File.
In HTML-File i have a reference to XML-File and i want to use the
parametre from the HTML-File in XML-File (Parameter from callig HTML
instead of "1234567" and "mike" in XML-File) .
******* XML-File
<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet href="styles_arzt.xsl" type="text/xsl" ?>
|
by: Sivajee Akula |
last post by:
Hello All,
I am trying to consume a .NET Service from Adobe LiveCycle Workflow. The service deals with complex objects. I am getting the following exception at the time of invocation of the service, and due to which my workflow gets stalled.
When I searched the net, I found many posts reporting this error, but none with a solution. There is no code involved in the invocation, everything is handled by Adobe tool itself. I just specify the...
|
by: =?Utf-8?B?QmlsbEF0V29yaw==?= |
last post by:
Hi,
We recently converted a 1.1 project to 2.0 and this included a webservice
which accepted XML for one of the parameters. Since converting to 2.0 I am
getting the following message:
---
A potentially dangerous Request.Form value was detected from the client
(myparam="<root><blah....").
---
The fix used for ASPX pages is to include the @Page directive with
|
by: santoshsri |
last post by:
Hi All,
My C# web application calls a webservice to process a report. It sends XMLs as parameter and in response gets an XML node which stores Binay datatype bin.base64.
It makes an instance of the proxy class of webservice and makes a synchronous call to webservice GetReport() op.
Here is the code snippet -
***************************************************************************************
wbFELIP.wsZProcessReport.ProcessReport...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |