Yes Daniel, of course I use this:
<serviceFactory>
org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory
</serviceFactory>
OK according to the 'purchase-order' example one doesn't need the
schema in a separate .xsd file. The services.xml file doesn't have any
reference to a schema. The org.apache.xmlbeans.SchemaType is passed in
every artifact created by the XMLBeans. So when I create my original
wsdl for the top-down approach I include the schema over there as I
always did, not sure though the mecanics vis-a-vis the schema when using
the XMLBeans bindings that's all...
Maybe somebody can enlighten us...
On Thu, 2007-17-05 at 15:43 -0400, Daniel King wrote:
> In your services.xml, do you have the following defined:
>
> <service>
> <serviceClass>MyServiceImpl</serviceClass>
> <serviceFactory>org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory
> </serviceFactory>
> </service>
>
> Just curious if you're using the XmlBeansServiceFactory and not another
> factory since you want to use XMLBeans.
>
> Daniel King, R2D2, C3P0
> Application Engineer
> Web Team
> Nemours
> Office: (904) 288-5643
> Fax: (904) 288-5758
>
> *** Call me Daniel ***
>
> NOTICE...This electronic transmission is intended only for the person(s)
> named. It may contain information that is (i) proprietary to the
> sender, and/or (ii) privileged, confidential and/or otherwise exempt
> from disclosure under applicable State and Federal law, including, but
> not limited to, privacy standards imposed pursuant to the federal Health
> Insurance Portability and Accountability Act of 1996 (HIPAA). Receipt
> by anyone other than the named recipient(s) is not a waiver of any
> applicable privilege. If you received this confidential communication
> in error, please notify the sender immediately by reply e-mail message
> and permanently delete the original message from your system.
>
>
> -----Original Message-----
> From: Dragos Pavel [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 17, 2007 3:30 PM
> To: [email protected]
> Subject: Re: [xfire-user] Different behavior of wsgen in command line
> andant task
>
> OK found it but I'm not 100 % clear :
> I have to use this in the services.xml :
>
> <schemas>
> <schema>META-INF/xfire/WeatherForecast.xsd</schema>
> </schemas>
>
> But I found this in the jaxb2 example with spring from the codehaus.
> The XMLBeans example = 'purchase-order' doesn't contain a schema xsd
> definition...
>
> Can someone from XFire forum please confirm that when using XMLBeans
> bindings with XFire (and without Spring) do we need to create a schema
> xsd definition file and reference it like above in the services.xml ?
>
> I'm asking this because for example Jose's services.xml doesn't contain
> a schema reference, but on the manual for the "XMLBeans Integration" ,
> creating the schema was the first step. That page is applicable only
> when using Spring + XFire ???
>
> Please confirm.
>
>
> On Thu, 2007-17-05 at 18:18 +0200, Jose Manuel Valladares Pernas wrote:
> > Hi Dragos,
> >
> > I am using the xbean-2.2.0.jar that comes with xfire (in the lib
> directory).
> > This file is the xmlbeans jar.
> >
> >
> > In my services xml I have:
> > <beans xmlns="http://xfire.codehaus.org/config/1.0">
> > <service>
> > <name>UseOccupationsWSXFire</name>
> >
> >
> <namespace>http://ReservationSystem.hotelebusiness.com/UseOccupationsWS<
> /namespace>
> >
> >
> <serviceClass>com.hotelebusiness.ReservationSystem.web.webservices.UseOc
> cupationsWS</serviceClass>
> >
> >
> <serviceFactory>org.codehaus.xfire.jaxws.JAXWSServiceFactory</serviceFac
> tory>
> > </service>
> > </beans>
> >
> > We followed the documentation found in
> > http://xfire.codehaus.org/JSR+181+Annotations
> >
> > I hope this helps you.
> > Jose Manuel Valladares
> >
> >
> > On Thursday 17 May 2007 17:37:08 Dragos Pavel wrote:
> > > Hi All,
> > >
> > > Jose I am using as well xfire-1.2.4 with java 1.5.0. but with this
> jar
> > > for XMLBeans "xfire-xmlbeans-1.2.4.jar" (if using MyEclipse this is
> the
> > > jar that comes for the XFire 1.2 XMLBeans Libraries...).
> > >
> > > May I ask what "xmlbeans-2.2" you are using and from where did you
> get
> > > the jar file ?
> > >
> > > I can use a little bit of feedback from you to get started with a
> > > XMLBeans binding - web service project.
> > >
> > > Thanks, much appreciated.
> > >
> > > PS: I have a problem because org.codehaus.xfire.spring.ServiceBean
> can
> > > not be created properly ...
> > >
> > > My services.xml file contains a tag like this
> > > <service>
> > > <name>MyService</name>
> > > </service>
> > > It should contain a serviceBean tag ??? like this:
> > > <serviceBean>
> > > <name>MyService</name>
> > > </serviceBean>
> > >
> > > Can you tell us for short your config in services.xml file ?
> > >
> > > On Thu, 2007-17-05 at 12:58 +0200, Jose Manuel Valladares Pernas
> wrote:
> > > > Hello Tomek,
> > > > Thank you very much for your quick answer.
> > > >
> > > > We added the xmlbeans classes but we get still the same error when
> we use
> > > > the command line call.
> > > > I didn't tell you before, we are using xfire-1.2.4 and
> xmlbeans-2.2 with
> > > > java 1.5.0.
> > > >
> > > >
> > > >
> > > > The new call is the following:
> > > >
> > > > java -cp :/mirai/SOFT/xfire/1.2.4/lib/activation-
> > > >
> 1.1.jar:/mirai/SOFT/xfire/1.2.4/lib/bcprov-jdk15-133.jar:/mirai/SOFT/xfi
> r
> > >
> >e/1.2.4/lib/commons-attributes-api-2.1.jar:/mirai/SOFT/xfire/1.2.4/lib/
> com
> > >
> >mons-beanutils-1.7.0.jar:/mirai/SOFT/xfire/1.2.4/lib/commons-codec-1.3.
> jar
> > >
> >:/mirai/SOFT/xfire/1.2.4/lib/commons-discovery-0.2.jar:/mirai/SOFT/xfir
> e/1
> > >
> >.2.4/lib/commons-httpclient-3.0.jar:/mirai/SOFT/xfire/1.2.4/lib/commons
> -lo
> > >
> >gging-1.0.4.jar:/mirai/SOFT/xfire/1.2.4/lib/jaxb-api-2.0.jar:/mirai/SOF
> T/x
> > >
> >fire/1.2.4/lib/jaxb-impl-2.0.1.jar:/mirai/SOFT/xfire/1.2.4/lib/jaxb-xjc
> -2.
> > >
> >0.1.jar:/mirai/SOFT/xfire/1.2.4/lib/jaxen-1.1-beta-9.jar:/mirai/SOFT/xf
> ire
> > >
> >/1.2.4/lib/jaxws-api-2.0.jar:/mirai/SOFT/xfire/1.2.4/lib/jdom-1.0.jar:/
> mir
> > >
> >ai/SOFT/xfire/1.2.4/lib/jmock-1.0.1.jar:/mirai/SOFT/xfire/1.2.4/lib/jsr
> 173
> > >
> >_api-1.0.jar:/mirai/SOFT/xfire/1.2.4/lib/junit-3.8.1.jar:/mirai/SOFT/xf
> ire
> > >
> >/1.2.4/lib/mail-1.4.jar:/mirai/SOFT/xfire/1.2.4/lib/opensaml-1.0.1.jar:
> /mi
> > >
> >rai/SOFT/xfire/1.2.4/lib/org.mortbay.jetty-5.1.3.jar:/mirai/SOFT/xfire/
> 1.2
> > >
> >.4/lib/saaj-api-1.3.jar:/mirai/SOFT/xfire/1.2.4/lib/saaj-impl-1.3.jar:/
> mir
> > >
> >ai/SOFT/xfire/1.2.4/lib/servlet-api-2.3.jar:/mirai/SOFT/xfire/1.2.4/lib
> /sp
> > >
> >ring-1.2.6.jar:/mirai/SOFT/xfire/1.2.4/lib/stax-api-1.0.1.jar:/mirai/SO
> FT/
> > >
> >xfire/1.2.4/lib/stax-utils-20040917.jar:/mirai/SOFT/xfire/1.2.4/lib/wsd
> l4j
> > >
> >-1.6.1.jar:/mirai/SOFT/xfire/1.2.4/lib/wss4j-1.5.0.jar:/mirai/SOFT/xfir
> e/1
> > >
> >.2.4/lib/wstx-asl-3.2.0.jar:/mirai/SOFT/xfire/1.2.4/lib/xbean-2.2.0.jar
> :/m
> > >
> >irai/SOFT/xfire/1.2.4/lib/xbean-spring-2.7.jar:/mirai/SOFT/xfire/1.2.4/
> lib
> > >
> >/xercesImpl-2.6.2.jar:/mirai/SOFT/xfire/1.2.4/lib/xfire-jsr181-api-1.0-
> M1.
> > >
> >jar:/mirai/SOFT/xfire/1.2.4/lib/xml-apis-1.0.b2.jar:/mirai/SOFT/xfire/1
> .2.
> > >
> >4/lib/XmlSchema-1.1.jar:/mirai/SOFT/xfire/1.2.4/lib/xmlsec-1.3.0.jar:/m
> ira
> > >
> >i/SOFT/xfire/1.2.4/xfire-all-1.2.4.jar:/mirai/SOFT/ant/current/lib/ant-
> ant
> > >
> >lr.jar:/mirai/SOFT/ant/current/lib/ant-apache-bcel.jar:/mirai/SOFT/ant/
> cur
> > >
> >rent/lib/ant-apache-bsf.jar:/mirai/SOFT/ant/current/lib/ant-apache-log4
> j.j
> > >
> >ar:/mirai/SOFT/ant/current/lib/ant-apache-oro.jar:/mirai/SOFT/ant/curre
> nt/
> > >
> >lib/ant-apache-regexp.jar:/mirai/SOFT/ant/current/lib/ant-apache-resolv
> er.
> > >
> >jar:/mirai/SOFT/ant/current/lib/ant-commons-logging.jar:/mirai/SOFT/ant
> /cu
> > >
> >rrent/lib/ant-commons-net.jar:/mirai/SOFT/ant/current/lib/ant-icontract
> .ja
> > >
> >r:/mirai/SOFT/ant/current/lib/ant-jai.jar:/mirai/SOFT/ant/current/lib/a
> nt.
> > >
> >jar:/mirai/SOFT/ant/current/lib/ant-javamail.jar:/mirai/SOFT/ant/curren
> t/l
> > >
> >ib/ant-jdepend.jar:/mirai/SOFT/ant/current/lib/ant-jmf.jar:/mirai/SOFT/
> ant
> > >
> >/current/lib/ant-jsch.jar:/mirai/SOFT/ant/current/lib/ant-junit.jar:/mi
> rai
> > >
> >/SOFT/ant/current/lib/ant-launcher.jar:/mirai/SOFT/ant/current/lib/ant-
> net
> > >
> >rexx.jar:/mirai/SOFT/ant/current/lib/ant-nodeps.jar:/mirai/SOFT/ant/cur
> ren
> > >
> >t/lib/ant-starteam.jar:/mirai/SOFT/ant/current/lib/ant-stylebook.jar:/m
> ira
> > >
> >i/SOFT/ant/current/lib/ant-swing.jar:/mirai/SOFT/ant/current/lib/ant-tr
> ax.
> > >
> >jar:/mirai/SOFT/ant/current/lib/ant-vaj.jar:/mirai/SOFT/ant/current/lib
> /an
> > >
> >t-weblogic.jar:/mirai/SOFT/ant/current/lib/ant-xalan1.jar:/mirai/SOFT/a
> nt/
> > >
> >current/lib/ant-xslp.jar:/mirai/SOFT/ant/current/lib/xercesImpl.jar:/mi
> rai
> > >
> >/SOFT/ant/current/lib/xml-apis.jar:/mirai/SOFT/xmlbeans/2.2.0/lib/jsr17
> 3_1
> > >
> >.0_api.jar:/mirai/SOFT/xmlbeans/2.2.0/lib/resolver.jar:/mirai/SOFT/xmlb
> ean
> > >
> >s/2.2.0/lib/xbean.jar:/mirai/SOFT/xmlbeans/2.2.0/lib/xbean_xpath.jar:/m
> ira
> > > >i/SOFT/xmlbeans/2.2.0/lib/xmlpublic.jar
> org.codehaus.xfire.gen.WsGen -wsdl
> > > > ./OTA_Cancel.wsdl -o xfire/src -p com.mirai.otageneric.OTA_Cancel
> -b
> > > > xmlbeans -overwrite true
> > > >
> > > >
> > > >
> > > > And the exception is still the same:
> > > >
> > > > Running WsGen...
> > > > wsdl : ./OTA_Cancel.wsdl
> > > > package : com.mirai.otageneric.OTA_Cancel
> > > > output : xfire/src
> > > > binding : xmlbeans
> > > > externalBindings :
> > > > baseURI :
> > > > profile :
> > > > explictAnnotation : false
> > > > overwrite : true
> > > > Resovling. Base: null, URI: ./OTA_Cancel.wsdl
> > > > May 17, 2007 12:43:33 PM org.codehaus.xfire.gen.Wsdl11Generator
> generate
> > > > INFO: Generating code for WSDL at
> > > > file:/home/manolo/XOTA/OTA_Cancel/./OTA_Cancel.wsdl with a base
> URI of
> > > > file:/home/manolo/XOTA/OTA_Cancel/./OTA_Cancel.wsdl
> > > > Retrieving schema at 'xsd/OTA_CancelRQ.xsd', relative to
> > > > 'file:/home/manolo/XOTA/OTA_Cancel/./OTA_Cancel.wsdl'.
> > > > Retrieving schema at '../../xsdCommon/OTA_CommonTypes.xsd',
> relative to
> > > > 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> > > > Retrieving schema at 'OTA_SimpleTypes.xsd', relative to
> > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_CommonTypes.xsd'.
> > > > Retrieving schema at '../../xsdCommon/OTA_AirCommonTypes.xsd',
> relative
> > > > to 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> > > > Retrieving schema at 'OTA_SimpleTypes.xsd', relative to
> > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_AirCommonTypes.xsd'.
> > > > Retrieving schema at 'OTA_CommonTypes.xsd', relative to
> > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_AirCommonTypes.xsd'.
> > > > Retrieving schema at '../../xsdCommon/OTA_SimpleTypes.xsd',
> relative to
> > > > 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> > > > Retrieving schema at 'xsd/OTA_CancelRS.xsd', relative to
> > > > 'file:/home/manolo/XOTA/OTA_Cancel/./OTA_Cancel.wsdl'.
> > > > Retrieving schema at '../../xsdCommon/OTA_CommonTypes.xsd',
> relative to
> > > > 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> > > > Retrieving schema at '../../xsdCommon/OTA_AirCommonTypes.xsd',
> relative
> > > > to 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> > > > Retrieving schema at '../../xsdCommon/OTA_SimpleTypes.xsd',
> relative to
> > > > 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> > > > May 17, 2007 12:43:34 PM
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
> > > > INFO: Creating class com.mirai.otageneric.OTA_Cancel.OTA_Cancel
> > > > java.lang.NullPointerException
> > > > at org.apache.xmlbeans.impl.common.QNameHelper.hexsafedir(
> > > > QNameHelper.java:176)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.typeSystemForCompon
> e
> > > >nt( SchemaTypeLoaderImpl.java:249)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.findDocumentTypeRef
> (
> > > > SchemaTypeLoaderImpl.java:430)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.findDocumentType(
> > > > SchemaTypeLoaderBase.java:129)
> > > > at
> org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > XmlBeansSchemaSupport.java:51)
> > > > at
> org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > XmlBeansSchemaSupport.java:25)
> > > > at
> > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getReturnType(
> > > > AbstractServiceGenerator.java:359)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:106)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:63)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(
> > > > ServiceInterfaceGenerator.java:48)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:50)
> > > > at org.codehaus.xfire.gen.Wsdl11Generator.generate(
> > > > Wsdl11Generator.java:164)
> > > > at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
> > > > Exception in thread "main" java.lang.NullPointerException
> > > > at org.codehaus.xfire.gen.WsGen.main(WsGen.java:136)
> > > > Caused by: java.lang.NullPointerException
> > > > at org.apache.xmlbeans.impl.common.QNameHelper.hexsafedir(
> > > > QNameHelper.java:176)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.typeSystemForCompon
> e
> > > >nt( SchemaTypeLoaderImpl.java:249)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.findDocumentTypeRef
> (
> > > > SchemaTypeLoaderImpl.java:430)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.findDocumentType(
> > > > SchemaTypeLoaderBase.java:129)
> > > > at
> org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > XmlBeansSchemaSupport.java:51)
> > > > at
> org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > XmlBeansSchemaSupport.java:25)
> > > > at
> > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getReturnType(
> > > > AbstractServiceGenerator.java:359)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:106)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:63)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(
> > > > ServiceInterfaceGenerator.java:48)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:50)
> > > > at org.codehaus.xfire.gen.Wsdl11Generator.generate(
> > > > Wsdl11Generator.java:164)
> > > > at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
> > > > --- Nested Exception ---
> > > > java.lang.NullPointerException
> > > > at org.apache.xmlbeans.impl.common.QNameHelper.hexsafedir(
> > > > QNameHelper.java:176)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.typeSystemForCompon
> e
> > > >nt( SchemaTypeLoaderImpl.java:249)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.findDocumentTypeRef
> (
> > > > SchemaTypeLoaderImpl.java:430)
> > > > at
> > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.findDocumentType(
> > > > SchemaTypeLoaderBase.java:129)
> > > > at
> org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > XmlBeansSchemaSupport.java:51)
> > > > at
> org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > XmlBeansSchemaSupport.java:25)
> > > > at
> > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getReturnType(
> > > > AbstractServiceGenerator.java:359)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:106)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:63)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(
> > > > ServiceInterfaceGenerator.java:48)
> > > > at
> > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > AbstractServiceGenerator.java:50)
> > > > at org.codehaus.xfire.gen.Wsdl11Generator.generate(
> > > > Wsdl11Generator.java:164)
> > > > at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
> > > >
> > > >
> > > > Any other sugestion?
> > > >
> > > > Again, thank you very much,
> > > > Jose Manuel Valladares
> > > >
> > > > On Thursday 17 May 2007 12:35:20 Tomek Sztelak wrote:
> > > > > NPE means you don't have xmlbeans in your classpath.
> > > > >
> > > > > On 5/17/07, Jose Manuel Valladares Pernas
> <[EMAIL PROTECTED]>
> > wrote:
> > > > > > Hello,
> > > > > > We are getting an error in wsgen using the command line call
> and the
> > > > > > ant task wsgen works fine.
> > > > > >
> > > > > > We are using wsgen with the xmlbeans binding to generate the
> calls
> > > > > > for an wsdl that uses the OTA specification schemas.
> > > > > >
> > > > > >
> > > > > > The ant task uses the following entry in the build.xml file:
> > > > > >
> > > > > > <taskdef name="wsgen"
> classname="org.codehaus.xfire.gen.WsGenTask"
> > > > > > classpathref="xfire.classpath" />
> > > > > > <wsgen outputDirectory="xfire/src" wsdl="${wsdlfile}"
> package="
> > > > > > com.mirai.otageneric.${ota_operation}" binding="xmlbeans"
> > > > > > overwrite="true"/> <javac srcdir="xfire/src"
> destdir="xfire/classes"
> > > > > > source="1.5" target="1.5" debug="on" deprecation="on"
> > > > > > encoding="ISO-8859-1">
> > > > > > <classpath refid="xfire.classpath"/>
> > > > > > <include name="com/**/*.java" />
> > > > > > </javac>
> > > > > >
> > > > > >
> > > > > >
> > > > > > And to test the command line call, we used the following entry
> in the
> > > > > > build.xml:
> > > > > >
> > > > > > <exec executable="/usr/java/jdk1.5.0_11/bin/java">
> > > > > > <arg line="-cp :/mirai/SOFT/xfire/1.2.4/lib/activation-
> > > > > >
> 1.1.jar:/mirai/SOFT/xfire/1.2.4/lib/bcprov-jdk15-133.jar:/mirai/SOFT/
> > > > > >xfir
> > > > > >
> e/1.2.4/lib/commons-attributes-api-2.1.jar:/mirai/SOFT/xfire/1.2.4/li
> > > > > >b/com
> > > > > >
> mons-beanutils-1.7.0.jar:/mirai/SOFT/xfire/1.2.4/lib/commons-codec-1.
> > > > > >3.jar
> > > > > >
> > > > >
> >:/mirai/SOFT/xfire/1.2.4/lib/commons-discovery-0.2.jar:/mirai/SOFT/xfi
> > > > > >:re/1
> > > > > >
> > > > >
> >.2.4/lib/commons-httpclient-3.0.jar:/mirai/SOFT/xfire/1.2.4/lib/common
> > > > > >s-lo
> > > > > >
> gging-1.0.4.jar:/mirai/SOFT/xfire/1.2.4/lib/jaxb-api-2.0.jar:/mirai/S
> > > > > >OFT/x
> > > > > >
> fire/1.2.4/lib/jaxb-impl-2.0.1.jar:/mirai/SOFT/xfire/1.2.4/lib/jaxb-x
> > > > > >jc-2.
> > > > > >
> 0.1.jar:/mirai/SOFT/xfire/1.2.4/lib/jaxen-1.1-beta-9.jar:/mirai/SOFT/
> > > > > >xfire
> > > > > >
> /1.2.4/lib/jaxws-api-2.0.jar:/mirai/SOFT/xfire/1.2.4/lib/jdom-1.0.jar
> > > > > >:/mir
> > > > > >
> ai/SOFT/xfire/1.2.4/lib/jmock-1.0.1.jar:/mirai/SOFT/xfire/1.2.4/lib/j
> > > > > >sr173
> > > > > >
> _api-1.0.jar:/mirai/SOFT/xfire/1.2.4/lib/junit-3.8.1.jar:/mirai/SOFT/
> > > > > >xfire
> > > > > >
> /1.2.4/lib/mail-1.4.jar:/mirai/SOFT/xfire/1.2.4/lib/opensaml-1.0.1.ja
> > > > > >r:/mi
> > > > > >
> rai/SOFT/xfire/1.2.4/lib/org.mortbay.jetty-5.1.3.jar:/mirai/SOFT/xfir
> > > > > >e/1.2
> > > > > >
> .4/lib/saaj-api-1.3.jar:/mirai/SOFT/xfire/1.2.4/lib/saaj-impl-1.3.jar
> > > > > >:/mir
> > > > > >
> ai/SOFT/xfire/1.2.4/lib/servlet-api-2.3.jar:/mirai/SOFT/xfire/1.2.4/l
> > > > > >ib/sp
> > > > > >
> ring-1.2.6.jar:/mirai/SOFT/xfire/1.2.4/lib/stax-api-1.0.1.jar:/mirai/
> > > > > >SOFT/
> > > > > >
> xfire/1.2.4/lib/stax-utils-20040917.jar:/mirai/SOFT/xfire/1.2.4/lib/w
> > > > > >sdl4j
> > > > > >
> -1.6.1.jar:/mirai/SOFT/xfire/1.2.4/lib/wss4j-1.5.0.jar:/mirai/SOFT/xf
> > > > > >ire/1
> > > > > >
> .2.4/lib/wstx-asl-3.2.0.jar:/mirai/SOFT/xfire/1.2.4/lib/xbean-2.2.0.j
> > > > > >ar:/m
> > > > > >
> irai/SOFT/xfire/1.2.4/lib/xbean-spring-2.7.jar:/mirai/SOFT/xfire/1.2.
> > > > > >4/lib
> > > > > >
> /xercesImpl-2.6.2.jar:/mirai/SOFT/xfire/1.2.4/lib/xfire-jsr181-api-1.
> > > > > >0-M1.
> > > > > >
> jar:/mirai/SOFT/xfire/1.2.4/lib/xml-apis-1.0.b2.jar:/mirai/SOFT/xfire
> > > > > >/1.2.
> > > > > >
> 4/lib/XmlSchema-1.1.jar:/mirai/SOFT/xfire/1.2.4/lib/xmlsec-1.3.0.jar:
> > > > > >/mira
> > > > > >
> i/SOFT/xfire/1.2.4/xfire-all-1.2.4.jar:/mirai/SOFT/ant/current/lib/an
> > > > > >t-ant
> > > > > >
> lr.jar:/mirai/SOFT/ant/current/lib/ant-apache-bcel.jar:/mirai/SOFT/an
> > > > > >t/cur
> > > > > >
> rent/lib/ant-apache-bsf.jar:/mirai/SOFT/ant/current/lib/ant-apache-lo
> > > > > >g4j.j
> > > > > >
> ar:/mirai/SOFT/ant/current/lib/ant-apache-oro.jar:/mirai/SOFT/ant/cur
> > > > > >rent/
> > > > > >
> lib/ant-apache-regexp.jar:/mirai/SOFT/ant/current/lib/ant-apache-reso
> > > > > >lver.
> > > > > >
> jar:/mirai/SOFT/ant/current/lib/ant-commons-logging.jar:/mirai/SOFT/a
> > > > > >nt/cu
> > > > > >
> rrent/lib/ant-commons-net.jar:/mirai/SOFT/ant/current/lib/ant-icontra
> > > > > >ct.ja
> > > > > >
> r:/mirai/SOFT/ant/current/lib/ant-jai.jar:/mirai/SOFT/ant/current/lib
> > > > > >/ant.
> > > > > >
> jar:/mirai/SOFT/ant/current/lib/ant-javamail.jar:/mirai/SOFT/ant/curr
> > > > > >ent/l
> > > > > >
> ib/ant-jdepend.jar:/mirai/SOFT/ant/current/lib/ant-jmf.jar:/mirai/SOF
> > > > > >T/ant
> > > > > >
> /current/lib/ant-jsch.jar:/mirai/SOFT/ant/current/lib/ant-junit.jar:/
> > > > > >mirai
> > > > > >
> /SOFT/ant/current/lib/ant-launcher.jar:/mirai/SOFT/ant/current/lib/an
> > > > > >t-net
> > > > > >
> rexx.jar:/mirai/SOFT/ant/current/lib/ant-nodeps.jar:/mirai/SOFT/ant/c
> > > > > >urren
> > > > > >
> t/lib/ant-starteam.jar:/mirai/SOFT/ant/current/lib/ant-stylebook.jar:
> > > > > >/mira
> > > > > >
> i/SOFT/ant/current/lib/ant-swing.jar:/mirai/SOFT/ant/current/lib/ant-
> > > > > >trax.
> > > > > >
> jar:/mirai/SOFT/ant/current/lib/ant-vaj.jar:/mirai/SOFT/ant/current/l
> > > > > >ib/an
> > > > > >
> t-weblogic.jar:/mirai/SOFT/ant/current/lib/ant-xalan1.jar:/mirai/SOFT
> > > > > >/ant/
> > > > > >
> current/lib/ant-xslp.jar:/mirai/SOFT/ant/current/lib/xercesImpl.jar:/
> > > > > >mirai /SOFT/ant/current/lib/xml-apis.jar
> > > > > >
> > > > > > org.codehaus.xfire.gen.WsGen -wsdl ./OTA_Cancel.wsdl -o
> xfire/src -p
> > > > > > com.mirai.otageneric.OTA_Cancel -b xmlbeans -overwrite true"/>
> > > > > > </exec>
> > > > > > <javac srcdir="xfire/src" destdir="xfire/classes" source="1.5"
> > > > > > target="1.5" debug="on" deprecation="on"
> encoding="ISO-8859-1">
> > > > > > <classpath refid="xfire.classpath"/>
> > > > > > <include name="com/**/*.java" />
> > > > > > </javac>
> > > > > >
> > > > > >
> > > > > > When using the ant task we get a successful compilation:
> > > > > > [wsgen] Resovling. Base: null, URI: OTA_Cancel.wsdl
> > > > > > [wsgen] (gen.Wsdl11Generator 124 ) Generating code for
> > > > > > WSDL at file:/home/manolo/XOTA/OTA_Cancel/OTA_Cancel.wsdl with
> a base
> > > > > > URI of file:/home/manolo/XOTA/OTA_Cancel/OTA_Cancel.wsdl
> > > > > > [wsgen] Retrieving schema at 'xsd/OTA_CancelRQ.xsd',
> relative to
> > > > > > 'file:/home/manolo/XOTA/OTA_Cancel/OTA_Cancel.wsdl'.
> > > > > > [wsgen] Retrieving schema at
> '../../xsdCommon/OTA_CommonTypes.xsd',
> > > > > > relative to
> 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> > > > > > [wsgen] Retrieving schema at 'OTA_SimpleTypes.xsd', relative
> to
> > > > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_CommonTypes.xsd'.
> > > > > > [wsgen] Retrieving schema at
> > > > > > '../../xsdCommon/OTA_AirCommonTypes.xsd', relative to
> > > > > > 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> [wsgen]
> > > > > > Retrieving schema at 'OTA_SimpleTypes.xsd', relative to
> > > > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_AirCommonTypes.xsd'.
> > > > > > [wsgen] Retrieving schema at 'OTA_CommonTypes.xsd', relative
> to
> > > > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_AirCommonTypes.xsd'.
> > > > > > [wsgen] Retrieving schema at
> '../../xsdCommon/OTA_SimpleTypes.xsd',
> > > > > > relative to
> 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> > > > > > [wsgen] Retrieving schema at 'xsd/OTA_CancelRS.xsd',
> relative to
> > > > > > 'file:/home/manolo/XOTA/OTA_Cancel/OTA_Cancel.wsdl'.
> > > > > > [wsgen] Retrieving schema at
> '../../xsdCommon/OTA_CommonTypes.xsd',
> > > > > > relative to
> 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> > > > > > [wsgen] Retrieving schema at
> > > > > > '../../xsdCommon/OTA_AirCommonTypes.xsd', relative to
> > > > > > 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> [wsgen]
> > > > > > Retrieving schema at '../../xsdCommon/OTA_SimpleTypes.xsd',
> relative
> > > > > > to 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> [wsgen]
> > > > > > (jsr181.AbstractServiceGenerator 82 ) Creating class
> > > > > > com.mirai.otageneric.OTA_Cancel.OTA_Cancel
> > > > > > [wsgen] (jsr181.AbstractServiceGenerator 82 ) Creating class
> > > > > > com.mirai.otageneric.OTA_Cancel.OTA_CancelImpl
> > > > > > [wsgen] com/mirai/otageneric/OTA_Cancel/OTA_Cancel.java
> > > > > > [wsgen]
> com/mirai/otageneric/OTA_Cancel/OTA_CancelClient.java
> > > > > > [wsgen] com/mirai/otageneric/OTA_Cancel/OTA_CancelImpl.java
> > > > > > [javac] Compiling 3 source files to
> > > > > > /home/manolo/XOTA/OTA_Cancel/xfire/classes
> > > > > > [javac] Note:
> > > > > >
> /home/manolo/XOTA/OTA_Cancel/xfire/src/com/mirai/otageneric/OTA_Cance
> > > > > >l/OT A_CancelClient.java uses unchecked or unsafe operations.
> > > > > > [javac] Note: Recompile with -Xlint:unchecked for details.
> > > > > >
> > > > > > BUILD SUCCESSFUL
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > But when we use the command line call we get a
> NullPointerException:
> > > > > >
> > > > > > [exec] Running WsGen...
> > > > > > [exec] wsdl : ./OTA_Cancel.wsdl
> > > > > > [exec] package : com.mirai.otageneric.OTA_Cancel
> > > > > > [exec] output : xfire/src
> > > > > > [exec] binding : xmlbeans
> > > > > > [exec] externalBindings :
> > > > > > [exec] baseURI :
> > > > > > [exec] profile :
> > > > > > [exec] explictAnnotation : false
> > > > > > [exec] overwrite : true
> > > > > > [exec] Resovling. Base: null, URI: ./OTA_Cancel.wsdl
> > > > > > [exec] May 17, 2007 12:04:03 PM
> > > > > > org.codehaus.xfire.gen.Wsdl11Generatorgenerate
> > > > > > [exec] INFO: Generating code for WSDL at
> > > > > > file:/home/manolo/XOTA/OTA_Cancel/./OTA_Cancel.wsdl with a
> base URI
> > > > > > of file:/home/manolo/XOTA/OTA_Cancel/./OTA_Cancel.wsdl
> > > > > > [exec] Retrieving schema at 'xsd/OTA_CancelRQ.xsd', relative
> to
> > > > > > 'file:/home/manolo/XOTA/OTA_Cancel/./OTA_Cancel.wsdl'.
> > > > > > [exec] Retrieving schema at
> '../../xsdCommon/OTA_CommonTypes.xsd',
> > > > > > relative to
> 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> > > > > > [exec] Retrieving schema at 'OTA_SimpleTypes.xsd', relative
> to
> > > > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_CommonTypes.xsd'.
> > > > > > [exec] Retrieving schema at
> > > > > > '../../xsdCommon/OTA_AirCommonTypes.xsd', relative to
> > > > > > 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> [exec]
> > > > > > Retrieving schema at 'OTA_SimpleTypes.xsd', relative to
> > > > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_AirCommonTypes.xsd'.
> > > > > > [exec] Retrieving schema at 'OTA_CommonTypes.xsd', relative
> to
> > > > > > 'file:/home/manolo/XOTA/xsdCommon/OTA_AirCommonTypes.xsd'.
> > > > > > [exec] Retrieving schema at
> '../../xsdCommon/OTA_SimpleTypes.xsd',
> > > > > > relative to
> 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> > > > > > [exec] Retrieving schema at 'xsd/OTA_CancelRS.xsd', relative
> to
> > > > > > 'file:/home/manolo/XOTA/OTA_Cancel/./OTA_Cancel.wsdl'.
> > > > > > [exec] Retrieving schema at
> '../../xsdCommon/OTA_CommonTypes.xsd',
> > > > > > relative to
> 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> > > > > > [exec] Retrieving schema at
> > > > > > '../../xsdCommon/OTA_AirCommonTypes.xsd', relative to
> > > > > > 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> [exec]
> > > > > > Retrieving schema at '../../xsdCommon/OTA_SimpleTypes.xsd',
> relative
> > > > > > to 'file:/home/manolo/XOTA/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> [exec]
> > > > > > May 17, 2007 12:04:04 PM
> > > > > > org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator
> generate
> > > > > > [exec] INFO: Creating class
> > > > > > com.mirai.otageneric.OTA_Cancel.OTA_Cancel [exec]
> > > > > > java.lang.NullPointerException
> > > > > > [exec] at
> org.apache.xmlbeans.impl.common.QNameHelper.hexsafedir(
> > > > > > QNameHelper.java:176)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.typeSystemForCom
> > > > > >pone nt( SchemaTypeLoaderImpl.java:249)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.findDocumentType
> > > > > >Ref( SchemaTypeLoaderImpl.java:430)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.findDocumentType
> > > > > >( SchemaTypeLoaderBase.java:129)
> > > > > > [exec] at
> > > > > > org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > > > XmlBeansSchemaSupport.java:51)
> > > > > > [exec] at
> > > > > > org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > > > XmlBeansSchemaSupport.java:25)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getReturnType(
> > > > > > AbstractServiceGenerator.java:359)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:106)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:63)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(
> > > > > > ServiceInterfaceGenerator.java:48)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:50)
> > > > > > [exec] at org.codehaus.xfire.gen.Wsdl11Generator.generate(
> > > > > > Wsdl11Generator.java:164)
> > > > > > [exec] at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
> > > > > > [exec] Exception in thread "main"
> java.lang.NullPointerException
> > > > > > [exec] at org.codehaus.xfire.gen.WsGen.main(WsGen.java:136)
> > > > > > [exec] Caused by: java.lang.NullPointerException
> > > > > > [exec] at
> org.apache.xmlbeans.impl.common.QNameHelper.hexsafedir(
> > > > > > QNameHelper.java:176)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.typeSystemForCom
> > > > > >pone nt( SchemaTypeLoaderImpl.java:249)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.findDocumentType
> > > > > >Ref( SchemaTypeLoaderImpl.java:430)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.findDocumentType
> > > > > >( SchemaTypeLoaderBase.java:129)
> > > > > > [exec] at
> > > > > > org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > > > XmlBeansSchemaSupport.java:51)
> > > > > > [exec] at
> > > > > > org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > > > XmlBeansSchemaSupport.java:25)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getReturnType(
> > > > > > AbstractServiceGenerator.java:359)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:106)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:63)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(
> > > > > > ServiceInterfaceGenerator.java:48)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:50)
> > > > > > [exec] at org.codehaus.xfire.gen.Wsdl11Generator.generate(
> > > > > > Wsdl11Generator.java:164)
> > > > > > [exec] at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
> > > > > > [exec] --- Nested Exception ---
> > > > > > [exec] java.lang.NullPointerException
> > > > > > [exec] at
> org.apache.xmlbeans.impl.common.QNameHelper.hexsafedir(
> > > > > > QNameHelper.java:176)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.typeSystemForCom
> > > > > >pone nt( SchemaTypeLoaderImpl.java:249)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.findDocumentType
> > > > > >Ref( SchemaTypeLoaderImpl.java:430)
> > > > > > [exec] at
> > > > > >
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.findDocumentType
> > > > > >( SchemaTypeLoaderBase.java:129)
> > > > > > [exec] at
> > > > > > org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > > > XmlBeansSchemaSupport.java:51)
> > > > > > [exec] at
> > > > > > org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
> > > > > > XmlBeansSchemaSupport.java:25)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getReturnType(
> > > > > > AbstractServiceGenerator.java:359)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:106)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:63)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(
> > > > > > ServiceInterfaceGenerator.java:48)
> > > > > > [exec] at
> > > > > >
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
> > > > > > AbstractServiceGenerator.java:50)
> > > > > > [exec] at org.codehaus.xfire.gen.Wsdl11Generator.generate(
> > > > > > Wsdl11Generator.java:164)
> > > > > > [exec] at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
> > > > > > [exec] Result: 1
> > > > > >
> > > > > >
> > > > > > Any idea what's going on here?
> > > > > > Are we doing something wrong?
> > > > > >
> > > > > > Thank you very much for your help,
> > > > > > Jose Manuel Valladares Pernas
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > > http://xircles.codehaus.org/manage_email
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> > http://xircles.codehaus.org/manage_email
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email