How to manually deploy a web service on Tomcat 6?

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

Getting java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl despite the dependencies are defined

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>

How does a wsimport generated client work?

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

How to throw a custom fault on a JAX-WS web service?

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

Handle JAXB @XMLIDRef in .NET

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)