JAX-WS customization allows to setup WSDL to Java mapping (override endpoint interface and exception class name, method names, parameter names, package name) and to control certain features (wrapping style, asynchronous calls).
Questions tagged [jax-ws-customization]
66 questions
11
votes
2 answers
JAX-WS client: maintain session/cookies across multiple services
I'm using Netbeans to automatically create webservice clients based off WSDL files. This works well, except the webservices I'm using require that I pass in a custom cookie in the HTTP header to every webservice in order to prove my identity.
I use…

bradvido
- 2,743
- 7
- 32
- 49
9
votes
4 answers
WS Client with Proxy and Autentification
I know this isn't exactly the correct way to ask a question, but I'm having a problem:
I have a wsdl stored locally, and I need to create a Web Service Client to call that Web Service. The problem is the service is behind a firewall and I have to…

cosmin.danisor
- 943
- 1
- 12
- 29
7
votes
2 answers
JAX-WS spring server-side set custom fault message for RuntimeExceptions
Problem
By default, JAX-WS builds the following SOAP fault message when an uncaught exception that extends RuntimeException occurs on my server:

Adrien Brunelat
- 4,492
- 4
- 29
- 42
6
votes
2 answers
how to get maven-jaxws-plugin to generate @XmlElementWrapper on classes generated from xsd?
I am using maven-jaxws-plugin to generate java classes from my wsdl, schema. It is not generating the @XmlElementWrapper annotation in the generated classes. From this post I understand I nedd to use the jaxb-xew-plugin but am unable to get it…

user1459704
- 61
- 1
- 1
- 3
5
votes
0 answers
Jax-ws: remove namespace prefix from request object
I have a problem in Jax-WS in which the service that I expose can't process the following message:
…

nadavy
- 1,755
- 1
- 18
- 33
5
votes
3 answers
JAX-WS custom object received in request is null
I've used JAX-WS before, but have not passed a custom object as a parameter before. I'm using GlassFish 3.1, NetBeans 7.3 and created services through NetBeans JAX-WS wizard.
My problem is when custom object (Criteria) passed to service is received…

user2361862
- 95
- 4
- 10
5
votes
1 answer
WSDL customization: XMLGregorianCalender to java.util.Date
I have several wsdl files almost hundreds. Whenever I create client jaxb client classes for them the Jaxb automatically maps all the date/time fields to XMLGregorianCalender. After a lot of googling, I found out providing a separate binding file is…

Stuarty
- 278
- 4
- 13
5
votes
2 answers
Why is a default constructor required for objects exported by a JAX-WS?
JAX-WS requires that all classes that are transmitted have a default contructor (no-arg constructor). I do not understand that requirement because clients create their own classes based on the WSDL. IMO this requirement makes sense only for those…

Stefan
- 207
- 2
- 8
5
votes
2 answers
Asynchronous web services calls with JAX-WS: Use wsimport support for asynchrony or roll my own?
There is an excellent article by Young Yang that explains how to use wsimport to create web service client artifacts that have asynchronous web service calls. Asynchrony requires that the WSDL has the tag…

Dean Schulze
- 9,633
- 24
- 100
- 165
4
votes
1 answer
What customization to apply for JAX-WS to unwrap return objects to lists?
I am trying to find if there is a way to customize e.g. CSID2ExtRefs operation for ChemSpider WebService that is passed a list of strings as one of the arguments and returns the list of objects:

dma_k
- 10,431
- 16
- 76
- 128
4
votes
1 answer
jaxws: It is not a jaxws or a jaxb binding file
I'm getting this error message:
[WARNING] Ignoring: binding file "file:/home/jeusdi/projects/salut/hes/hes-visor-api-service/src/jaxws/bindings.xml". It is not a jaxws or a jaxb binding file
It's telling me that my binding.xml file is not valid…

Jordi
- 20,868
- 39
- 149
- 333
4
votes
0 answers
Using different package names for bindings and wsdl using the jaxws maven plugin
We have a special requirement with our application: files generated against the wsdl should have a given package name and files generated against xsd files should have another package name.
There does not seem to have a way to customize this with…

balteo
- 23,602
- 63
- 219
- 412
4
votes
1 answer
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 3.1.2.2 and get the following compilation error:
[wsimport] [ERROR] Invalid operation "Void", it's java reserved word, can't generate java method. Use customization…

TheArchitect
- 2,161
- 1
- 12
- 16
3
votes
2 answers
How to extract JAX-WS @RequestWrapper attribute (or full bean)
Is it possible to extract an attribute (as in XML attribute value) from a RequestWrapper object?
In my implementation, I'd like to use the value of the attribute, but can't reference it with @WebParam, as that is only for elements (I…

brianmckenna
- 61
- 1
- 4
3
votes
1 answer
disable soap validation of a soap client using the default jaxws-ri implementation of the jdk 8
My environment is a maven project with spring boot.
I am using wsimport to generate JAX-WS Code from a WSDL .
i want to disable the soap validation when i receive the soap response. I am using the default implementation of jax-WS of the jdk8. the…

Ala Messaoudi
- 366
- 4
- 12