M
Marlon Baskin
I built a web service that accepts an XML document of type
System.XML.XMLDocument and returns an XML document of the
same type. But when I pass the XML document to the web
service from a client app it throws an
InvalidCastException:
An unhandled exception of
type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: Server was unable to read
request. --> There is an error in XML document (1, 375). --
Is the System.XML.XMLDocument class not a valid type for
passing to web services? Is there a better way to pass
weak-typed XML to the web service (other than just passing
it as a string)? Any help would be appreciated. Thanks!
System.XML.XMLDocument and returns an XML document of the
same type. But when I pass the XML document to the web
service from a client app it throws an
InvalidCastException:
An unhandled exception of
type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: Server was unable to read
request. --> There is an error in XML document (1, 375). --
Specified cast is not valid.
Is the System.XML.XMLDocument class not a valid type for
passing to web services? Is there a better way to pass
weak-typed XML to the web service (other than just passing
it as a string)? Any help would be appreciated. Thanks!