jax-ws

Simple curl failing from linux command line

微笑、不失礼 提交于 2020-01-14 01:38:07
问题 we have a simple REST request that I can use manually on my Mac with RESTClient (from wiztools). The url is http://ws-argos.clsamerica.com/argosDws/services/DixService?getXml and the body is below: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:typ="http://service.dataxmldistribution.argos.cls.fr/types"> <soap:Body> <typ:xmlRequest> <typ:username>******</typ:username> <typ:password>******</typ:password> <typ:platformId>62518,62688,62520,62602,62608</typ:platformId>

How to specify ReplyTo EndpointReference in a JAX-WS client?

旧时模样 提交于 2020-01-13 19:05:04
问题 I want to use JAX-WS API to create a WS-Addressing enabled web service client. I used wsimport to create the client stub from the WSDL file, and can enable/disable WS-Addressing by using the AddressingFeature, e.g. Hello hello = service.getHelloSoap11(new AddressingFeature(true, true)); However, I cannot find any samples in web that customize the WS-Addressing ReplyTo/FaultTo endpoint reference. Basically I want to create a WS request like the following (see the wsa:ReplyTo element): <soapenv

jaxws-api 2.2 not loaded in maven build

允我心安 提交于 2020-01-13 10:53:28
问题 I have generated Java code with Apache CXF tool wsdl2java. In the comments of my service it says that I should endorse Jaxws API 2.2 but don't know what it means. In my Maven POM I have this: <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.2</version> </dependency> On build, I get these errors in Maven: cannot find symbol symbol : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[]) I have checked JAX-WS API 2

jaxws-api 2.2 not loaded in maven build

巧了我就是萌 提交于 2020-01-13 10:53:09
问题 I have generated Java code with Apache CXF tool wsdl2java. In the comments of my service it says that I should endorse Jaxws API 2.2 but don't know what it means. In my Maven POM I have this: <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.2</version> </dependency> On build, I get these errors in Maven: cannot find symbol symbol : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[]) I have checked JAX-WS API 2

Why does a JAX-WS client access the WSDL at run-time?

南楼画角 提交于 2020-01-13 09:13:35
问题 After generating JAX-WS client using the wsimport wsimport -keep WebService.wsdl What reason does JAX-WS have to look for the wsdl location at run time? Is this a bug? I found this great post: JAX-WS client : what's the correct path to access the local WSDL? but it doesn't say why do we need the wsdl at runtime 回答1: Is this a bug? No, this is not a bug, but reasonable from a conceptual point of view. What reason does JAX-WS have to look for the wsdl location at run time? At build-time, you

Parameter Names in WSDL with significant name

梦想的初衷 提交于 2020-01-13 07:44:29
问题 I am creating a WebService in Java using JAXWS RI. The WSDL file is created when deploying the application WAR automatically. The problem is that I want the arguments (that each operation recieves) in the WSDL file to have significant names, but they appear as arg0, arg1, arg2 ... Is there a way to define the names for this parameters and don't use the default names? I have implemented the following: The WebService Interface @WebService @SOAPBinding(style = Style.RPC) public interface WS2 {

How can I change soap address in a JBoss 7 java webservice

北慕城南 提交于 2020-01-13 02:42:08
问题 How can I change the soap address in a web service. I'm working on JBoss 7.1.1. I have this web service class: @WebService public class Card { @WebMethod public CardResponseDTO insertCard( @WebParam(name = "cardRequestCardDTO") CardDTO cardDTO, @WebParam(name = "userName") String userName) { Date today; CardResponseDTO cardResponseDTO = new CardResponseDTO(); try { today = Calendar.getInstance().getTime(); // My logic in here... return cardResponseDTO; } catch (Exception ex) { log.error(ex

JAX-WS Web service on Tomcat without sun-jaxws.xml

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-12 06:48:09
问题 I am trying to minimize required configuration while deploying JAX-WS-based Web service on Tomcat. With the introduction of Servlet 3.0 (supported by Tomcat 7+), web.xml can be thrown out, but there is still sun-jaxws.xml . This blog post is interesting: Of course, with the use of jax-ws annotations, even configuration sun-jaxws.xml can be made optional making it completely descriptor free, but that requires specifying a default url-pattern like in JSR-109 or custom pattern like in Jersey

What's the difference between jaxws-ri and jaxws-rt?

◇◆丶佛笑我妖孽 提交于 2020-01-11 17:06:30
问题 See the JAX-WS Maven repository from java.net - http://download.java.net/maven/2/com/sun/xml/ws/ There are two similar folders - jaxws-rt and jaxws-ri . Currently, I'm using the jaxws-rt and it's working fine. Here are my questions: What's the difference between ri and rt ? Does ri stand for reference implementation and rt stand for runtime ? Please advice. Thanks. 回答1: As an answer to your second question : Yes, you are right. Below is the proof. RI stands for Reference Implementation .

how to deploy a jax-ws service to eclipse or tomcat?

£可爱£侵袭症+ 提交于 2020-01-11 05:37:09
问题 As a web services beginner, I have tried for 2 weeks to get a hello world webservice working with maven, eclipse and tomcat. I gave up trying to get any of the code/wsdl generators to work, and I followed this tutorial http://myarch.com/create-jax-ws-service-in-5-minutes to hand code an example, which is brilliant. This results in 4 class files and a WSDL file. So my stupid question is how to "run" the service in eclipse and/or on tomcat? I tried just deploying them as a webapp, but no joy -