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.XmlElement}
System.Xml.XmlNode
+ [System.Xml.XmlElement] {System.Xml.XmlElement}
System.Xml.XmlElement
System.Object {System.Xml.XmlElement}
System.Object
Attributes error: cannot obtain value
System.Xml.XmlAttributeCollection
BaseURI error: cannot obtain value string
ChildNodes error: cannot obtain value
System.Xml.XmlNodeList
Document error: cannot obtain value
System.Xml.XmlDocument
FirstChild error: cannot obtain value
System.Xml.XmlNode
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.XmlElement
Item <cannot view indexed property>
System.Xml.XmlElement
LastChild error: cannot obtain value
System.Xml.XmlNode
LastNode error: cannot obtain value
System.Xml.XmlLinkedNode
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.XmlNode
NodeType error: cannot obtain value
System.Xml.XmlNodeType
NullNode error: cannot obtain value
System.Xml.XmlNode
OuterXml error: cannot obtain value
string
OwnerDocument error: cannot obtain value
System.Xml.XmlDocument
+ parentNode {System.Xml.XmlDocumentFragment}
System.Xml.XmlNode
ParentNode error: cannot obtain value
System.Xml.XmlNode
Prefix error: cannot obtain value string
PreviousSibling error: cannot obtain value
System.Xml.XmlNode
Value error: cannot obtain value string
XmlLang error: cannot obtain value string
XmlSpace error: cannot obtain value
System.Xml.XmlSpace
XPLocalName error: cannot obtain value
string
XPNodeType error: cannot obtain value
System.Xml.XPath.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.XmlDocument myDoc = new XmlDocument();
myDoc.Load("someXMl.XMl");
AccessWebServ.AttemptII.AttemptII ws = new
AccessWebServ.AttemptII.AttemptII();
string xmlOut1 = ws.EmitXml(myDoc.DocumentElement);
string xmlOut2 = ws.quoteNew(myDoc.DocumentElement);
-------------------------------------------------------- --- ----------
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.
.