RPC/Literal isn't supported by XFire , sorry.

On 5/16/07, dpociu <[EMAIL PROTECTED]> wrote:

I'm generating client code for
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl

Using Xfire 1.25 and the WsGenTask  as follows:

    <target name="-xfire_wsgen-init" depends="init">
        <!-- Uses XFire library to generate stub; this project's compile
classpath should contain xfire libs -->
        <taskdef name="xfire.wsgen"
classname="org.codehaus.xfire.gen.WsGenTask" >
            <classpath>
                <path path="${javac.classpath}"/>
            </classpath>
        </taskdef>
    </target>
    <target name="xfire_wsgen" depends="init,-xfire_wsgen-init"
description="Generate the xfire client stubs for a wsdl">
        <fail unless="rmgen.wsdl" message="The 'rmgen.wsdl' property is
required."/>
        <fail unless="rmgen.stub.package" message="The 'rmgen.stub.package'
property is required."/>
        <!-- Set the default properties.  Note: the 'rmgen.stub.output.dir'
property is set
            using the 'location' attribute, because the 'xfire.wsgen' task
does not properly
            normalize the value passed to outputDirectory wrt the basedir
property. -->
        <property name="rmgen.stub.output.dir" location="${src.dir}"/>
        <!-- Generate the xfire code -->
        <xfire.wsgen
                outputDirectory="${rmgen.stub.output.dir}"
                wsdl="${rmgen.wsdl}"
                package="${rmgen.stub.package}"
                overwrite="true"
        />
    </target>

I get the following exception:


May 16, 2007 2:13:19 PM org.codehaus.xfire.gen.Wsdl11Generator generate
INFO: Generating code for WSDL at
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl with a base URI of
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined simple or complex type 'soapenc:Array' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
May 16, 2007 2:13:20 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: undefined attribute 'soapenc:arrayType' at 0,0 in
http://soap.amazon.com/schemas3/AmazonWebServices.wsdl#types?schema1
C:\Documents and
Settings\Dev\workspace-test\test-serverside\nbproject\xtt-impl.xml:57:
org.codehaus.xfire.gen.GenerationException: Error generating JAXB model.


--
View this message in context: 
http://www.nabble.com/Generation-for-Amazon-wsdl-client-code-fails--tf3767783.html#a10651790
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to