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

How to use JAXB for generating getters with lazy initialization

I try to get beans generated with JAXB, where the getter-Methods have a implicit initialization (lazy initialization) like in the following example. public test.Address getAddress() { if (_address==null) { setAddress(new…
Chris Pit
  • 21
  • 3
2
votes
0 answers

org.apache.axis2.AxisFault: Transport error: 502 Error: Bad Gateway in JAX-WS

I have a system that consumes web services, I am using JAX-WS for consume that services, the system sometimes generated me the following exception: org.apache.axis2.AxisFault: Transport error: 502 Error: Bad Gateway Which is the reason why an…
2
votes
1 answer

JAX-WS wsimport use local wsdl a xsd file

i have soap client with generated sources with wsimport. I use following settings in my pom.xml org.codehaus.mojo jaxws-maven-plugin
user1089362
  • 546
  • 7
  • 29
2
votes
1 answer

How do i modify HTTP headers for a JAX-WS response in CXF?

I have been working on developing CXF web services that sit behind a security proxy which asks for HTTP basic authentication prior service invocation. These services communicate between each other and require authentication for both request and…
user2417716
  • 23
  • 1
  • 4
2
votes
1 answer

JAX-WS web-service defined by WSDL with abstract global elements

Here is a WSDL containing abstract global element named paramName:
vect
  • 645
  • 8
  • 16
2
votes
2 answers

Classcast exception on mocking JAX-WS proxy

Classcast on mocking JAX-WS proxy I try to use the JaxWsPortProxyFactoryBean in Spring (3.2.2 Release), but it fails when I try to mock the port in my unit test. The reason for the classcast exception is that I need to cast the proxy to a…
Bjorg
  • 55
  • 2
  • 8
2
votes
0 answers

Using WSGEN to combine WSDLS and XSDS into 1 WSDL

So I am working on a project that had previously had a service definition. I augmented it to add my methods, however, now when I run the following... "c:\Program Files\IBM\WebSphere\AppServer\bin\wsgen.bat" -verbose -keep -cp .…
Jackie
  • 21,969
  • 32
  • 147
  • 289
2
votes
2 answers

what actually JAX-WS is?

I need to work on webservice project. So going through book to cover the basics of webservice project. But these are questions I am struggling with:- 1.Java API for XML Web Services(JAX-WS):- JAX-WS is nothing but just a java programming language…
emilly
  • 10,060
  • 33
  • 97
  • 172
2
votes
1 answer

JAX-WS issuing GET then GET and POST

I wrote a JAX-WS client using classes generated from wsimport to invoke a webservice. To test my client locally, I wrote an implementation of the webservice and published it locally and called it. Everything worked as expected. One thing I noticed…
Brice
  • 346
  • 4
  • 14
2
votes
1 answer

JAX-WS implementation annotations vs. interface annotnations

I configure my JAX-WS web service using annotations. I use an endpoint interface which is annotated with some values and is used by the server as well as by the client, so they share the interface. My interface looks like this: @WebService(name =…
Manuel Faux
  • 2,317
  • 5
  • 24
  • 35
2
votes
0 answers

Spring beans injection into jax-ws services

So I already learnt that integration of spring and jax-ws is not an easy thing. I want to inject a spring bean into jax-ws service, but for some reason I get an exception during the deployment: Exception while loading the app :…
Kamil Janowski
  • 1,872
  • 2
  • 21
  • 43
2
votes
1 answer

Slow webservice invocation from Weblogic 12c

I am facing a strange problem, I have a weblogic 12c server running on a jdk 1.6.0_25 I am consuming a webservice that's protected over SSL. My problem is that first call takes 5 seconds while other calls when done quickly take only 500 milliseconds…
2
votes
1 answer

Use interfaces in JAX-WS web methods

I need to use an interface as a parameter and as a return type in a JAX-WS web method. When starting my server I receive an IllegalAnnotationsException, which tells me that JAXB cannot handle interfaces. I tried to annotate my class, method result…
Manuel Faux
  • 2,317
  • 5
  • 24
  • 35
2
votes
1 answer

Calling JAX-WS Web Services on WebSphere v7 with SOAP UI

I have a JAX-WS Web Service packed in an EAR, deployed to WebSphere v7. The EAR contains: - APP-INF directory: classes directory (.class files in the right package hierarchy) plus the lib dir with required jars - META-INF dir - the war with empty…
Kumite
  • 2,129
  • 3
  • 15
  • 15
2
votes
1 answer

Marshalling classes into XSD:Anytype xml

My problem is that I have a class of type MessageList, which contains Message items, defined as such:
user898465
  • 944
  • 1
  • 12
  • 23