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

Issue with consuming JAX-RPC service from a JAX-WS CXF framework

Can you please suggest if I can use the WSDL with DII concept in JAX-RPC and write a method in CXF2.6(where JAX-RPC is not supported) framework to consume a JAX-RPC service? Do you see any class-loading issues or jar conflicts with this approach?…
2
votes
1 answer

Using polymorphoic calls on a Axis2/JAX-WS web service from a .NET client

I have an AXIS2/JAX-WS web service using a code first implementation (yes I know, that is bad). The web service is being consumed by a .NET based client. Before we had Axis1, and when custom objects were passed between the client and the server, the…
bogertron
  • 2,255
  • 1
  • 24
  • 36
2
votes
1 answer

How-to generate a Java class from a WSDL with a deprecated annotation?

In the project I'm working on we have several WSDL considered as interfaces. We are generating Java code from the WSDLs/XSDs. The problem is that I have to remove one of the interface, but prior to that I want to generate the class with the…
YMomb
  • 2,366
  • 1
  • 27
  • 36
2
votes
1 answer

Dependency injection in restful WS

I have simple restful WS @Path("basic") public class ServiceRS { private IServiceJAX service; @GET @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public String…
Ilya
  • 29,135
  • 19
  • 110
  • 158
2
votes
1 answer

WebLogic clientgen doesn't work from WebLogic

I'm using clientgen ant task (which is a part of WebLogic) to generate JAX-WS client from the WSDL. Generated code works very well when I'm using it from the command line and wlfullclient.jar in the classpath. But it doesn't work from EJB that is…
Stas
  • 751
  • 1
  • 11
  • 22
2
votes
0 answers

Web service returns an empty array for string array members

I have a Java web service with code below: @WebService public class MyService { @WebMethod public String[] method1() { String[] strArray = new String[2]; strArray[0] = "method1 array item 1"; strArray[1] = "method1…
bahtiyartan
  • 1,010
  • 10
  • 29
2
votes
2 answers

JSF 2 checkboxes and boolean getters

I'm generating a jaxws client based on webservice. Jaxb will generate booleans using the java.lang.Boolean instead of the primitive type. In addition to this, it will generate the is() naming convention for beans. However if I try to link the…
nablex
  • 4,635
  • 4
  • 36
  • 51
2
votes
1 answer

JAXB Binding for SOAP request parameter in JAXWS

My task is to write a webservice for an update operation where a list of objects are passed to the method. @WebMethod(operationName = "updateObjects", action = "urn:preferences") public boolean updateObjects(List objects){ } The class…
Vinay
  • 405
  • 2
  • 10
  • 17
2
votes
2 answers

Java Web Service Object (JAX-WS) lifetime

I am currently developing a Java web application that exposes a web service interface. The class definition of my web service is as follows: @WebService() public class ETL_WS { private String TOMCAT_TEMP_DIR; private final int BUFFER_SIZE =…
nick.katsip
  • 868
  • 3
  • 12
  • 32
2
votes
3 answers

JaxWS ClassCastException on JBoss

I'm using JBoss 5.1.0.GA (for JDK6), and jaxws 2.2.6. When I invoke the webservice, I get the following exception: java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.jboss.ws.core.jaxws.spi.ProviderImpl could not be …
Carlo
  • 1,686
  • 3
  • 29
  • 43
2
votes
1 answer

How to reuse WebFault classes between services in CXF generated WSDL

I have multiple services defined as Java classes (@WebService) which share the same WebFault classes (@WebFault). I use the java2ws for generating the WSDL and XSD files for the services. While I can reuse the model objects between the services by…
Avner Levy
  • 6,601
  • 9
  • 53
  • 92
2
votes
0 answers

How to implement WS-SecurityPolicy on the endpoint (server) with JAX-WS Metro?

I have the following policy in my WSDL file:
nisenish
  • 99
  • 1
  • 1
  • 7
2
votes
3 answers

how to publish and discover a java web service

I am new to developing web services using java. I have an academic project where I need to do dynamic service composition. For that I can't directly create a service-client for a particular service because if I do so then that client will call that…
Rajeev Singh
  • 504
  • 2
  • 7
  • 21
2
votes
2 answers

Unable to deploy JAX-WS as an OSGi bundle in Glassfish

When I deploy a JAX-WS as a standard web application service through Glassfish everything works fine. The same JAR file is also an OSGi bundle (so a WAB). If I try to install as an OSGi bundle, I get an error about the return property not being…
Dave H
  • 547
  • 1
  • 5
  • 16
2
votes
1 answer

XmlInverseReference, Hibernate, JAXWS and Moxy

I can not seem to get moxy working with JAX-WS web services and hibernate. Despite what I do, @XMLInverseReference does not work. I'd expect it to fill in the application variable on a Site. What am I doing or understanding wrong? I receive:…
danieljimenez
  • 1,390
  • 4
  • 17
  • 26
1 2 3
99
100