[ 
https://issues.apache.org/jira/browse/CXF-8825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700442#comment-17700442
 ] 

Andriy Redko commented on CXF-8825:
-----------------------------------

[~shakked] your `async_bindings.xml` is incomplete and misses wsdlLocation 
property (as such, the async bindings are not applied):

 
{noformat}
<bindings xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns="http://java.sun.com/xml/ns/jaxws"; wsdlLocation="waget.btl.gov.il.wsdl">
    <bindings node="wsdl:definitions">
        <enableAsyncMapping>true</enableAsyncMapping>
    </bindings>
</bindings>

 {noformat}
 

See please official examples: 
https://github.com/apache/cxf/tree/3.5.x-fixes/distribution/src/main/release/samples/jaxws_async/wsdl

> enableAsyncMapping does not work
> --------------------------------
>
>                 Key: CXF-8825
>                 URL: https://issues.apache.org/jira/browse/CXF-8825
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.0.0
>         Environment: Pom plugin:
> <plugins>
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>3.5.5</version>
> <executions>
> <execution>
> <id>generate-sources</id>
> <phase>generate-sources</phase>
> <configuration>
> <sourceRoot>${project.build.directory}/generated-sources/cxf</sourceRoot>
> <wsdlOptions>
> <wsdlOption>
> <wsdl>[https://waget.btl.gov.il:443/WCFReporting/?WSDL|https://waget.btl.gov.il/WCFReporting/?WSDL]</wsdl>
> <bindingFiles>
> <bindingFile>${basedir}/src/main/resources/async_bindings.xml</bindingFile>
> </bindingFiles>
> </wsdlOption>
> <wsdlOption>
> <wsdl>[https://b2b.btl.gov.il/BTL.B2B.WCF.BTLWCFB2BServices/Service.svc?wsdl]</wsdl>
> <bindingFiles>
> <bindingFile>${basedir}/src/main/resources/async_bindings.xml</bindingFile>
> </bindingFiles>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
>            Reporter: shakked
>            Priority: Major
>         Attachments: async_bindings.xml, waget.btl.gov.il.wsdl
>
>
> When adding biding file for reaching async functions with 
> <enableAsyncMapping>true</enableAsyncMapping>, the async functions does not 
> map. Older versions accept this binding and map the async functions



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to