You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Stefan Magnus Landrø <st...@gmail.com> on 2012/11/22 10:17:35 UTC

Adding prefix to types using bindings file

Hi all,

I've got the following WSDL:

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions name="A" targetNamespace=http://example.com/v1/"
 xmlns:tns="http://example.com/v1/"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
 xmlns:xs="http://www.w3.org/2001/XMLSchema">

<wsdl:types>

<xs:schema targetNamespace="http://example.com/v1/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://example.com/v1/"
xmlns:meldinger="http://example.com/messages/v1">

<xs:import namespace="http://example.com/messages/v1"
schemaLocation="messages/messages.xsd"/>

......


I've been trying to add prefixes to the classnames using something like the
following but I doesn't work

                <jxb:nameXmlTransform>
                  <jxb:typeName prefix="XML"/>
                    <jxb:anonymousTypeName prefix="XML"/>
                </jxb:nameXmlTransform>


I found an example in the wsdl_first project, but it doesn't work for
imported namespaces.

Any advice would be greatly appreciated.

Cheers

Stefan


-- 

BEKK Open
http://open.bekk.no

TesTcl - a unit test framework for iRules
http://testcl.com