You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/09/05 15:46:20 UTC
[GitHub] [camel-quarkus] javaduke commented on issue #4058: CXF test fails in Quarkus Platform because of hard-coded absolute local wsdlLocation
javaduke commented on issue #4058:
URL: https://github.com/apache/camel-quarkus/issues/4058#issuecomment-1237232799
Yup, this trick did the job:
```
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/HelloService.wsdl</wsdl>
<wsdlLocation>classpath:wsdl/HelloService.wsdl</wsdlLocation>
<extraargs>
<extraarg>-xjc-Xts</extraarg>
</extraargs>
</wsdlOption>
```
And the generated code looks like this:
```
static {
URL url = HelloService.class.getClassLoader().getResource("wsdl/HelloService.wsdl");
if (url == null) {
java.util.logging.Logger.getLogger(HelloService.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "classpath:wsdl/HelloService.wsdl");
}
WSDL_LOCATION = url;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org