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
1 answer

log4j not working correctly in JAX-WS with Spring

I setup a JAX-WS with Spring , everthing works except the log4j : I am following The offical sping document :…
Jammy Lee
  • 1,496
  • 1
  • 14
  • 32
2
votes
1 answer

Header not Getting Injected into Request

I'm using a SOAPHandler and here's my getHeaders method at the client side: @Override public Set getHeaders() { String uri = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; QName security_hdr = new…
Jops
  • 22,535
  • 13
  • 46
  • 63
2
votes
1 answer

Cannot Deploy JAX-WS webservice on Glassfish

I have a problem running JAX_WS Webservices with Glassfish application server. Previously, i used to use Apache tomcat which works fine with it. But now, having Glassfish, this problem is preventing the application from being deployed... please…
hd84335
  • 8,815
  • 5
  • 34
  • 45
2
votes
1 answer

Auto-generate web-service JAX-WS from WSDL

I have to create a web service equal to an existing one. The WSDL must be the same because they do not want to change the client. How can I do this? Also, how I can do with JAX-WS with Maven?
user2225076
  • 23
  • 1
  • 1
  • 4
2
votes
1 answer

Webservice communication between Java EE applications

I have two Java EE applications on two separate application servers. One of them already contains a working EJB. I want to be able to communicate with this EJB from the other application by using a JAX-WS webservice (the communication has to work…
Daniel Nuss
  • 341
  • 3
  • 15
2
votes
1 answer

JAXWS and Http Post Timeout in GlassFish v3.0.1

I am trying to set connect and request timeout for a JAX WS and Http Post calls. My code works, but only a maximum of 20 seconds. That is I can change the timeout value to 5 seconds, 2 seconds, it works, but setting the timeout value to 30 seconds…
elefant
  • 73
  • 7
2
votes
1 answer

How to know if webservices are JAX WS or JAX RPC

I have an EAR file deployed on WAS 6.1. The EAR file contains several EJB methods exposed as Web services. Now is there a way to figure out if these web services are written according to JAX WS standard or JAX RPC standard?
Victor
  • 16,609
  • 71
  • 229
  • 409
2
votes
4 answers

JAX-WS SoapHandler with large messages: OutOfMemoryError

Using JAX-WS 2, I see an issue that others have spoken about as well. The issue is that if a SOAP message is received inside a handler, and that SOAP message is large - whether due to inline SOAP body elements that happen to have lots of content, or…
Ahmed
  • 590
  • 8
  • 19
2
votes
2 answers

Web service's PostConstruct called before servlet context listener's contextInitialized

I need to migrate a web service application from Tomcat 6 (using JDK 1.5) to Tomcat 7 (using JDK 1.6) (actually testing on 7.0.27). The JAX-WS framework is Metro 2.1. I'm using two ServletContextListeners: "WebAppListener" : to initialize the…
estiedi
  • 384
  • 2
  • 12
2
votes
0 answers

JAX-WS proxies are not thread safe by default. How about the Metro implementation?

According to my research JAX-WS client proxies are not thread safe. As such, the thread safeness of the proxy is left to its implementation. According to Apache CXF, their proxies are thread-safe. How about the proxies of Metro? Are they…
Arci
  • 6,647
  • 20
  • 70
  • 98
2
votes
0 answers

Java Webservices running outside of container only allow one user to connect when authentication is enabled

I'm putting together a framework for some games via webservices, which for various reasons need to run without an application container. At this point, all I'm after is that each player will authenticate, and hit the login service. The login…
Evan Knowles
  • 7,426
  • 2
  • 37
  • 71
2
votes
2 answers

Where to find wsgen tool?

Where to find the wsgen tool?
Java Guy
  • 3,391
  • 14
  • 49
  • 55
2
votes
0 answers

Passing parameters through SOAPHandler in WebServices

I have a JBoss AS in which a web service is deployed. Calls to this web service produce calls to another web service in another JBoss AS. I'm interested in passing some paramenters in the header of the SOAP messages, so when a SOAP message arrive to…
dawww
  • 371
  • 1
  • 4
  • 16
2
votes
0 answers

Web Service (JAX-WS,SOAP) WSDL Structure Design

This is a bit of an open ended question and quite a bit of text but hang on with me. First a little bit of background. For a last year I have been writing web services. I started with zero knowledge in this field. My job was to prepare WSDL (I could…
Xargos
  • 633
  • 8
  • 19
2
votes
1 answer

jax-ws Undefined port type with client and server in separate projects

I'm working on a project that is running a webservice in localhost. I used jax-ws for this. When I had a client in the same project as the server, it worked fine. But now I'm trying to create a new client-project but i'm getting this error when i'm…
dumazy
  • 13,857
  • 12
  • 66
  • 113