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
15
votes
3 answers

How to add soap header in java

i have a NO-.net webservice from oracle To access i need to add the soap header. How can i add the soap header in java? Authenticator.setDefault(new ProxyAuthenticator("username", "password")); System.getProperties().put("proxySet",…
Luis
  • 2,665
  • 8
  • 44
  • 70
15
votes
4 answers

How to add SOAP Headers to Spring Jax-WS Client?

How can I add SOAP Headers to Spring Jax-WS Client? Specifically, I have a Jaxb object I would like to add to the header but xml examples would be appreciated. I am using Spring's JaxWsPortProxyFactoryBean described here. Also, I am generating my…
Brandon
  • 6,832
  • 11
  • 38
  • 50
15
votes
1 answer

accessing wsdl on Tomcat

I have a web service and I was deploying it on GlassFish. I accessed its wsdl through http://localhost:10697/APIService/APIServiceService?wsdl. Now I ported the WAR file to a Tomcat 6.0.24 and it is deployed. However I am trying to access its wsdl…
Krt_Malta
  • 9,265
  • 18
  • 53
  • 91
15
votes
1 answer

Server-Side XML Validation with CXF Webservice

I'm working on an Apache CXF webservice (using JAX-WS, over SOAP). The service itself is pretty simple: receive a request, insert the request into a database, and return whether the insert was successful. I'd like to rely on XML validation to…
Matt Luongo
  • 14,371
  • 6
  • 53
  • 64
14
votes
1 answer

Does Java 7 include a JAX-WS implementation or just the API?

I am told that Java 7 is supposed to include JAX-WS such that I don't need libraries like those in Apache CXF. However, the official docs say: This release contains Java API for XML Processing (JAXP) 1.4.5, supports Java Architecture for XML…
kuloch
  • 319
  • 1
  • 3
  • 10
14
votes
1 answer

com.sun.xml.internal.ws.developer.JAXWSProperties not found at compile

We used the class JAXWSProperties from the com.sun.* package in the code in order to set timeout properties like this: import com.sun.xml.internal.ws.developer.JAXWSProperties; ... Map ctxt = ((BindingProvider)…
Alexander Rühl
  • 6,769
  • 9
  • 53
  • 96
14
votes
2 answers

Webservice - client service instantiation

Do you know how costly is to create a webservice client service instance ? JavaWebService service = new JavaWebService(); SomePort port = service.getJavaWebServicePort(); Creating the service once and after that reusing same port in a multi…
Cris
  • 4,947
  • 6
  • 44
  • 73
14
votes
4 answers

How to remove JAX-WS Web Services node in Eclipse Project Explorer?

For development I use Eclipse Helios. In one of my projects in the project explorer a new node showed up. It is called JAX-WS Web Services. I do NOT use webservices in my project. The node has two sub nodes, Service Endpoint Interface and Web…
boes
  • 2,835
  • 2
  • 23
  • 28
14
votes
1 answer

Is it safe to reuse javax.xml.ws.Service objects?

I have JAX-WS style web service client that was auto-generated with the NetBeans IDE. The generated proxy factory (extends javax.xml.ws.Service) delegates proxy creation to the various Service.getPort methods. The application that I am maintaining…
Noel Ang
  • 4,989
  • 1
  • 25
  • 19
14
votes
3 answers

Use Maven to trigger a wsgen & wsimport in a row, using wsdlLocation

I have hard times using maven to generate my web service client. So please refer to Creating a web-service client directly from the source for the first part of my question. To keep it simple and short, I want to go from here (a file in…
benji
  • 2,331
  • 6
  • 33
  • 62
14
votes
5 answers

JAX WS RS using Jersey - returning Collection, Map etc

I'm using Jersey 2.3 My WS endpoint class : @Path("/employees") public class EmployeeWSEndpoint { @Context Request request; @GET @Path("/allEmployees") @Produces(MediaType.APPLICATION_JSON) public List
Kaliyug Antagonist
  • 3,512
  • 9
  • 51
  • 103
14
votes
5 answers

JAXBException: not a valid property on class

We have an application which needs to consume an external web service. To do this we have generated the set of Java artifacts from the WSDL via Maven using the wsdl2java goal provided by the cxf-codegen-plugin plugin. In the application we want to…
chrishern
  • 302
  • 2
  • 6
  • 15
14
votes
2 answers

JAVA JAX-WS NullPointerException at javax.xml.ws.Service.getPort(Service.java:188)

I have simple "HelloWorld" web service deployed on jboss under ubuntu. I have created simple client, but I can't get it to work. I'm getting NullPointerException each time I run the client. Note that I'm running on Oracle Java 7 under Ubuntu. Here…
Bladositto
  • 293
  • 3
  • 14
14
votes
4 answers

JAX-WS Web service on Tomcat without sun-jaxws.xml

I am trying to minimize required configuration while deploying JAX-WS-based Web service on Tomcat. With the introduction of Servlet 3.0 (supported by Tomcat 7+), web.xml can be thrown out, but there is still sun-jaxws.xml. This blog post is…
Miljen Mikic
  • 14,765
  • 8
  • 58
  • 66
14
votes
6 answers

Getting started with JAX-WS

Can someone suggest some good tutorials for getting started with JAX-WS? Using various tools like wsgen etc...
Java Guy
  • 3,391
  • 14
  • 49
  • 55