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
2
votes
0 answers

JAXWS vs. Apache CXF client considering thread safety?

I used to use the JAX-WS to generate client stubs. However, I learned recently that JAX-WS is not thread-safe and that Apache CXF is thread safe. I've read about it here. Creating a new instance of proxy each time it is needed is not an options…
Arci
  • 6,647
  • 20
  • 70
  • 98
2
votes
0 answers

Exposing Spring-WS

ws. Iam using tomcat7 to deploy my app wich is made with spring3. I already get my ws to work but now i need it to run on the same port of the tomcat, every time i setup the base address for the simpleJaxWsServiceExporter with the same port of the…
2
votes
0 answers

com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

I generated a jax-ws web service client using wsimport from a local wsdl file. Whenever i try to invoke the service i get an error : com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog Here is the error stack; Exception in thread "main"…
Martin
  • 471
  • 3
  • 8
  • 13
2
votes
1 answer

how to config jax-ws Handler in Spring?

I according jax-ws API integration jax-ws with Spring ,but I get an exception at my webservice project,here is API site :http://jax-ws-commons.java.net/spring/ ,I have same config xml in my project,but i get an exception is below: Caused by:…
2
votes
2 answers

Can you return an array from a JAX-WS @WebMethod?

I'm pretty sure you can, but in addition to answering the question in the title, could you also explain the pros, cons, caveats, if any, to doing so? I know that you can't return a List, Set, Collection, Map, or any interface, from a WebMethod…
les2
  • 14,093
  • 16
  • 59
  • 76
2
votes
2 answers

Changing SOAPRequest Prefix in JAX-WS

How to change SOAP Request prefix in JAX-WS. I updated setprofix method in handlemessage SOAPMessage msgs = ctx.getMessage(); SOAPMessage sm = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL).createMessage(); …
2
votes
1 answer

Using global Service and *PortType class in a web application?

I generated a web service client using JAXWS. I notice that when using a JAXWS client, instantiating the Service and *PortType classes takes a while. As such, instantiating the Service and *PortType classes each time a request needs to be made is…
Arci
  • 6,647
  • 20
  • 70
  • 98
2
votes
1 answer

What does wsimport do with jax-ws-catalog.xml?

All of the documentation I've found online about wsimport seems to be a little vague about one aspect of using a catalog file (jax-ws-catalog.xml). My question is: When I generate a web service client using wsimport and the -catalog option, does…
dbisdorf
  • 177
  • 2
  • 3
  • 15
2
votes
2 answers

Executing multiple threads in java web service

I have a web service which in one of its web methods creates two threads and calls two more web service for inserting data. Now, my original web service is expected to receive calls in range of 1,000 to 10,000 in parallel. So you may understand that…
AD.
  • 389
  • 1
  • 5
  • 20
2
votes
2 answers

How do you configure jax-ws to work with Spring using jax-ws commons?

In web.xml I have the following: JAX-WS endpoint - EARM jaxws-servlet jaxws-servlet
les2
  • 14,093
  • 16
  • 59
  • 76
2
votes
1 answer

JAX-WS web service and spring security

I'm trying to develop web servces for application that is secured with Spring Security. Everything works fine except one thing: my web service should be unsecured and wsdl should be served without any authentication/autorisation. So I've add…
PastorPL
  • 968
  • 3
  • 17
  • 36
2
votes
0 answers

Adding dynamically new elements to a JAXWS service JAXB context

I'm using CXF to expose a huge model which contains more than 3000 classes. In most scenarios the customer will use only 100 classes out of the 3000 but I don't know in advance which ones will be used. Loading all 3000 on start-up requires lots of…
Avner Levy
  • 6,601
  • 9
  • 53
  • 92
2
votes
1 answer

Use Apache CXF wsdl2java to generate classes with full constructors

Is there a way to configure Apache CXF wsdl2java to generate a constructor with all of a classes fields in it? Right now only the empty default constructor is generated as well as void returning setters. This can result in very unwieldy code. I'm…
Eric B
  • 4,367
  • 5
  • 33
  • 43
2
votes
0 answers

JAX-WS WebService Client - Streaming large attachements - different behavior, depending on JRE version

I created a WebService client from a provided WSDL-File, using the already in the JRE bundled JAX-WS API. I generated the proxy classes with the wsimport tool of JDK6 Update 37. The client should be able to download large files/data, using MTOM and…
Christopher
  • 694
  • 7
  • 15
2
votes
2 answers

Looking at the SOAP message before it is sent to the consuming service

I am using CXF JAX-WS in mule flow to access a service. I am able to access it successfully. Is there any way I can see the message that is being sent to the service just before it is sent?
user1985027