Thanks
Date: Sun, 20 Jan 2013 11:08:52 -0800
From: [email protected]
To: [email protected]
Subject: RE: org.apache.cxf.ws.policy.PolicyException: No username available
cxf 2.70
Hi,
Client bean name attribute in form "{http://service.target.namespace}PortName"
is mandatory if you use createdFromAPI="true"
(http://cxf.apache.org/docs/jax-ws-configuration.html ).
Cheers,
Andrei.
> -----Original Message-----
> From: cb9 [mailto:[hidden email]]
> Sent: Sonntag, 20. Januar 2013 14:36
> To: [hidden email]
> Subject: Re: org.apache.cxf.ws.policy.PolicyException: No username
> available cxf 2.70
>
> Hi,
>
> Changing client configuration file to following made it worked.
>
> <jaxws:client name="{http://cxf5.test.com/}HelloWorldImplPort"
> createdFromAPI="true">
> <jaxws:properties>
> <entry key="ws-security.username"
> value="testuser" />
> <entry key="ws-security.callback-handler"
> value="com.test.cxf_client1.ClientPasswordCallback" />
> </jaxws:properties>
>
> <jaxws:inInterceptors><ref bean="logInBound"
> /></jaxws:inInterceptors>
>
> <jaxws:outInterceptors> <ref
> bean="logOutBound"/></jaxws:outInterceptors>
>
> </jaxws:client>
>
> But I could not understand why I have to define spring configuration like this
> and *not* like following
>
> <jaxws:client id="helloClient" serviceClass="com.test.cxf5.HelloWorld"
> address="http://localhost:8080/cxf5/HelloWorld"
> createdFromAPI="true">
>
> ...............
> .............
>
> </jaxws:client>
>
> Where can I get documentation to read more about correct way to do
> configuration?
>
> Charles.
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/org-apache-
> cxf-ws-policy-PolicyException-No-username-available-cxf-2-70-
> tp5721900p5721905.html
> Sent from the cxf-user mailing list archive at Nabble.com.
If you reply to this email, your message will be added to the
discussion below:
http://cxf.547215.n5.nabble.com/org-apache-cxf-ws-policy-PolicyException-No-username-available-cxf-2-70-tp5721900p5721910.html
To unsubscribe from org.apache.cxf.ws.policy.PolicyException:
No username available cxf 2.70, click here.
NAML
--
View this message in context:
http://cxf.547215.n5.nabble.com/org-apache-cxf-ws-policy-PolicyException-No-username-available-cxf-2-70-tp5721900p5721953.html
Sent from the cxf-user mailing list archive at Nabble.com.