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

Launch and endpoint inside servicemix

What do I have to do to call Endpoint.publish from a bundle in servicemix? I have used wsdl2java to create an impl that I launch inside a BundleActivator: LOG.info("WSBundle registering using endpoint..."); endpointAddress =…
hexa
  • 41
  • 5
2
votes
0 answers

order elements in response XML

I have a SOAPAction which returns a list of reports with positions. The positions should be in a certain order: Sorted by their zOrder attribute Before sending the response the list of positions is sorted: /*sort the positions in the report before…
Micha Roon
  • 3,957
  • 2
  • 30
  • 48
2
votes
1 answer

JAX WSclient casting a stub to a bindingprovider

Whenwriting a JAXWS client, thisis what I have used in the past: // CALL SERVICE EPaymentsService bPayService = new EPaymentsService(); ServiceInterface stub = bPayService.getPort(); BindingProvider bp = (BindingProvider) stub; Map
Victor
  • 16,609
  • 71
  • 229
  • 409
2
votes
1 answer

Return wsdl in a servlet implemented SOAP Web Service

I am implementing a SOAP web service in GAE. Since GAE does not support JAX-WS I have chosen to go this way, which is basically building the soap requests and responses myself from a servlet. Everything works fine but how can I achieve to return the…
eskalera
  • 1,072
  • 2
  • 21
  • 36
2
votes
1 answer

maven jax-ws plugin does not generate client classes from wsdl

I have created a web project using maven 2(it will be deployed on tomcat 7.0.35), which should serve as a client for JAX-WS web service. I am trying to generate client classes from wsdl file(I have 1 wsdl and 1 xsd). After I run "mvn clean install"…
D.R.
  • 437
  • 2
  • 8
  • 20
2
votes
0 answers

jax-ws webservice client returns only empty objects

I generate a Web Service Client with the assistant of Eclipse passing the WSDL of the provider Web Service. I generate in a JUnit test case the object to pass to the Web Service. //After set properties of the request object AbacusWebService wsAbacus…
Alejandro Cuervo
  • 535
  • 1
  • 5
  • 16
2
votes
3 answers

Why can't I retrieve the entities I've just persisted?

I've got this web service that basically queries the database and returns all persisted entities. For testing purposes, I've created a TestDataManager that persists 2 example entities after Spring context is loaded (BTW, I'm using JAX-WS, Spring,…
felipecao
  • 993
  • 1
  • 10
  • 23
2
votes
2 answers

How can I run jax-ws on java 5 with the minimum number of external dependencies?

I would like to use jax-ws in a java-5 environment. jaxws-rt 2.2.5 promises to allow access to jax-ws services. However, according to maven repository this artifact relies on about 12 other artifacts. There are constraints in my enterprise that…
geography_guy
  • 331
  • 1
  • 4
  • 12
2
votes
2 answers

Jaxb2Marshaller and primitive types

Is it possible to create a web service operation using primitive or basic Java types when using the Jaxb2Marschaller in spring-ws? For example a method looking like this: @Override @PayloadRoot(localPart = "AddTaskRequest", namespace =…
Thomas Einwaller
  • 8,873
  • 4
  • 40
  • 55
2
votes
2 answers

JAXWS serves only 100 concurrent requests, how to configure JAXWS to change it to unlimited?

I'm using JAXWS for generating webservices and serving using EndPoint.publish() as well as deploying war file, but as soon as it has served 100 requests it wouldn't return 101st response. How to configure JAXWS to change this count to…
cbz
  • 265
  • 1
  • 6
  • 15
2
votes
1 answer

What is the difference of sending an image via JAX-WS or REST?

I want to know the difference, advantages and disadvantages of these two web services. Imagine I want to send a big image file: a) a RPC based webservice via JAX-WS using SOAP b) a REST based webservice using HTTP
user1477955
  • 1,652
  • 8
  • 23
  • 35
2
votes
1 answer

Java Web Service & XML

I would need to build a simple program for my homework purposes that will retrieve data from an XML attribute based on the user input in a web service. To that end, I assumed I would start building a class that could parse my XML string and also I…
Ivan Ćeličanin
  • 79
  • 2
  • 3
  • 9
2
votes
1 answer

Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/context]

When I try run my application, i always get error: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/context]. I dont know whats is wrong. So this is my application-context.xml:
Mariola
  • 249
  • 7
  • 16
2
votes
2 answers

WebService Spring Error (JAX-WS with Spring 3.0)

I'm trying to create a WebService with JAX-WS integrated with Spring 3.0. I've tried to follow many examples that I found, but couldn't get any to work. I have Maven dependencies, Spring tags, web.xml config, but I'm stuck with the following error…
nataliaoliveira
  • 73
  • 3
  • 15
2
votes
1 answer

Inline WSDL instead of wsdl:import

Currently the WSDL of my @WebService annotated class creates an external wsdl that describe the classes. It does this by:
ChristopherS
  • 853
  • 4
  • 16