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
3 answers

Android app crashes when connecting to webservice

I got a problem connecting to my webservice from an Android client. In my MainActivity class the program crashes at the line: SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); The problem is definetely not with the method name, it's…
user208030
  • 145
  • 2
  • 9
2
votes
1 answer

JAX WS compatibility JRE 1.4

I have an application running over JRE 1.4.(Cannot upgrade, due to multiple reasons) I have another application which I need to invoke via a webservice. I have created the webservice client easily with JAX WS(wsimport, JDK 1.6) and am enable to…
Achow
  • 8,600
  • 6
  • 39
  • 49
2
votes
1 answer

cxf-jaxws-wsdl2java-BottomUp approach

I have a wsdl file with me now. Using cxf 's 'wsdl2java' command,i convert wsdl to java classes. How I can have my own implementation classes for the interfaces generated after wsdl to java conversion.?BAsically I need to do the following: 1.convert…
sskumar86
  • 161
  • 1
  • 2
  • 13
2
votes
1 answer

Why does wsimport have trouble with server object having @XmlRootElement annotation?

I was completing work on a web service using JAX-WS on the server side. In many of the domain objects I used @XmlRootElement to help facilitate the unmarshaling of XML files into the service using JAXB. All went well and the output was what I…
majorbanzai
  • 551
  • 5
  • 11
2
votes
1 answer

I can't return array String[] with JAX-WS

I have problem with return simple String[] in JAX-WS . I have an @WebMethod: public String[] getUserInfo() { MessageContext mc = wsContext.getMessageContext(); HttpSession session = ((javax.servlet.http.HttpServletRequest)…
Ma Kro
  • 1,232
  • 4
  • 20
  • 34
2
votes
1 answer

Unnecessary attribute in request XML when using JAX-WS 2.1

I'm using JAX-WS 2.1 (uses JAXB 2.1) under WAS7.0 app server. I've written a client code and below is the snippet from my request xml.
MyFist
  • 413
  • 7
  • 19
2
votes
1 answer

How do I get the real Webservice response, instead of 403 error?

I have been having some trouble getting the real message from a webservice. The access used to work fine, but when I tried to test it again after sometime, AXIS 2 returned me a 403 HTTP Error. org.apache.axis2.AxisFault: Transport error: 403 Error:…
Rodrigo Sasaki
  • 7,048
  • 4
  • 34
  • 49
2
votes
3 answers

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

Sorry I am asking the same question twice. I deployed the JAX-WS web service, and consume 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…
vipin k.
  • 2,633
  • 5
  • 22
  • 27
2
votes
1 answer

JaxWsPortProxyFactoryBean query timeout

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
Laurent K
  • 3,503
  • 3
  • 30
  • 36
2
votes
1 answer

How to prevent CXF secured webservices access from browser

I am developing a basic WebService example using CXF and Spring. Here are my classes: public interface AuthService { @WebMethod Person getPerson(@WebParam(name="user_id") Long userId); } The WS implementation is as follow: public class…
Laabidi Raissi
  • 3,263
  • 1
  • 22
  • 28
2
votes
2 answers

SOAP message on Java SE

Using JAX-WS on Java SE 7. The guides on Soap Handlers seem to assume a Java EE server. Is this essential for SOAP handlers or can they also work in Java SE?
Joel Shemtov
  • 3,008
  • 2
  • 22
  • 22
2
votes
0 answers

Error when exporting from JAXWS to WAR in Eclipse

I am getting the following error when trying to export a JAXWS as a WAR in Eclipse: org.eclipse.core.commands.ExecutionException: Error exportingC:/Users/rmescalera/Desktop/WS-upshift.war at…
eskalera
  • 1,072
  • 2
  • 21
  • 36
2
votes
0 answers

Different behaviours for two identical JAXWS deployed in Tomcat

I have implemented two JAXWS which are exactly the same. Concat-WS takes a string a concatenates a word. Upshift-WS takes a string and upshifts it. I deployed them in Tomcat and created two JAXWS clients with the wsimport tool. When I run the Concat…
eskalera
  • 1,072
  • 2
  • 21
  • 36
2
votes
1 answer

JAX-WS Endpoint to Domino

My Domino Web Service Provider broke when I upgraded the (Win64) server from 8.5.3FP2 to FP3. I wrote some information about it to XPage forum. Instead of fighting with Axis based legacy stuff I'd like to use JAX WS which comes with Java 1.6. I…
Panu Haaramo
  • 2,932
  • 19
  • 41
2
votes
1 answer

jaxws multiple webservices single wsdl

I have created to Java objects and add the necessary @WebService annotations, etc. and I can view the wsdls for each on their separate urls. I was hoping to combine the two services into a single wsdl file. Does anyone know how this can be done?
Craig
  • 199
  • 1
  • 2
  • 11