Hi,
My comment inline
On 2011-6-5, at 上午12:23, stimpy wrote:
Thanks for the post Freeman
That link was very helpful ( as is your blog ), not sure how I
missed it .
So if I am only using basic authentication then i need the following
namespaces
<beans ...
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration
...
xsi:schemaLocation="...
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
...>
and the following elements
<http-conf:conduit
name="{http://apache.org/hello_world}HelloWorld.http-conduit">
<http:authorization>
<sec:UserName>Betty</sec:UserName>
<sec:Password>password</sec:Password>
</http:authorization>
</http-conf:conduit>
and the conduit name is set for based on the format portQName.http-
conduit
You actually can use
<http:conduit name="*.http-conduit">
which can match any endpoint as you mentioned before you wanna basic
auth for all of your endpoint.
Should the <http:authorization> elements be changed to
<http-conf:authorization> to match the namespace in the example i
posted
above ?
yes
Do I need to add a xmlns:sec="http://cxf.apache.org/configuration/security
"
and http://cxf.apache.org/schemas/configuration/security.xsd
or are
those only when using SSL ?
no.
Freeman
thanks
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-with-basic-authentication-with-wsdl2java-tp4452439p4454308.html
Sent from the cxf-user mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com