You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2019/05/30 10:34:01 UTC

[jira] [Resolved] (CXF-8050) UsernameToken issue when is used JaxWsProxyFactoryBean

     [ https://issues.apache.org/jira/browse/CXF-8050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved CXF-8050.
--------------------------------------
    Resolution: Not A Problem

> UsernameToken issue when is used JaxWsProxyFactoryBean
> ------------------------------------------------------
>
>                 Key: CXF-8050
>                 URL: https://issues.apache.org/jira/browse/CXF-8050
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Tsvetoslav
>            Priority: Major
>         Attachments: cxf-jaxws-spring-boot_WS-Policy.zip
>
>
> Hello,
>  
> I'm developing CXF soap Web Service using "cxf-spring-boot-starter-jaxws" plugin.
> I'm trying to add UsernameToken using WS-Policy(not Interceptor).
>  # I extended my WSDL file and "ws-security.callback-handler" in my endpoint property. 
>  # In my WS-Client com.test.client.DemoWSClient when I use @WebServiceClient I successfully managed to add Username and Password using ((BindingProvider)port).getRequestContext().
>  # When I tried to do the same for my Integration test using JaxWsProxyFactoryBean - com.test.client.ClientConfig and com.test.client.HelloWorldClient nothing is happened although I used the same code. 
> I have created  very small demo project [^cxf-jaxws-spring-boot_WS-Policy.zip] which I attached you for easier issue debugging . Based on the console can be seen what's the generated SOAP messages
>  * First(working) case - Run the application and run the Client(com.test.client.DemoWSClient) like standalone Java Application 
>  * Second(doesn't working) - Build the application
>  
> Note: If I use Interceptor everything work fine.
> Thank you in advance!
>  
> BR,
> Tsetso



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)