jax ws - WCF Web Service, Java Web Client, MustUnderstand headers not understood? -



jax ws - WCF Web Service, Java Web Client, MustUnderstand headers not understood? -

i'm hosting wcf web service next wsdl (a simple service using wshttpbinding , ssl transport security):

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="magiceightballservice" targetnamespace="http://tempuri.org/"> <wsp:policy wsu:id="wshttpbinding_transportsecurity_imagiceightballservice_policy"> <wsp:exactlyone> <wsp:all> <sp:transportbinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:policy> <sp:transporttoken> <wsp:policy> <sp:httpstoken requireclientcertificate="false"/> </wsp:policy> </sp:transporttoken> <sp:algorithmsuite> <wsp:policy> <sp:basic256/> </wsp:policy> </sp:algorithmsuite> <sp:layout> <wsp:policy> <sp:strict/> </wsp:policy> </sp:layout> </wsp:policy> </sp:transportbinding> <wsaw:usingaddressing/> </wsp:all> </wsp:exactlyone> </wsp:policy> <wsdl:types> <xsd:schema targetnamespace="http://tempuri.org/imports"> <xsd:import schemalocation="http://my.local.domain.name/magiceightball/magiceightballservice.svc?xsd=xsd0" namespace="http://tempuri.org/"/> <xsd:import schemalocation="http://my.local.domain.name/magiceightball/magiceightballservice.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/serialization/"/> </xsd:schema> </wsdl:types> <wsdl:message name="imagiceightballservice_getadvice_inputmessage"> <wsdl:part name="parameters" element="tns:getadvice"/> </wsdl:message> <wsdl:message name="imagiceightballservice_getadvice_outputmessage"> <wsdl:part name="parameters" element="tns:getadviceresponse"/> </wsdl:message> <wsdl:porttype name="imagiceightballservice"> <wsdl:operation name="getadvice"> <wsdl:input wsaw:action="http://tempuri.org/imagiceightballservice/getadvice" message="tns:imagiceightballservice_getadvice_inputmessage"/> <wsdl:output wsaw:action="http://tempuri.org/imagiceightballservice/getadviceresponse" message="tns:imagiceightballservice_getadvice_outputmessage"/> </wsdl:operation> </wsdl:porttype> <wsdl:binding name="wshttpbinding_transportsecurity_imagiceightballservice" type="tns:imagiceightballservice"> <wsp:policyreference uri="#wshttpbinding_transportsecurity_imagiceightballservice_policy"/> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getadvice"> <soap12:operation soapaction="http://tempuri.org/imagiceightballservice/getadvice" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="magiceightballservice"> <wsdl:port name="wshttpbinding_transportsecurity_imagiceightballservice" binding="tns:wshttpbinding_transportsecurity_imagiceightballservice"> <soap12:address location="https://localhost/magiceightball/magiceightballservice.svc"/> <wsa10:endpointreference> <wsa10:address> https://localhost/magiceightball/magiceightballservice.svc </wsa10:address> </wsa10:endpointreference> </wsdl:port> </wsdl:service> </wsdl:definitions>

why errors when seek consume java? when seek consume using axis2/java, error:

org.apache.axis2.axisfault: must understand check failed header http://www.w3.org/2005/08/addressing : action

and when seek utilize jax-ws, error:

javax.xml.ws.soap.soapfaultexception: mustunderstand headers:[{http://www.w3.org/2005/08/addressing}action] not understood

so far haven't had success either of these, , i'm not sure whether prepare needs applied server or client.

(see a related question posted more details, including wcf web.config).

running:

serviceclient sc = stub._getserviceclient(); sc.engagemodule("addressing");

engages addressing module, fixing issue.

wcf jax-ws axis2 soapfault

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -