Calling web service from Java "The message with Action '' cannot be processed at the receiver" -


i'm newbie web services , java, have issues connect application external web service. time exception

the message action '' cannot processed @ receiver

maybe assumptions wrong, think action defined inside soap payload. here wsdl:

<?xml version='1.0'?> <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.tempuri.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/xmlschema" targetnamespace="http://www.tempuri.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">   <types />   <message name="biniciarreportrequest">     <part name="eausuario" type="xsd:string" />     <part name="eamodulo" type="xsd:string" />     <part name="eanomrepor" type="xsd:string" />     <part name="eaparamrepor" type="xsd:string" />     <part name="eanompanta" type="xsd:string" />   </message>   <message name="biniciarreportresponse">     <part name="result" type="xsd:boolean" />   </message>   <porttype name="pws_lanza_repor_port_1">     <operation name="biniciarreport">       <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />       <input message="tns:biniciarreportrequest" />       <output message="tns:biniciarreportresponse" />     </operation>   </porttype>   <binding name="pws_lanza_repor_port_1soap" type="tns:pws_lanza_repor_port_1">     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />     <operation name="biniciarreport">       <soap:operation soapaction="http://www.tempuri.org/wsdl/biniciarreportrequest" style="rpc" />       <input name="biniciarreportrequest">         <soap:body use="encoded" namespace="http://www.tempuri.org/wsdl/" encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" />       </input>       <output name="biniciarreportresponse">         <soap:body use="encoded" namespace="http://www.tempuri.org/wsdl/" encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" />       </output>     </operation>   </binding>   <service name="pws_lanza_repor">     <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />     <port name="pws_lanza_repor_port_1port" binding="tns:pws_lanza_repor_port_1soap">       <soap:address location="" />     </port>   </service> </definitions> 

here code i'm using:

        final string endpointurl = this.configuracion                 .getconfigjndi(ws_mecanizacion_jndi);          final qname servicename = new qname(null,                 "pws_lanza_repor");         final qname portname = new qname(null, "pws_lanza_repor_port_1port");         final javax.xml.ws.service service = javax.xml.ws.service                 .create(servicename);         service.addport(portname, soapbinding.soap11http_binding,                 endpointurl);          final dispatch<soapmessage> dispatch = service.createdispatch(                 portname, soapmessage.class,                 javax.xml.ws.service.mode.message);          final soapmessage response = dispatch.invoke(mensajesoap); 

if use soapui check out, works fine (the message ok endpointurl), no success whatsoever java application.

this soap message i'm sending:

<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="s" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">     <soap-env:header/>     <soap-env:body>         <wsdl:biniciarreport xmlns:wsdl="cosa">             <eausuario>cd</eausuario>             <eamodulo>pr</eamodulo>             <eanomrepor>prr14</eanomrepor>             <eaparamrepor/>             <eanompanta/>         </wsdl:biniciarreport>     </soap-env:body> </soap-env:envelope> 

i don't know whether important, url given has no "?wsdl" @ end:

http://prueba/prueba/pws_lanza_rep1.svc

any clues?

i haven't figured out yet, following steps here worked fine! have used same xml , same parameters, still remains mistery me why previous code didn't work.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -