How do you enable HTTP connection reuse when using JAX-WS? When we were using AXIS2, we set the org.apache.axis2.transport.http.HTTPConstants.REUSE_HTTP_CLIENT property in the client stub's options. What is the equivalent for JAX-WS?
(I have verified that we are creating a new TCP connection for each web service call. It appears we t...
I'm deploying a StatelessSessionBean annotated with @WebService to JBoss. I'm taking the WSDL generated by JBoss to generate client stubs. My problem is in calling a method which returns a list of objects. If the list is empty the call succeeds however if the list is not empty then I get the following exception:
com.sun.xml.ws.encoding....
I have a webservice that I'm using JAX-WS annotations to generate the WSDL & associated client code (writing both ends, just using JAX-WS for the transport).
I've got a method that can have different return values depending on the state of the request,
@WebMethod
public int uploadResults(
@WebParam(name="authentication") Ser...
Hi!
I have a web service:
@WebMethod
public TimeEntry getTimeEntry() {
return dummyTimeEntry;
}
where
public static class TimeEntry implements Serializable {
private Date date;
private String costCenter;
private String description;
private BigDecimal hours;
/**
* @see java.lang.Object#toString()
*/
@Override
p...
I am trying to create a quick sample Java client for a SOAP web service we have built with ASP.net.
The web service message schema makes use of many abstract classes with implementations of those, e.g. DeviceIdentifier (abstract), with SerialNumber and ProductNumber (these are hypothetical examples to illustrate the question)
I used w...
Hello, we are currently having problems with a JAX-WS implementation, particulary in getting a value returned by the service, which in our case is always null, although we give it a value.
Some code before more explanations of our problem :
Here is the signature of our operation :
@WebMethod(action = "urn:genererEdition")
public void ...
Is it possible for wsimport to ignore "import" tags in wsdl that are http-linked to some XSD files and insted use XSD files provided next to the wsdl file?. I know svcutil is able to do so.
...
I have a client/server application that communicates via SOAP. The server-side application is a JEE app that exposes web services using JAX-WS. I have a servlet filter setup to perform certain checks before a service is invoked. This is all working pretty well, except for exception handling. If I throw an exception from the filter, i...
I have written a simple java webservice, following are the steps:
I compile the java class and generate a war file
Deploy the war file to my app server (tomcat)
Access the WSDL via the URL e.g. localhost:8080/service/helloservice?wsdl
use the URL with wsimport.bat to generate client classes for example: wsimport http://localhost:8080/s...
Hello,
Is it possible to optionally serialize the properties of a class via JAX-B using using some dynamic flag?
e.g. Suppose I Have
@XmlRootElement
public class TodoItem {
private int id;
private String title;
private String note;
// getters, setters
}
and the following web service operatios:
public TodoItem getTodoItemFull...
I have created a jaxws client applet that needs a binding file in order to avoid duplicate class names in the wsdl. When wsimport is run using the binding file, the generated client classes are placed in different packages. The client then works great when debugging through eclipse.
However, when the applet is run from a web page serv...
I have to generate a WS Client and I can't decide wich plugin to use. Until now my options are: jaxb2-maven-plugin, axistools-maven-plugin and jaxws-maven-plugin.
Thanks in advance
...
I have a third party WSDL, I need to write code in JAVA for a web service client to invoke the operations in the third party WSDL. Right now, I have generated the client stub using the WSDL2JAVA tool from Axis and used the XMLbeans for data binding.
What is the best approach to do this JAVA?
I read about SAAJ, looks like that will be ...
Hi
I am using netbeans 6.9.1 with Glassfish 2.1 locally installed. I have Maven Web project which has one web service with it. When I compile and run the application everything goes well. I can access the web service page but when I try open the web service wsdl url I get HTTP Status 404, resource not available...
I tried to generate ...
I'm new in web services. I have faced some problem.
At the server side i'm using spring-ws. At the client side i'm using jax-ws.
With wsimport tool i have generated java classes according to my wsdl.
Everything works fine, but for some reason jax-ws does not parse arrays and list correctly, all lists are empty
I'm absolutely sure, that...
Application configuration:
Web application using java first method of creating JAX-WS 2.0 Web Services with annotations.
WebLogic 10.3
My Requirements
The requirements I have are to deploy a single web service implementation class, but change logic based on the URL from which the service was accessed.
Question:
I'm assuming a goo...
I want to create a SOAP service with multiple port types exposed, where each port type has a separate interface. I'm trying to do this using JAX-WS 2.0.
Example:
interface A:
ObjectA get(String name);
interface B:
ObjectB get(String name);
Service:
port A
get
port B
get
The problem I'm having is ...
Hello,
I have two applications, one that provides a Web-service (let's call it ws-provider), the other one that is the client of this Web-Service (call it ws-client).
This communication is protected through a 2-ways SSL. Both servers have been correctly configured regarding this confidentiality restrictions (certificates installation, S...
So I have a webservice that I would like to generate a client for, I would like to do this for JBoss 5.1. Sounds simple but the server (and wsdl) is on secure http with a ca-cert that is not by trusted standard ca-certs. I have the public ca-cert and have created a keystore (jks) that I would like to use during generation of the client b...
hey, I am having somewhat related issue only. Recently the external SOAP interface which were generating client for changed to https one. and I had an old code base at hand which was generating the java files through cxf and unsecured, http:// based wsdl. I chnaged the uri and on maven side everything works fine even the test pass. but w...