Questions tagged [jax-ws]

JAX-WS is the JSR 224 defining a Java API for XML-Based Web Services

Specifications:

  • JavaTM API for XML-Based Web Services (JAX-WS) 2.0 - JSR 224
  • Web Services Metadata for the Java Platform 2.1 - JSR 181
  • Web Services for Java EE, version 1.3 - JSR 109


Implementations:


Useful links:

JAX-WS Reference Implementation (RI) Project

4067 questions
205
votes
20 answers

Tracing XML request/responses with JAX-WS

Is there an easy way (aka: not using a proxy) to get access to the raw request/response XML for a webservice published with JAX-WS reference implementation (the one included in JDK 1.5 and better) ? Being able to do that via code is what I need to…
Antonio
  • 3,027
  • 2
  • 18
  • 9
147
votes
4 answers

Difference between JAX-WS, Axis2 and CXF

What is the difference between: JAX-WS Axis2 CXF All three can be used to create webservices in Java. As of I know JAX-WS is a specification and Axis2 and CXF are implementations, but Java 1.6 has implementation of JAX-WS if I am not wrong. So one…
Maverick Riz
  • 2,025
  • 5
  • 19
  • 23
117
votes
4 answers

How to do a SOAP Web Service call from Java class?

I'm relative new to the webservices world and my research seems to have confused me more than enlighten me, my problem is that I was given a library(jar) which I have to extend with some webservice functionality. This library will be shared to other…
jpz
  • 1,181
  • 3
  • 8
  • 4
114
votes
4 answers

How to change webservice url endpoint?

I generated a web-service client using JBoss utils (JAX-WS compatible) using Eclipse 'web service client from a wsdl'. So, the only thing I provided was a url to a web-service WSDL. Now, the web service provider tells me to change the "url of client…
EugeneP
  • 11,783
  • 32
  • 96
  • 142
107
votes
8 answers

How do I set the timeout for a JAX-WS webservice client?

I've used JAXWS-RI 2.1 to create an interface for my web service, based on a WSDL. I can interact with the web service no problems, but haven't been able to specify a timeout for sending requests to the web service. If for some reason it does not…
ninesided
  • 23,085
  • 14
  • 83
  • 107
103
votes
6 answers

What is the difference between Document style and RPC style communication?

Can somebody explain to me the differences between Document and RPC style webservices? Apart from JAX-RPC, the next version is JAX-WS, which supports both Document and RPC styles. I also understand document style webservices are meant for…
Amrin
  • 1,495
  • 6
  • 14
  • 14
99
votes
5 answers

What is the difference between JAX-RS and JAX-WS?

After reading a few articles about JAX-RS and JAX-WS, I had a few questions that I want to confirm? Can JAX-RS do Asynchronous Request like JAX-WS? Can JAX-RS access a web service that is not running on the Java platform, and vice versa? What does…
pmark019
  • 1,199
  • 5
  • 15
  • 24
92
votes
9 answers

Getting Raw XML From SOAPMessage in Java

I've set up a SOAP WebServiceProvider in JAX-WS, but I'm having trouble figuring out how to get the raw XML from a SOAPMessage (or any Node) object. Here's a sample of the code I've got right now, and where I'm trying to grab the…
Dan Lew
  • 85,990
  • 32
  • 182
  • 176
92
votes
8 answers

JAX-WS client : what's the correct path to access the local WSDL?

The problem is I need to build a web service client from a file I'm been provided. I've stored this file on the local file system and, while I keep the WSDL file in the correct file system folder, everything is fine. When I deploy it to a server or…
user260192
83
votes
4 answers

Java Webservice Client (Best way)

I have a third party WSDL, I need to write code in Java for a web service client to invoke the operations in the third party WSDL. Right now, I have generated the client stub using the WSDL2JAVA tool from Axis and used the XMLbeans for data binding.…
Java Guy
  • 3,391
  • 14
  • 49
  • 55
66
votes
10 answers

How to programmatically set the SSLContext of a JAX-WS client?

I'm working on a server in a distributed application that has browser clients and also participates in server-to-server communication with a 3rd party. My server has a CA-signed certificate to let my clients connect using TLS (SSL) communication…
maasg
  • 37,100
  • 11
  • 88
  • 115
62
votes
6 answers

java: Rpc/encoded wsdls are not supported in JAXWS 2.0

I'm using CXF 2.1 to generate java code from a wsdl, but I'm getting the following error: WSDLToJava Error: Rpc/encoded wsdls are not supported in JAXWS 2.0 org.apache.cxf.tools.common.ToolException: Rpc/encoded wsdls are not supported in JAXWS…
Óli
58
votes
2 answers

What's the difference between jaxws-ri and jaxws-rt?

See the JAX-WS Maven repository from java.net - http://download.java.net/maven/2/com/sun/xml/ws/ There are two similar folders - jaxws-rt and jaxws-ri. Currently, I'm using the jaxws-rt and it's working fine. Here are my questions: What's the…
mkyong
  • 2,179
  • 1
  • 19
  • 14
57
votes
5 answers

What's the difference between and in WSDL?

Both and seem to define an operation and its message. I don't quite understand, why are they both necessary?
clamp
  • 33,000
  • 75
  • 203
  • 299
55
votes
10 answers

Java Web Service client basic authentication

I have created a JAX-WS Web Service on top of Glassfish which requires basic HTTP authentication. Now I want to create a standalone java application client for that Web Service but I don't have a clue of how to pass the username and password. It…
German
  • 3,560
  • 7
  • 32
  • 34
1
2 3
99 100