Web Service consumer fails to consume XMLDocument
hi,
could me resolve problem. developed web service receives xml document , returns xml document calling program. for testing purpose created dummy web service consumer calls web service. works fine in local pc. problem occurred when tried move web service (asmx & dll) internet development server. calling program works fine if web reference pointing web service in localhost, fails if pointing internet dev server. returns error:
server error in '/' application.
server unable process request. ---> given path's format not supported.
description: an unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.
exception details: system.web.services.protocols.soapexception: server unable process request. ---> given path's format not supported.
source error:
line 142: <system.web.services.protocols.soapdocumentmethodattribute("http://www.dev.intranet/ws/fmstrainconsistimport/receivetrainservice", requestnamespace:="http://www.dev.intranet/ws/fmstrainconsistimport/", responsenamespace:="http://www.dev.intranet/ws/fmstrainconsistimport/", use:=system.web.services.description.soapbindinguse.literal, parameterstyle:=system.web.services.protocols.soapparameterstyle.wrapped)> _ line 143: public function receivetrainservice(byval p_xmldoc system.xml.xmlnode) system.xml.xmlnode line 144: dim results() object = me.invoke("receivetrainservice", new object() {p_xmldoc}) line 145: return ctype(results(0),system.xml.xmlnode) line 146: end function
source file: c:\documents , settings\we01171\local settings\application data\temporary projects\fmstrainconsistconsumer\web references\localhost\reference.vb line: 144
stack trace:
[soapexception: server unable process request. ---> given path's format not supported.] system.web.services.protocols.soaphttpclientprotocol.readresponse(soapclientmessage message, webresponse response, stream responsestream, boolean asynccall) +1545 system.web.services.protocols.soaphttpclientprotocol.invoke(string methodname, object[] parameters) +205 fmstrainconsistconsumer.localhost.fmstrainconsistimport.receivetrainservice(xmlnode p_xmldoc) in c:\documents , settings\we01171\local settings\application data\temporary projects\fmstrainconsistconsumer\web references\localhost\reference.vb:144 fmstrainconsistconsumer.wsconsumer.btnts_click(object sender, eventargs e) in c:\documents , settings\we01171\local settings\application data\temporary projects\fmstrainconsistconsumer\wsconsumer.aspx.vb:42 system.web.ui.webcontrols.button.onclick(eventargs e) +75 system.web.ui.webcontrols.button.raisepostbackevent(string eventargument) +97 system.web.ui.webcontrols.button.system.web.ui.ipostbackeventhandler.raisepostbackevent(string eventargument) +7 system.web.ui.page.raisepostbackevent(ipostbackeventhandler sourcecontrol, string eventargument) +11 system.web.ui.page.raisepostbackevent(namevaluecollection postdata) +33 system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +4919
btw, internet development server located intranet development machine. tried add 1 more function hello world in web service test connection. returns a string of hello world. sure there nothing wrong connection nor code/logic considered works fine localhost. however, might have issue xml document type parameter in intranet server. there setting needs done in iis allows xmldocument kind of type?
any appreciated. thanks
problem solved:
inside web service, have method writes xmldocument w drive aspnet user not have write access it.
just give aspnet user access , do.
while hello world fine because returning string , not write folder.
Archived Forums A-B > ASMX Web Services and XML Serialization
Comments
Post a Comment