I've never heard of appending a username and password to the URL string,
your internet service provider would become immediately aware of that
info if that were the case. The BindingProvider method you're
mentioning instead is the standard way, and the 404 you're getting does
not mean an auth error (i.e., that you should therefore append username
& password to the URL string) but simply that there's no server at the
URL you're pointing to (could it be that you should be using SSL, i.e.,
"https://", instead of "http://"? That might be your problem.) I'd
continue hacking at the latter approach if you can
(http://www.jroller.com/gmazza/entry/ssl_for_web_services).
Glen
On 12/01/2012 09:06 AM, sjade 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>
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.
--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza