WSE3 Web service call returns good SOAP but proxy returns null
i'm trying web service run inside regular windows service, using technique seems pretty documented, e.g. http://geekswithblogs.net/marcel/archive/2007/04/02/110610.aspx.
when run client, i've tried generating using both wsewsdl3.exe , wsdl.exe, null string back.
webservice code:
[webservice(namespace = "http://mynamespace.whatever")] [webservicebinding(conformsto = "wsiprofiles.basicprofile1_1")] public class mywebservice : webservice { [webmethod] public string helloworld() { console.writeline("received request hello."); return "hello world"; } }
my proxy, generated using wse3 version of exe:
[system.codedom.compiler.generatedcodeattribute("wsdl", "2.0.50727.42")] [system.diagnostics.debuggerstepthroughattribute()] [system.componentmodel.designercategoryattribute("code")] [system.web.services.webservicebindingattribute(name="servicesoap", namespace=http://mynamespace.whatever)] public partial class service : microsoft.web.services3.webservicesclientprotocol {
... [system.web.services.protocols.soapdocumentmethodattribute(http://mynamespace.whatever/helloworld, requestnamespace="http://mynamespace.whatever", responsenamespace="http://mynamespace.whatever", use=system.web.services.description.soapbindinguse.literal, parameterstyle=system.web.services.protocols.soapparameterstyle.wrapped)] public string helloworld() { object[] results = this.invoke("helloworld", new object[0]); return ((string)(results[0])); }
here's soap envelope returned client looks like:
<soap:envelope xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns: soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:header> </soap:header> <soap:body> <helloworldresponse xmlns:xsi=http://www.w3.org/2001/xmlschema-instance xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns ="http://mynamespace.whatever"> <helloworldresult> hello world</helloworldresult> </helloworldresponse> </soap:body> </soap:envelope>
does have ideas why proxy wouldn't able parse response?
Archived Forums A-B > ASMX Web Services and XML Serialization
Comments
Post a Comment