wsdl2java

Soap: Set TimeOut using WSDL2Java

旧巷老猫 提交于 2020-04-19 05:43:53
问题 I'm trying to send some data to a SOAP service. Now we have created some classes with WSDL2Java based on a WSDL. Now the call is taking more than 1 minute, while the time out is set (I think) on 1 minute. How can I change the timeout? Caused by: javax.xml.ws.WebServiceException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145) at com.sun.proxy.$Proxy164.salesOrderProcess(Unknown Source) at com.project.b2b.cq.shimanoexportorder

Soap: Set TimeOut using WSDL2Java

被刻印的时光 ゝ 提交于 2020-04-19 05:42:51
问题 I'm trying to send some data to a SOAP service. Now we have created some classes with WSDL2Java based on a WSDL. Now the call is taking more than 1 minute, while the time out is set (I think) on 1 minute. How can I change the timeout? Caused by: javax.xml.ws.WebServiceException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145) at com.sun.proxy.$Proxy164.salesOrderProcess(Unknown Source) at com.project.b2b.cq.shimanoexportorder

Soap: Set TimeOut using WSDL2Java

房东的猫 提交于 2020-04-19 05:41:52
问题 I'm trying to send some data to a SOAP service. Now we have created some classes with WSDL2Java based on a WSDL. Now the call is taking more than 1 minute, while the time out is set (I think) on 1 minute. How can I change the timeout? Caused by: javax.xml.ws.WebServiceException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145) at com.sun.proxy.$Proxy164.salesOrderProcess(Unknown Source) at com.project.b2b.cq.shimanoexportorder

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

Axis 1.4 can't deserialize response

痴心易碎 提交于 2020-01-17 07:05:09
问题 I'm implement a client that access an old service, after some researches I discovered I need user Axis 1.4 do comunicate with this service. After generate the java code from wsdl I can see that Axis is not deserializing the response corretly, it appears it is reading the element as if it was another. This is de wsdl of the service: <?xml version="1.0"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PC_Precoservice" targetNamespace=

Using wsdl2java to generate stub with PROPER async support

可紊 提交于 2020-01-04 01:51:51
问题 Lets say I have a service with ONLY one method: int generateRandomNumbers() . Is is possible to use wsdl2java to generate a stub with proper async support? For example, the generated class should has the following methods/messages: int generateRandomNumbers() int generateRandomNumbers_Async(callback) I know how to use wsdl2java to generate stubs with the async messages. However, this only works if the service understands the async messages. What I mean by proper async support is that

Jaxb: Generate constant value for fixed-value attribute

人盡茶涼 提交于 2020-01-03 13:56:10
问题 I'm currently working on a xsd which uses the following contruct: <xs:attribute name="listVersionID" type="xs:normalizedString" use="required" fixed="1.0"> While not problematic per se, it is rather annoying to work with, since the fixed-value of this definition increases between releases of the xsd spec, and we need to modify the values in a seperate constants-class to keep them valid, although little if anything of interest in the xsd has changed. The xsd is maintained elsewhere, so just

“Can not initialize the default wsdl from…” — Why?

荒凉一梦 提交于 2020-01-03 07:29:06
问题 My pom.xml contains the following to auto generate a client for a working web service having the WSDL specified below: <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <id>generate-sources</id> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/wsdl/myclient.wsdl</wsdl> <extraargs> <extraarg>-client</extraarg> <extraarg>

“Can not initialize the default wsdl from…” — Why?

烂漫一生 提交于 2020-01-03 07:29:06
问题 My pom.xml contains the following to auto generate a client for a working web service having the WSDL specified below: <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <id>generate-sources</id> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/wsdl/myclient.wsdl</wsdl> <extraargs> <extraarg>-client</extraarg> <extraarg>