Glassfish JAX-WS side by side SSL / insecure EJB webservice
Why you just not proxy app server with Apache HTTP server or similar? I usually do this way and leave SSL handshaking/open text connection to HTTP in front of it.
Why you just not proxy app server with Apache HTTP server or similar? I usually do this way and leave SSL handshaking/open text connection to HTTP in front of it.
How to MANUALLY build and deploy a jax-ws web service to tomcat I was trying to figure out how to MANUALLY build and deploy a web service for learning pourposes. I began with this excellent article http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/ (new URL: http://www.oracle.com/technetwork/articles/javase/jax-ws-2-141894.html) The idea was to do the whole thing using only a notepad and the command … Read more
The first part of the answer by @reta works for me. These are the relevant dependencies from my pom (Java 10): <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.3.1</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>rt</artifactId> <version>2.3.1</version> </dependency>
Before I answer the questions, some clarification: JAX-WS is a specification for implementing web services in Java. It describes how WSDL artifacts can be mapped to Java classes and how this mapping can be applied using annotations. You can download the specification here. The tool wsimport is part of the reference implementation of this specification … Read more
I was stuck on this problem but was able to use the “work around” listed in this forum Q&A by setting a system property like so: System.setProperty(“javax.xml.bind.JAXBContext”, “com.sun.xml.internal.bind.v2.ContextFactory”);
Use com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true and com.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true instead (note the “internal” in the package name), this did the trick for me. Cheers, Torsten
According to the CXF FAQ: Are JAX-WS client proxies thread safe? Official JAX-WS answer: No. According to the JAX-WS spec, the client proxies are NOT thread safe. To write portable code, you should treat them as non-thread safe and synchronize access or use a pool of instances or similar. CXF answer: CXF proxies are thread … Read more
Use the @WebFault annotation. You can see a good example in Using SOAP Faults and Exceptions in Java JAX-WS Web Services – Eben Hewitt on Java. You will see the example: @WebFault(name=”CheckVerifyFault”, targetNamespace=”http://www.example.com”) public class CheckVerifyFault extends Exception { /** * Java type that goes as soapenv:Fault detail element. */ private CheckFaultBean faultInfo; public CheckVerifyFault(String … Read more
There are a few thing that might go wrong, so I will tell you what helped in my case (analogous to yours, I was using JDK 1.6.0_13). The problem lies in JARs mismatch. First of all make sure JBoss is using JDK 1.6 check your JAVA_HOME env. variable. Secondly make sure your classes are compiled … Read more
Out of the box Microsoft’s tools won’t do the job for you. You’ll have to ask Microsoft to change the wsdl generation tools. E.g.: wsdl.exe: http://msdn.microsoft.com/library/7h3ystb6(VS.80).aspx svcutil.exe: http://msdn.microsoft.com/en-us/library/aa347733.aspx In a recent project I had to work around the short comings of these tools and modified the generated code using a Basic Script fixing what was … Read more