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

Sporadic exception from jax-ws webservice

We are facing a problem with a jax-ws webservice, where occasionally we get the following exception: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://www.company.com/system}getFooResponse but found:…
Morten Jacobsen
  • 986
  • 1
  • 11
  • 31
2
votes
1 answer

javax.xml.ws.WebServiceException: class do not have a property of the name return when returning HashMap in web service

I have simple web service in glassfish 3.2.2 which only creates a file based on random UUID and saves it in the docroot folder then return result inside HashMap: @WebService public class Storage { @WebMethod public HashMap
Majid Azimi
  • 5,575
  • 13
  • 64
  • 113
2
votes
1 answer

jax-ws in Weblogic 10.3.5: IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions

We have a test web application deployed In Weblogic 10.3.5. The web application contains a servlet which uses jax-ws to call a web service deployed in the same weblogic. Accessing the servlet throws the following exception: Two classes have the same…
jeffery.yuan
  • 1,177
  • 1
  • 17
  • 27
2
votes
0 answers

Creating a SOAP webservice without a namespace for the parameter

First here is what I want to do: I want to create a webservice that calls a java function void doSomething(ParamType value); when it receives the SOAP message
Timbo
  • 133
  • 4
2
votes
2 answers

When to use Java SOAP API

edited the question to improve clarity. I am trying to learn SOAP based Java Web services. I created a simple web service using the @WebService annotation. I published it in my local machine and I consumed the service in my local machine. I found…
codingsplash
  • 4,785
  • 12
  • 51
  • 90
2
votes
1 answer

JAX-WS LogicalHandler & SOAPHandler

I am writing a Java SOAP Client where multiple responses comes back asynchronously into a Client WebService. Since the response are asynchronous the client must pass in a MessageId into the SOAPHeader. The multiple responses will then pass back the…
Peter Delaney
  • 5,278
  • 9
  • 33
  • 40
2
votes
2 answers

Could not find wsdlLocation in additional metadatafiles

I have jax-ws web service (jboss implementation) configured with annotation. @WebService([...], wsdlLocation = "/WEB-INF/wsdl/service.wsdl") The wsld file is included into war file. The war file is included into ear file, that is deployed on JBoss…
pzieba
  • 171
  • 1
  • 11
2
votes
1 answer

Removing annotations and adding xml in developing JAX-WS webservice

I am a new bie to the world of webservices , I have one query as I was developing the JAX-WS the below web service both producer and client but I was using the annotaions could you please advise me how to develop the same program without use of…
Crazy4Java
  • 269
  • 2
  • 6
  • 13
2
votes
2 answers

no java artifacts are generated via jax ws

I am using JAX-WS 2.1 to generate artifacts from xsd file for Web services. Here the XSD definition of the problemtic artifact: Example
2
votes
4 answers

javax.xml.ws.WebServiceException: Failed to access the WSDL. Response: '401: Unauthorized'

I am trying to access a web service for a project i'm working on. I'm using JAX-WS and the app is deployed on weblogic. When i'm trying to access the WS, i get the following exception: javax.portlet.PortletException:…
Adrian Zaharia
  • 115
  • 1
  • 1
  • 7
2
votes
1 answer

Authentication in multiple methods with JAX-RS/Jersey - How to keep it clean?

I'm working on a web service written in Java using JAX-RS/Jersey and Spring. The WS authenticates a user when he or she logs in and returns an access key which has a limited lifespan. Most of the available methods require a valid "access key +…
John B
  • 195
  • 1
  • 9
2
votes
1 answer

JAXB, my own domain model and suggestions

I have a considerably big POJO domain model built incrementally since 2005. We also have the XSD incrementally developed over the same time frame. Currently, I use xmlbeans in the following way to generate xml to be sent over HTTP and as part of…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
2
votes
1 answer

Securing jax-ws service on glassfish 3. Good approaches

I have a jax-ws soap web service (implemented NOT like Session bean) generated in NetBeans from wsdl. Deployed on Glassfish 3.1.2. I want to secure access to it using mutual certificate authentication usig SSL and https. I have read a lot of…
user1379574
  • 689
  • 4
  • 11
  • 23
2
votes
3 answers

Deploying JAX-WS webapp in Tomcat 7

I am developing simple JAX-WS webservice. I am creating WAR file using ANT build script. The file when deployed to Tomcat 7 server, throws following exception and there is deployment error as follows. JAXB 2.1 API is being loaded from the bootstrap…
RickDavis
  • 2,276
  • 6
  • 25
  • 31
2
votes
0 answers

Let JBoss 5.1 send Accept-Encoding: gzip with JAX-WS

I have a JBoss 5.1.1 server which needs to send SOAP messages to an outside party. This party has provided some WSDL files that I have used to generate the WebService code from. This is all working just fine. However, now I need to enable GZIP…
Rob Spoor
  • 6,186
  • 1
  • 19
  • 20