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
0
votes
1 answer
How @WebResult annotation works in JAX-WS
I'm trying to create Jax-ws WebServices. But stuck with this behaviour of JAX-WS 2.2.
I wrote the SEI class in the following way
@WebService
@SOAPBinding(parameterStyle=ParameterStyle.WRAPPED,use=Use.LITERAL,style=Style.DOCUMENT)
public…

sushmithaP
- 133
- 1
- 3
- 12
0
votes
1 answer
wsdl2java output produces only the package name
i have used a sample wsdl in my java code. when i try to print the output it returns only the package name like:
com.holidaywebservice.holidayservice_v2.CountryCode@6b6478
This happens only when the output was a list.
Part of my…

vineeth chandra
- 1
- 1
0
votes
1 answer
0
votes
1 answer
XSD Restrictions for bottom-up JAX-WS
We are using Spring and CXF to provide SOAP Web Services. The WSDL is being generated from Java Code.
Is there a way to define validation rules in Java code that would be applied to generated XSD?
For example, support for some of JSR 303…

Maciej Miklas
- 3,305
- 4
- 27
- 52
0
votes
3 answers
Intercepting SOAP request Enum parameter to throe message to user if request type is different than defined in Enum
We have SOAP webservice and our approach is WSDL first.
Below you see the request object generated from wsdl via wsdl to java plugin in pom.xml.
This is how request object looks like:
@XmlRootElement(name = "XXXRequest")
public class GetXXXRequest…

user3330509
- 1
- 2
0
votes
3 answers
jaxb2-basics-annotate with jaxws-maven-plugin configuration
I have a maven configuration using the jaxws-maven-plugin to generate the class files from the wsdl.
I am trying to get the jaxb2-basics-annotate plugin to work with the generation to allow me to add some annotations to the generated output.
The…

sweetfa
- 5,457
- 2
- 48
- 62
0
votes
1 answer
why void return method and throws no exception methods are not considered as one way operation by default in jax-ws?
I know that jaxws 2.2 specification says that all public non-static non-final method on a SEI which does not have WebMethod annotation with exclude as true, should be mapped to wsdl:operation elements.
It also says only the methods annotated with…

Senthilkumar Annadurai
- 412
- 1
- 4
- 17
0
votes
1 answer
What is the alternative solution for @javax.jws.WebMethod(exclude=true)?
In process of up-gradation CXF jars from 2.2.12 to 3.1.6, I am facing issue with "exclude=true" attribute in @javax.jws.WebMethod annotation while building my project. I am getting following exception.
[java] Error: java.lang.RuntimeException:
…

Sunny Gujarati
- 71
- 5
0
votes
1 answer
JAX-WS namespace in attribute, not prefix
is possible in JAX-WS to generate xmlns attributes instead of prefixes?
Example: Object A from package myns.a contains some objects B1, B2 from package myns.b. Generated SOAP message:

mrq
- 13
- 3
0
votes
1 answer
jaxws wsdl common entities
I want to customize package name of entities used on a webservice. The main objective is to share entities between differents webservice.
I am using jaxws + jaxb to bind entities to their corresponding package.
However, only the ObjectFactory link…

Damien ClmntdHrt
- 9
- 3
0
votes
0 answers
How to get Only SOAP XML message without headers in TCP/IP monitor
I developed a simple web service project using JAX-WS with My Eclipse. Application works fine. But If I see the TCP/IP monitor in the My eclipse IDE.
Request & Response showing like the following :
Request Part :
GET /webservices/demo?wsdl…

Ram Kowsu
- 711
- 2
- 10
- 30
0
votes
0 answers
Namespace issue with Jax-Ws webservice
I have a scenario where I have written webserive in Jax-Ws, from this webservice I am calling third party webservice developed in axis.
I am facing namespace issue, JAX-WS by default add namespace attribute in each of the request, where as axis…

Prateek Shrivastava
- 450
- 2
- 5
- 17
0
votes
0 answers
Customizing/Remove name space in Soap Response - JAX-WS
We have implemented a web-service using JAX-WS and we wanted to completely remove the namespace prefix from the web-service response.
Just FYI this is running on Oracle WebLogic Server. I want to change the Webservice Response generated. I am not…

Hero
- 639
- 4
- 12
- 33
0
votes
1 answer
Is it possible to create JAX-WS Service in JAR and not in WAR?
I'm new to Java so I may be misunderstanding some of nouns - I hope I'll get it right.
We are creating an extension to a third party software which loads our JAR dynamically. As part of the implementation, the extension should have a service…

nadavy
- 1,755
- 1
- 18
- 33
0
votes
0 answers
Keep original wsdl in jax-ws
How can I expose a webservice keeping the original wsdl file?
I have a wsdl file and I generated the stub classes from that file, then I implemented the service, but when I deploy in my Weblogic server, the generated wsdl file is not the same as…

rvillablanca
- 1,606
- 3
- 21
- 34