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

Spring cannot connect to local web service when a proxy configured

I have an application which uses Spring to talk to some web services via the JaxWsPortProxyFactoryBean class. All works fine. Another part of my application needs to talk to the internet (for some RSS feeds), so I need to configure my proxy…
shuttsy
  • 1,585
  • 2
  • 19
  • 34
2
votes
0 answers

XML Digital Signature and JAX-WS

I'm developing a JAX-WS webservice that must validate incoming SOAP messages according to the XML Digital Signature specification. I have to manipulate incoming massages to match some transformations made to the reference beferore signing and not…
dascolagi
  • 107
  • 2
  • 12
2
votes
0 answers

Providing entities to the client using JAX-WS

I am trying to create a web service using JAX-WS (SOAP) allowing CRUD operations on some entities. I am also writing a desktop client with an UI which provides easy means of doing CRUD on those entities via the web service. However, I am running…
2
votes
1 answer

How to use Moxy XPath annotated beans in web services?

I have a bean @XmlRootElement(name = "alpha") public class MyBean { private String thetaValue; @XmlPath("beta/theta/text()") public String getThetaValue() { return this.thetaValue; } public void setThetaValue(String…
user1282545
  • 167
  • 4
  • 11
2
votes
1 answer

Publish two web services on the same address

I have a simple question about deploying web services. Currently I have two endPoints, see below: Endpoint.publish("http://localhost:8000/eCalcWS/eCalc", new eCalc()); Endpoint.publish("http://localhost:8001/eCalcWS/eCalc_service", new…
Mitja Rogl
  • 894
  • 9
  • 22
  • 39
2
votes
1 answer

Why does JAX-WS freeze while deploying any service using JAXB databinding?

I'm attempting to create a JAX-WS service that uses JAXB databinding of objects generated from the very large (900+ classes) set of Opentravel Alliance schemas. I am able to successfully deploy a war (with proper web.xml and sun-jaxws.xml)…
Justin Garrick
  • 14,767
  • 7
  • 41
  • 66
2
votes
1 answer

How can we compine JAX-WS and JAX-RS together?

Apache CFX can do the task.But i would like to combine it without any spring depedencides.Thank you in advance !
Prasobh.Kollattu
  • 1,665
  • 1
  • 22
  • 32
2
votes
1 answer

Weblogic 10.3.6 Ignores @HandlerChain

I've created a simple EJB3 WebService , that supposed to be intercepted by a SOAPHandler. I get no errors\warnings during the build (I used to get classpath errors , they're all fixed) , and I'm able to deploy and invoke the WS , but the server…
Stas
  • 31
  • 1
  • 5
2
votes
1 answer

JAXWS/OWSM: Unable to find SecurityPolicyFeature class in any jar

I am creating a JAX WS client to call a webservice. There is a OWSM security policy wss_username_token_service_policy added to it through enterprise manager. To apply the security policy to client i used below…
user1778288
  • 21
  • 1
  • 2
2
votes
0 answers

Writing a standalone Java client to access a secured WCF webservice using SAML2 token

I am trying to access a secured Windows Common Foundation (WCF) web service written on a .NET platform by using a plain Java client and Metro Web service API (webservices-rt-2.2.0-1) Using the WSDL of the WCF web service with ant targets, I was…
C L
  • 21
  • 2
2
votes
0 answers

Got Permission denied: connect while opening stream

I have a strange behaviour with a java client that uses webservice stubs generated by wsimport. The client says sth about Got Permission denied: connect while opening stream from http://dev:8080/LicenseServer/services/ServerImpl?wsdl But I can open…
t3az0r
  • 449
  • 4
  • 8
2
votes
2 answers

Compile WS client in Java 1.5 - Missing WebService -like annotations

I am developing an application which should serve as a client to a Web Service. I have generated source files based on the WSDL file using the wsimport utility. It works fine on my development machine with JDK 1.7 (e.g. it compiles and runs fine). I…
Dušan Rychnovský
  • 11,699
  • 8
  • 41
  • 65
2
votes
4 answers

Is mocking an essential part of unit testing?

I have a web service which calls a third party web service. Now I want to unit-test my web service. For this, should I mock the third party web service or is it fine to call it during the tests? Is there any standard document on unit testing?
Manav
  • 259
  • 6
  • 20
2
votes
1 answer

How to return a custom complex type in JAX-WS web services?

I have been attempting recently to write a web service that returns a custom object. This object is very simple: public class AppInfo { private int AppID; private String Appname; private String AppDesc; private String AppPriv; public int…
Ben
  • 1,291
  • 2
  • 15
  • 36
2
votes
1 answer

Timeout for Webservice response?

I have a client that calls a webservice. Partly some of the called methods may take a long time to complete on the server (even up to 1 hour). I want the client to wait for the response for that time, thus keeping the connection alive! I tried to…
membersound
  • 81,582
  • 193
  • 585
  • 1,120