wsdl2java

apache cxf wsdl2java Failed to generate types->Access is denied

旧巷老猫 提交于 2019-12-07 09:38:15
问题 I'm struggling to fix this issue since 2013... I'm using Windows 7. [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.1.2:wsdl2java (generate-sources) on project service-data-model-provider: Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:3.1.2:wsdl2java failed: Failed to generate types. a:\Misc\WsMock\service-data-model-provider\src\main\java\schema\eo\common\system\messageheader\v1\MessageContextType.java (Access is denied) -> [Help 1] Its completely

JAXB Binding for XSD outside WSDL

∥☆過路亽.° 提交于 2019-12-07 07:05:11
问题 We are generating java with wsdl2java from third party WSDL (means we cant modify him). WSDL contain: <wsdl:import namespace="http://somenamespace" location="xsdschema.xsd" /> In this xsdschema are elements with nillable="true" and generator reports conflicts (duplications) in ObjectFactory. We try to use binding generateElementProperty="false". But in binding definition that is defined for WSDL, generator ignores it, and when defining bindings for xsd WSDL2Java said, that the XSD is not part

Annotating CXF (wsdl2java) generated package

喜欢而已 提交于 2019-12-07 06:34:26
I need to add package level annotation (XmlJavaTypeAdapters type adapter). The problem is that when I run wsdl2java it generates package-info.java file for that package. When I try to add my own package-info.java I get error: "the type package-ingo is already defined". Is there a way to inject my annotation to package-info.java?? Maybe any other ideas? thanks After some research I used external mapping file. For all that have similar problem to mine I have described below what I have found. If you are using "cxf-codegen-plugin" for generating source code from WSDL you can't use solution with

CXF: How to change package of WSDL imported XML Schema using JAXB external binding file?

落花浮王杯 提交于 2019-12-07 05:00:56
问题 I have a WSDL file which imports several XML Schemas, each of them having the same namespace (let's call it A). I'm trying to use a JAXB external binding file to change the generated package name (to let's say B) for those schemas. Here is an example: I have a POM file containing the configuration for code generation from WSDL (using the cxf-codegen-plugin). My WSDL: <definitions ...> <types> <xsd:schema elementFormDefault="qualified" targetNamespace="C"> <xsd:import namespace="A"

Axis Marshaller

限于喜欢 提交于 2019-12-07 03:39:58
问题 I have a group of classes that were created using wsdl2java (Axis 1.4) and am looking for a way to unmarshal and marshal the data from/to String and Object. I have written a JAXB unmarshaller that works well for some of our newer internal objects since we used xjc to create the classes but do not have time to convert the old axis classes and need to find a marshal/unmarshal solution for the code as-is. Can somebody please point me in a direction. Thanks! 回答1: I did find an answer to my own

Bundling wsdl in jar with CXF wsdl2java

瘦欲@ 提交于 2019-12-06 09:25:05
问题 I'm working on an implementation that will use a wsdl that I have gotten from a vendor. Our project is running on Spring and CXF, and I'd like to create a jar that will allow me to access this vendor's wsdl services, but I'm running into classpath issues. Using CXF's wsdl2java I am able to generate code that acts like this: WSDL_LOCATION = new URL("file:SomeService.wsdl"); The service requires the wsdl to be in the classpath, but I would like to bundle it in the jar so that it is

No subject alternative names present exception when creating web service client

一世执手 提交于 2019-12-06 05:35:19
I want to create a web service client using wsdl2java utility. I have to connect to this server over SSL This wsdl looks like this: https://xxx.xx.xx.xx:8443/api/wsdl/xxxxxxx.wsdl I generated the certificate using: openssl s_client -connect xxx.xx.xx.x:8443 </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > abcCertificate.pem and added it to keystore using: keytool -import -noprompt -trustcacerts -alias testcert -file abcCertificate.pem -keystore /usr/java/jdk1.7.0_06/jre/lib/security/cacerts -ext san=ip:xxx.xx.xx.xx When I try to use wsdl2java to create the web service client

Scala equivalent to wsdl2java?

柔情痞子 提交于 2019-12-05 13:18:12
问题 Is ther any equivalent to wsdl2java that will take a WSDL file and generate scala stubs for the server and/or client? I googled, but either there isn't or my google-fu is weak. 回答1: scalaxb has some support for this, but it's still very much experimental and it's still client-side only. The only reliable techniques I've seen for handling the server side is either to generate the Java code via wsdl2java or other tools and then wrap that in Scala or, possibly, to use annotations to generate the

CXF: Implement multiple ports on same soap:adress?

有些话、适合烂在心里 提交于 2019-12-05 04:35:37
We got a WSDL from a client, asking us to implement the service on our side. The WSDL contains 3 port-bindings, with different names and bindings, but identical <soap:adress> --- like this: <port name="Name1" binding="tns:Binding1"> <soap:address location="http://localhost/Service/ServicePort" /> </port> <port name="Name2" binding="tns:Binding2"> <soap:address location="http://localhost/Service/ServicePort" /> </port> <port name="Name3" binding="tns:Binding3"> <soap:address location="http://localhost/Service/ServicePort" /> </port> Is such WSDL possible to implement with CXF? When I run

WSP0075: Policy assertion “TransportBinding” was evaluated as “UNKNOWN”. Why?

血红的双手。 提交于 2019-12-04 16:34:33
问题 I am a client to a SOAP service I do not control (implemented in .NET). The service provides a WSDL. I use Apache CXF to generate the java client from the WSDL (specifically, I am using the cxf-codegen-plugin for Maven, which uses wsdl2java under the hood). However, when I instantiate the generated service class, the following warnings are logged: Sep 04, 2014 5:18:00 PM [com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector] selectAlternatives WARNING: WSP0075: Policy assertion "{http: