jax-ws-customization

How to acheive servicegen behavior in jwsc task?

◇◆丶佛笑我妖孽 提交于 2020-07-31 04:45:36
问题 Migrating a java soap web service from 11g to 12c which has few operations. Used jwsc task to generate WSDL which generates all the input elements starting with uppercase and "ArrayOf" elements not coming along with wsdl. This behavior was good in 11g where wsdl generation happens through servicegen task, In 12c servicegen not available. Any suggestion to overcome this issue? 回答1: servicegen is from WLS 8.1 (this version had a proprietary webservices jax-rpc runtime). That runtime was removed

How to put SAML token directly into JAX-WS service without calling STSClient

我只是一个虾纸丫 提交于 2020-03-03 23:29:32
问题 Last year I made JAX-WS client for a web service in this link This webservice use a STS service to get SAML token and use it to access main webservice. I use wsdl2java of apache cxf to generate JAX-WS client for this webservice. Everything was just fine. Recently they have updated their STS service endpoint. This new STS service endpoint. Which has different signature and digest algorithm. It has some extra element in request body. I tried to modify current code so that it support new STS

How to put SAML token directly into JAX-WS service without calling STSClient

大兔子大兔子 提交于 2020-03-03 23:28:54
问题 Last year I made JAX-WS client for a web service in this link This webservice use a STS service to get SAML token and use it to access main webservice. I use wsdl2java of apache cxf to generate JAX-WS client for this webservice. Everything was just fine. Recently they have updated their STS service endpoint. This new STS service endpoint. Which has different signature and digest algorithm. It has some extra element in request body. I tried to modify current code so that it support new STS

WS Client with Proxy and Autentification

半世苍凉 提交于 2019-12-17 22:43:23
问题 I know this isn't exactly the correct way to ask a question, but I'm having a problem: I have a wsdl stored locally, and I need to create a Web Service Client to call that Web Service. The problem is the service is behind a firewall and I have to connect to it through a proxy and after that I have to authentify to connect to the WS. What i did is generate the WS Client with Apache CXF 2.4.6 then set a system wide proxy System.getProperties().put("proxySet", "true"); System.getProperties().put

What customization to apply for JAX-WS to unwrap return objects to lists?

ぃ、小莉子 提交于 2019-12-12 09:41:17
问题 I am trying to find if there is a way to customize e.g. CSID2ExtRefs operation for ChemSpider WebService that is passed a list of strings as one of the arguments and returns the list of objects: <!-- Request element: --> <s:element name="CSID2ExtRefs"> <s:complexType> <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="CSID" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="datasources" type="tns:ArrayOfString"/> <s:element minOccurs="0" maxOccurs="1" name="token" type="s

WSDL customization: XMLGregorianCalender to java.util.Date

邮差的信 提交于 2019-12-10 14:52:14
问题 I have several wsdl files almost hundreds. Whenever I create client jaxb client classes for them the Jaxb automatically maps all the date/time fields to XMLGregorianCalender. After a lot of googling, I found out providing a separate binding file is the only solution. I don't want to provide the wsdl location, since I've so many, as otherwise I'd have to create a separate binding files for each wsdl. Below is the binding file I used. <bindings xmlns="http://java.sun.com/xml/ns/jaxb" version="2

What customization to apply for JAX-WS to unwrap return objects to lists?

点点圈 提交于 2019-12-05 14:43:16
I am trying to find if there is a way to customize e.g. CSID2ExtRefs operation for ChemSpider WebService that is passed a list of strings as one of the arguments and returns the list of objects: <!-- Request element: --> <s:element name="CSID2ExtRefs"> <s:complexType> <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="CSID" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="datasources" type="tns:ArrayOfString"/> <s:element minOccurs="0" maxOccurs="1" name="token" type="s:string"/> </s:sequence> </s:complexType> </s:element> <!-- Response element: --> <s:element name=

how to get maven-jaxws-plugin to generate @XmlElementWrapper on classes generated from xsd?

三世轮回 提交于 2019-12-04 23:58:39
问题 I am using maven-jaxws-plugin to generate java classes from my wsdl, schema. It is not generating the @XmlElementWrapper annotation in the generated classes. From this post I understand I nedd to use the jaxb-xew-plugin but am unable to get it working with the maven-jaxws-plugin. Any help would be appreciated. Here is the config I tried <plugin> <groupId>org.jvnet.jax-ws-commons</groupId> <artifactId>jaxws-maven-plugin</artifactId> <version>2.2</version> <executions> <execution> <goals> <goal

how to get maven-jaxws-plugin to generate @XmlElementWrapper on classes generated from xsd?

心已入冬 提交于 2019-12-03 16:29:04
I am using maven-jaxws-plugin to generate java classes from my wsdl, schema. It is not generating the @XmlElementWrapper annotation in the generated classes. From this post I understand I nedd to use the jaxb-xew-plugin but am unable to get it working with the maven-jaxws-plugin. Any help would be appreciated. Here is the config I tried <plugin> <groupId>org.jvnet.jax-ws-commons</groupId> <artifactId>jaxws-maven-plugin</artifactId> <version>2.2</version> <executions> <execution> <goals> <goal>wsimport</goal> </goals> <phase>generate-resources</phase> <configuration> <xjcArgs> <xjcArg>-no

Using JAXB binding extensions in wsimport

喜夏-厌秋 提交于 2019-12-02 02:26:05
问题 I know how to enable extensions in a plain JAXB bindings file - list them in the root element's extensionBindingPrefixes : <jaxb:bindings version="1.0" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc" ...> However, a JAX-WS bindings file doesn't have anywhere to put this attribute. <jaxws:bindings version="2.0" xmlns:jaxws="http://java.sun.com/xml/ns/jaxws" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xjc=