Skip to content

Instantly share code, notes, and snippets.

@nilsmagnus
Created April 28, 2014 06:30
Show Gist options
  • Save nilsmagnus/11363250 to your computer and use it in GitHub Desktop.
Save nilsmagnus/11363250 to your computer and use it in GitHub Desktop.
Wsdl2Java Cxf Binding File to Rename Complextype
<?xml version="1.0" encoding="UTF-8"?>
<jaxws:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema[1]">
<jxb:bindings node="//xs:complexType[@name='VatNumber_exception']">
<jxb:class name="VatNumException"/>
</jxb:bindings>
</jaxws:bindings>
</jaxws:bindings>
@ru51an
Copy link

ru51an commented Jan 13, 2018

Hello!
I need it but for wsdl schema with rpc-encodimg. This schema contains duplication of complexType. How can I create binding?
I used wsdl2java of Apache Axis 1.4 to generate java classes.

@MartinezF
Copy link

This helped me a lot, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment