Using wsgen in XFire 1.2.5 for AWSECommerceService wsdl with
binding="xmlbeans" fails. If the binding attribute is removed from the task,
code gets generated normally. 

Here is the Ant target used:

    <target name="_xfire_amazon" description="xfire test">
        <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask" >
            <classpath>
                <fileset
dir="C:/_svn/5.7/other/workspace-webservice/webservice-xfire/lib">
                    <include name="*.jar"/>
                </fileset>
            </classpath>
        </taskdef>
        
        <wsgen
outputDirectory="C:/_svn/5.7/other/workspace-webservice/webservice-xfire/src"
              
wsdl="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl?";
 
               package="amazon.ws" 
               binding="xmlbeans"
               overwrite="true"
               />
        
    </target> 
   

Here is the result:


   _xfire_amazon:
   Apr 20, 2007 2:52:05 PM org.codehaus.xfire.gen.Wsdl11Generator generate
   INFO: Generating code for WSDL at
http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl?
with a base URI of
http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl?
   Apr 20, 2007 2:52:07 PM
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
   INFO: Creating class amazon.ws.AWSECommerceServicePortType
   C:\_svn\5.7\other\workspace-webservice\webservice-xfire\build.xml:119:
java.lang.NullPointerException
   BUILD FAILED (total time: 3 seconds)

Line 119 mentioned above references the "wsgen" task in the Ant target



-- 
View this message in context: 
http://www.nabble.com/wsgen-fails-for-Amazon.com-wsdl-%28AWSECommerceService%29-when-using-xmlbeans-binding-tf3620045.html#a10108313
Sent from the XFire - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email

Reply via email to