jax-ws

How to have a HashMap as @WebParam with JBossWS 3.1.2

旧街凉风 提交于 2020-01-01 07:00:07
问题 I am trying to develop a web service with JBossWS 3.1.2 that has a HashMap as one of its arguments. I am using this version of JBossWS because that is what is distributed with the version of JBoss that I am using. I am using wsprovide to generate the WSDL and wsconsume to create WS client stubs. A simplified version of my WebService is: @WebService(targetNamespace = "http://localhost/ping", serviceName = "Ping") @SOAPBinding(style = SOAPBinding.Style.RPC) public class Ping { @WebMethod

How to change address location of JAX-WS webservice

不想你离开。 提交于 2020-01-01 05:36:08
问题 We have currently exposed JAX-RPC webservice with following URL http://xx.xx.xx.xx/myservice/MYGatewaySoapHttpPort?wsdl We migrated webservice to JAX-WS by generating WebService from above WSDL But new webservice is accessible from following URL http://xx.xx.xx.xx/myservice/MYGateway?wsdl How i can make my JAX-WS webservice to be accessible by same URL mentioned first? so that our customer dont have any problem. Update: Service Element of WSDL from which i created is as per expectation

CXF jaxws endpoint relative publish address

℡╲_俬逩灬. 提交于 2020-01-01 04:50:52
问题 I am having a lot of difficulty trying to use a relative publish address in my CXF web service endpoint configuration. I have a simple Java-first JAX-WS project with the following configuration files: applicationContent-cxf.xml: <beans xmlns=...> ... <jaxws:endpoint id="helloWorldService" implementorClass="org.helloworld.ws.HelloWorldServiceImpl" implementor="#helloWorldServiceImpl" <!-- spring managed --> endpointName="sayHello" address="HelloWorldService"/> </beans> web.xml: <web-app>

What's wrong with my Apache CXF client?

一曲冷凌霜 提交于 2019-12-31 09:13:07
问题 This is part of my pom.xml : <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>${cxf.version}</version> <scope>runtime</scope> </dependency> I'm trying to use Apache CXF as an implementation of JAX-WS. Everything works fine (Java code is generated from WSDL by means of org

What's wrong with my Apache CXF client?

会有一股神秘感。 提交于 2019-12-31 09:13:05
问题 This is part of my pom.xml : <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>${cxf.version}</version> <scope>runtime</scope> </dependency> I'm trying to use Apache CXF as an implementation of JAX-WS. Everything works fine (Java code is generated from WSDL by means of org

Can you return an array from a JAX-WS @WebMethod?

…衆ロ難τιáo~ 提交于 2019-12-31 03:11:21
问题 I'm pretty sure you can, but in addition to answering the question in the title, could you also explain the pros, cons, caveats, if any, to doing so? I know that you can't return a List, Set, Collection, Map, or any interface, from a WebMethod (which is stupid, IMO, but I don't know what the design reasons were should I should probably withhold judgment). Thanks for any advice. -- LES 回答1: You can return arrays, and I have found them useful. The main reason that collections are a problem is

Trying to find out why one of those two SOAP requests does not work (java.lang.IllegalArgumentException)

☆樱花仙子☆ 提交于 2019-12-31 02:43:07
问题 I have a running JAX-WS webservice which already has some working endpoints. Now I'm having the following issue: I'm having two different SOAP Requests here and I don't understand why the first one works but the second one does not. The only obvious difference in the requests is that the first one specifies a namespace in the <Envelope> tag while the second one specifies it when calling the method <getMoldDataHistory> . SOAP Request 1 - Not Working (Namespace is specified at the method call)

maven-cxf-codegen-plugin using Jaxb binding to add inheritance for all generated classes

≯℡__Kan透↙ 提交于 2019-12-30 10:09:06
问题 I am using Apache CXF's cxf-codegen-plugin to turn a wsdl into java objects. I specified a binding file to add additional jaxb processing. I want all of these files to inherit from an interface (or extend an abstract class). My problem is that while I can get this to work with one generated file using <jaxb:bindings node="xsd:complexType[@name='sampleObj'] "> <inheritance:implements>example.Dao</inheritance:implements> </jaxb:bindings> which will make sampleObj implement example.Dao. I do not

JAX WS client cannot authenticate

只愿长相守 提交于 2019-12-30 03:09:11
问题 I'm trying to consume a secure (HTTPS schema) web-service with help of standard JAVA 7 JAX WS tools. This web-service requires authentication. I have already successfully added certificate to my local java keystore. All needed classes I've generated from WSDL file with help of wsimport tool. Now I am trying to use the following call to run a simple test: public class ReportingWebServiceTest { static ReportingServiceService service; static ReportingService port; @BeforeClass public static void

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

↘锁芯ラ 提交于 2019-12-29 09:20:09
问题 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 response. So far i have been able to set HTTP basic authentication via the HTTPConduit for the request like so: Client client = ClientProxy.getClient(port); HTTPConduit conduit = (HTTPConduit) client.getConduit(); AuthorizationPolicy