You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by bu...@us.ibm.com on 2002/08/20 14:26:19 UTC

Re: NameSpace => JAVA package using WSDL2Java

Fabien,

There are a number of tests in AXIS that have multiple namespaces mapped to
multiple packages.  Take a look at the test source:  xml-
axis/java/test/wsdl/_import/Import.wsdl or a simpler one xml-
axis/java/test/wsdl/refattr/refattr.wsdl.  Also take a look at xml-
axis/java/test/wsdl/Wsdl2javaTestSuite.xml.  This shows an xml version of
the WSDL2Java calls.  For instance, the refattr xml is:

    <wsdl2java url="test/wsdl/refattr/refattr.wsdl"
               output="build/work"
               deployscope="session"
               serverSide="yes"
               skeletonDeploy="yes"
               noimports="no"
               verbose="no"
               testcase="no">
        <mapping namespace="urn:ref.types.test" package="test.wsdl.refattr.
test"/>
        <mapping namespace="urn:ref.types" package="test.wsdl.refattr"/>
    </wsdl2java>

which maps to the command line:

java org.apache.axis.wsdl.WSDL2Java --output build/work --deployScope
Session --server-side --skeletonDeploy true --noImports --NStoPkg "urn:ref.
types.test"="test.wsdl.refattr.test" --NStoPkg "urn:ref.types"="test.wsdl.
refattr" test/wsdl/refattr/refattr.wsdl

The --NStoPkg statements are the ones you're most interested in.

Russell Butek
butek@us.ibm.com


"Fabien Guinet" <fa...@inovatel.com> on 08/20/2002 03:53:37 AM

Please respond to axis-user@xml.apache.org

To:    <ax...@xml.apache.org>
cc:
Subject:    NameSpace => JAVA package using WSDL2Java



Hi all,

I'm not very accustomized with wsdl's namespace and I'm try to generate
different packages with WSDL2Java from a wsdl file. Most of the time I have
the following error when I want to do so:
java.io.IOException: Emitter failure.  There is an undefined binding
(...SoapBinding) in the WSDL document.
Hint: make sure <port binding=".."> is fully qualified.

I'm sure my understanding of namespace isn't sufficiant to do this but I
would like to know if someone have a "complexe" wsdl file with multiple
namespace mapped to multiple java package (using for example the
NStoPkg.properties file) which is defined for WSDL2Java?

Many thanks for your help,

Fabien

P.S: Here is an extract of what I'm trying to do (cf test.wsdl and
NStoPkg.properties). Do not hesitate to have a look at them in order to
better understand my issue (Of course those files don't work).

P.S2: I'm using axis Beta 3 Release