java - Axis 2 (1.6.1) client webservice Basic Auth -
java - Axis 2 (1.6.1) client webservice Basic Auth -
i´m trying implement client webservice (axis 2 1.6.1) in jboss 5.1.0 ga.
i´ve generated stubs , first invocation (to mockservice) works fine.
now want invoke web service (without mockservice) , need inplement basic-authentication.
i implements basic authentication code , i´m sure there isn´t bug in code.
httptransportproperties.authenticator basicauth = new httptransportproperties.authenticator(); basicauth.setusername("username"); basicauth.setpassword("password"); basicauth.setpreemptiveauthentication(true); stub._getserviceclient().getoptions().setproperty(httpconstants.authenticate, basicauth);
since can create invocation using soap ui, believe problem haven´t set "wws-password type" , "wws timetolive" (i have same error message when disable these properties on soap-ui).
i think may need set axis2.xml in server set these properties but... when set configuration file (in jboss)? or define path file? or there else?
thanks all.
note: tried unsucessfully solution: adding user/password soapheader webservice client phone call axis2
my error is:
exception in thread "main" org.apache.axis2.axisfault: internal error (from server) @ org.apache.axis2.util.utils.getinboundfaultfrommessagecontext(utils.java:531) @ org.apache.axis2.description.outinaxisoperationclient.handleresponse(outinaxisoperation.java:375) @ org.apache.axis2.description.outinaxisoperationclient.send(outinaxisoperation.java:421) @ org.apache.axis2.description.outinaxisoperationclient.executeimpl(outinaxisoperation.java:229) @ org.apache.axis2.client.operationclient.execute(operationclient.java:165) @ mypackage.process(mystub.java:187)
p.s- note server web service communicate on https.
p.s.2 - tks edward
just record, i´ve resolved problem using solution in adding user/password soapheader webservice client phone call axis2 .
i had misspelled tag (in case, user tag).
thanks lot.
java axis2 basic-authentication
Comments
Post a Comment