web services - Java-Missing WS-Addressing header: "{http://www.w3.org/2005/08/addressing}Action" -


i try client web service in java 7. it:

warning: required header representing message addressing property not present, problem header:{http://www.w3.org/2005/08/addressing}action com.sun.xml.internal.ws.addressing.model.missingaddressingheaderexception: missing ws-addressing header: "{http://www.w3.org/2005/08/addressing}action"

how can solve error?

thanks lot.

--web service security looks following parts in soapui--

    <wsse:security soapenv:mustunderstand="1" 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">          <wsse:usernametoken wsu:id="usernametoken-1">             <wsse:username>gelistirici</wsse:username>             <wsse:password type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#passwordtext">gelistirme12</wsse:password>             <wsse:nonce encodingtype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#base64binary">nt357!!_</wsse:nonce>             <wsu:created>2016-05-07t11:57:03.821z</wsu:created>          </wsse:usernametoken>       </wsse:security>    </soapenv:header> 

--web service interface--

 @webmethod(action = "getrequestdetail")     @webresult(name = "requestdetail", targetnamespace = "")     @requestwrapper(localname = "getrequestdetail", targetnamespace = "http://xmlns.oracle.com/scheduler", classname = "tr.com.service.soap.client.oracle.ess.beans.getrequestdetail")     @responsewrapper(localname = "getrequestdetailresponse", targetnamespace = "http://xmlns.oracle.com/scheduler", classname = "tr.com.service.soap.client.oracle.ess.beans.getrequestdetailresponse")     public requestdetail getrequestdetail(         @webparam(name = "requestid", targetnamespace = "http://xmlns.oracle.com/scheduler")        long requestid)         throws notfoundexception_exception, runtimeserviceexception_exception; 

--java code web service client--

esswebservice_service service = new esswebservice_service();   esswebservice port = service.getschedulerserviceimplport();   bindingprovider provider = bindingprovider.class.cast(port);    provider.getrequestcontext().put("usernametoken", "usernametoken-1");   provider.getrequestcontext().put("username", "gelistirici");   provider.getrequestcontext().put("password", "gelistirme12");   provider.getrequestcontext().put("nonce", "nt357!!_");   provider.getrequestcontext().put("created", "2016-05-07t11:57:03.821z");    requestdetail requestdetail = port.getrequestdetail(37); 

i moved little bit it

i received first error --missing ws-addressing header--

i find solve link: http://informatictips.blogspot.com.tr/2013/09/using-message-handler-to-alter-soap.html

i received second error --can't add header when 1 present--

i find solve link: severe: saaj0120: can't add header when 1 present

now received third error --java.lang.exceptionininitializererror--

i not find solution error


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -