jax-ws

Code First .NET Web Service uses soap encoding - how can this be prevented?

How would one configure asp.net / asmx to not use soap encoding at all when generating wsdls from a .NET interface? In short, a .NET SOAP Web Service is producing a wsdl that includes soap encoding. For example: <s:schema targetNamespace="http://tempuri.org/AbstractTypes"&gt; <s:import namespace="http://schemas.xmlsoap.org/soap/enco...

jax-ws: setting Content-Type of request

Hi. I've been trying to consume a .net WCF rest service using JAX-WS lately. Due to security of the service, I've have to set a custom HTTP header Authorization with some signature in it. This I've solved by doing something like this: BindingProvider bp = (BindingProvider) port; bp.getRequestContext().put(MessageContext.HTTP_REQUEST_HE...

How to reuse the Stub when webservice is relocated to other place?

hi all, My requirement is to relocate the webservice(Jax ws) without building the client side code. i want to know is thers any way i can use client code without rebuilding the client.? thanks you. ...

[JAX-B] How can I ignore a superclass?

I'm trying to write a web service for the java.util.logging api. So I wrote a class MyLogRecord that inherits from LogRecord. I annotated this class with JAX-B annotations, including @XmlAccessorType(XmlAccessType.NONE) so it would ignore non-annotated fields and properties. When I start up tomcat, I get errors that java.util.logging.Lev...

JaxWsPortProxyFactoryBean query timeout

Hello I'm using a JaxWsPortProxyFactoryBean (from Spring framework) to access a web-service. I would like to change the timeout of the http queries I'm sending. Is there a way to do this? Thank you by advance for any help ...

java.lang.NoClassDefFoundError

I am getting this exception while accessing the jax-ws web service from my client. i have no idea, what is happened? anyone who have the solution? thanks you. ...

How to avoid rebuilding the clint Stub when (JAX-WS)webservice is relocated to other place?

sorry ,i am asking the same question twice, I deployed the JAX-WS web service, and consuming it from my client code. My requirement is , how should i avoid building my client code (Stubs) while relocating my JAX-WS web service from one place to another? Thanks you. ...

[JAX-WS] How can I share classes between client and server?

I've created a jax-ws service endpoint and now I want to write a client. I want to have a shared jar between the client and server for common (JAXB annotated) entity classes and interfaces for the services. Is it possible to force jax-ws to generate (or allow me to write) a client using my existing entites/interfaces? For those that are...

JAXWS Interceptors

What are JAX WS Interceptors? Where do I find info regarding the same! ...

invoking a Web service Dynamically without creating any Artifacts from Jax-ws web service

Hi i have this issue, I am trying to invoke a web service dynamically from my Jax-WS web service. I tried with glass fish,it is working fine. but now i shited to apache,and it is giving me the exception javax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: org.apache.axis.client.ServiceFactory Note: i added the **jaxrpc.ia...

JAX-WS: stateful WS fails in a standalone process

I have a stateful web service deployed onto Tomcat. It consists of factory service and main API service, and works just fine. Factory service returns a W3CEndpointReference to main API instance, and client uses the session. Now, I'm trying to run the very same service as a standalone application. In this case, the W3CEndpointReference r...

can jax-ws web methods return objects that have static methods?

public class Pojo { private String value; public static void printValue() { System.out.println("value=" + value); } } I would want to return this from a web service as follows: @WebService public class MyService { @WebMethod public Pojo getPojo() { return new Pojo(); } } Can't seem to find the definiti...

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

In web.xml I have the following: <servlet> <description>JAX-WS endpoint - EARM</description> <display-name>jaxws-servlet</display-name> <servlet-name>jaxws-servlet</servlet-name> <servlet-class>com.sun.xml.ws.transport.http.servlet.WSSpringServlet</servlet-class> </servlet> <servlet-mapping> ...

Axis 1.3 + JDK 1.5 + tomcat + JAX-WS guide for dummies

I have to expose web services using JDK 1.5, Tomcat and JAX-WS. if any tutorial / link for this. Please advise. ...

How can you handle cross-cutting conerns in JAX-WS without Spring or AOP? Handlers?

I do have something more specific in mind, however: Each web service method needs to be wrapped with some boiler place code (cross cutting concern, yes, spring AOP would work great here but it either doesn't work or unapproved by gov't architecture group). A simple service call is as follows: @WebMethod... public Foo performFoo(...) { ...

jax-ws client and axis server - passing a null date value

when passing a null value for a XMLGregorianCalendar parameter jax-ws does so by ommiting the corresponding xml element. this causes the following excpetion from the server: SOAPFaultException: date string can not be less than 19 charactors when handcoding the request and representing the null value by using an empty element: <web:gue...

JAX-WS Deployement error + LocatableWebServiceException: class not found in runtime descriptor

I have deployed JAX-WS web services in Tomcat and when i restarting the tomcat server. I am getting this error on console. I have putted entry in web.xml and sun-jaxws.xml as per guidelines given in this link - http://www.jroller.com/eldaaran/entry/using%5Fjax%5Fws%5F2%5F0 Please advise. SEVERE: WSSERVLET11: failed to parse runtime d...

how to Use JAXWS/JAXB rename the parameter

I use CXF(2.2.3) to compile the Amazon Web Service WSDL (http://s3.amazonaws.com/ec2-downloads/2009-07-15.ec2.wsdl) But got error as below. Parameter: snapshotSet already exists for method describeSnapshots but of type com.amazonaws.ec2.doc._2009_07_15.DescribeSnapshotsSetType instead of com.amazonaws.ec2.doc._2009_07_15.D...

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 (which is stupid, IMO, but I don't know what the design reasons were should I should probably w...

Structuring the source code for multiple versions of web services

Is there a convention for structuring the source code when there are multiple versions of the same web service in the same source code trunk or branch? Here's our situation. We version our web services by including the version number in the wsdl URL like this: url/project/1.0/WebServiceA?wsdl I'm going to deploy version 1.1 of WebSe...