On Dec 1, 2012, at 9:06 AM, sjade <[email protected]> wrote: > Hi, > > I am using CXF 2.6.1. > > I am accessing a web service from a CXF client and I need to append the user > name and password to the WSDL location url. I tried adding user name and > password in the WSDL as shown below: > > <wsdl:port binding="impl:AdaptiveAuthenticationAdminSoapBinding" > name="AdaptiveAuthenticationAdmin"> > <wsdlsoap:address > location="http://localhost:8888/AAAdmin/services/AAAdmin?username=xx&password=xxxxxx"/> > </wsdl:port>
You likely need to escape the & in there: > location="http://localhost:8888/AAAdmin/services/AAAdmin?username=xx&password=xxxxxx" Dan > > But it gives an exception: Unexpected character '=' (code 61); expected a > semi-colon after the reference for entity > > I tried using: > userAdminService = new UserAdminServiceService().getAAAdmin(); > BindingProvider bp = (BindingProvider)userAdminService; > bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "xx"); > bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "xxxxx"); > > I get 404 from the service. > > Can someone please help? Appreciate it. > > Thank you, > Jade > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/How-to-append-username-and-password-to-WSDL-Location-tp5719534.html > Sent from the cxf-user mailing list archive at Nabble.com. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
