you need to examine the XML (response) that is being returned by the
service.
Try something like proxytrace, or the TCPMonitor tool in the Apache AXIS
toolkit.
etc
-D
"Jasmeet Sangari via .NET 247" <> wrote in message
news:...
Hi,
I am writting a .NET Client for a Java Web Service.I have created a .cs file
from the WSDL and the XSD's Given.
I am trying to query a Web Service which has the description:::
// Service Description:::::::
[System.Web.Services.Protocols.SoapDocumentMethodAt tribute("urn:#solicitar",
Use=System.Web.Services.Description.SoapBindingUse .Literal,
ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.Bare)]
[return: System.Xml.Serialization.XmlElementAttribute("Resp onse",
Namespace="http://example")]
public string
solicitar([System.Xml.Serialization.XmlElementAttribute(Names pace="http://example")]
idMesage Mesage) {
object[] results = this.Invoke("Function", new object[] {Mesage});
return ((string)(results[0]));
But when I query the Web Service from my Client I get an Error Like:::
Error in the Client:::::
"System.InvalidOperationException: There is an error in XML document (8,
5). ---> System.Xml.XmlException: 'Element' is an invalid node type. Line 8,
position 5.\r\n at System.Xml.XmlReader.ReadElementString()\r\n at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read117_Response()\r\n
--- End of inner exception stack trace ---\r\n at
System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader,
String encodingStyle, XmlDeserializationEvents events)\r\n at
System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader,
XmlDeserializationEvents events)\r\n at
System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader)\r\n
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)\r\n
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
System.InvalidOperationException: There is an error in XML document (8,
5) ---> System.Xml.XmlException: 'Element' is an invalid node type. Line 8,
position 5.\r\n at System.Xml.XmlReader.ReadElementString()\r\n at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read117_Response()
Please help,
Regards,
Jasmeet
--------------------------------
From: Jasmeet Sangari
-----------------------
Posted by a user from .NET 247 (
http://www.dotnet247.com/)
<Id>ENFfwlgO70CwB6Eqi6RnQg==</Id>