How to customize the JAXWS mapping of an SOAP operation whose name is reserved in Java
I'm trying to compile a wsdl from a partner with JAX-WS 2.2.6 embedded in GlassFish 188.8.131.52 and get the following compilation error:
[wsimport] [ERROR] Invalid operation "Void", it's java reserved word, can't generate java method. Use customization to change the operation name.
So I tried to map this operation name to another Java method name via a custom JAXWS binding file:
<?xml version="1.0" encoding="utf-8"?>
but it doesn't seem to recognize this method element:
[wsimport] [ERROR] invalid extension element: "jaxws:method" (in namespace "http://java.sun.com/xml/ns/jaxws")
I'm a bit at loss as this is the correct namespace and is exactly as documented in section 184.108.40.206 of https://jax-ws.java.net/nonav/2.2.6/docs/ch03.html#standard-customizations
It's not an xpath issue as if I alter the node, then I get another error that the "XPath evaluation results in an empty target node".
Any idea? Thanks!