wsdl2java

wsdl2java generated code causes character encoding problems

五迷三道 提交于 2021-02-10 05:57:08
问题 I have generated a bunch of java-files from a WSDL source. I used Apache CXF 2.6.1 for generating the files. When I put the code onto our production box that is running jetty and maven and I send a request to the server via the generated java-files it somehow changes the systems/JVM character encoding. The swedish characters å, ä and ö changes into Ã¥, ä, ö. I can't reproduce this on my own box. Someone have any idea? 回答1: Since version 2.5.4 there is a new command line option -encoding

wsdl2java generated code causes character encoding problems

ぐ巨炮叔叔 提交于 2021-02-10 05:57:06
问题 I have generated a bunch of java-files from a WSDL source. I used Apache CXF 2.6.1 for generating the files. When I put the code onto our production box that is running jetty and maven and I send a request to the server via the generated java-files it somehow changes the systems/JVM character encoding. The swedish characters å, ä and ö changes into Ã¥, ä, ö. I can't reproduce this on my own box. Someone have any idea? 回答1: Since version 2.5.4 there is a new command line option -encoding

Custom package names cxf-codegen-plugin

我是研究僧i 提交于 2021-02-05 20:09:40
问题 Imagine this scenario. I have a wsdl file with namespace a/b/c and it imports another wsdl whose namespace is m/n/o. Unfortunately, both of them have same ComplexTypes XYZ defined in them. Now, when I use cxf-codegen-plugin to generate Java code and use custom package name "com.qsrs.uvw", only one class is retained in the final code that is generated. Can someone help me out here? 回答1: If you want to generate package depending on the namespace here is the solution: <plugin> <groupId>org

Custom package names cxf-codegen-plugin

我的未来我决定 提交于 2021-02-05 20:07:25
问题 Imagine this scenario. I have a wsdl file with namespace a/b/c and it imports another wsdl whose namespace is m/n/o. Unfortunately, both of them have same ComplexTypes XYZ defined in them. Now, when I use cxf-codegen-plugin to generate Java code and use custom package name "com.qsrs.uvw", only one class is retained in the final code that is generated. Can someone help me out here? 回答1: If you want to generate package depending on the namespace here is the solution: <plugin> <groupId>org

CXF - webservice endpoint has changed, WSDL has not

拜拜、爱过 提交于 2021-01-29 11:25:43
问题 My application used CXF WSDL2JAVA to generate the Java classes from a client supplied WSDL. They've now changed their webservice to have 3 additional string fields in the response. It would be a bit of rework for us to regenerate the java classes, but we're getting an exception: javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: unexpected element (newElement) Is there a way to get CXF to ignore the extra elements in the response? 回答1: If you add an endpoint property of: "set-jaxb

java.lang.ClassNotFoundException: com.sun.org.apache.xml.internal.resolver.CatalogManager Java 11

懵懂的女人 提交于 2020-07-21 07:26:12
问题 I have a JavaFX application I was migrating from Java 8 to Java 11 , it has been a rough transition but most of the application is working except for the web service , it keeps giving me the exception: Exception in thread "main" java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang

java.lang.ClassNotFoundException: com.sun.org.apache.xml.internal.resolver.CatalogManager Java 11

三世轮回 提交于 2020-07-21 07:26:08
问题 I have a JavaFX application I was migrating from Java 8 to Java 11 , it has been a rough transition but most of the application is working except for the web service , it keeps giving me the exception: Exception in thread "main" java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang

Soap: Set TimeOut using WSDL2Java

假装没事ソ 提交于 2020-04-19 05:51:15
问题 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