Thanks Dan, I changed the cleanImports to false and now get
<xsd:import namespace="http://digir.net/schema/conceptual/darwin/2003/1.0" schemaLocation="http://digir.net/schema/conceptual/darwin/2003/1.0/darwin2.xsd"/> in the wsdl instead of <xsd:import namespace="http://digir.net/schema/conceptual/darwin/2003/1.0"/> Perfect! Thanks for the help, Tim p.s. for anyone looking for an xmlbeans spring config example in the "...XFIRE...-servlet.xml" - here's mine: <beans> <!-- Map URLs to the webservice implementation --> <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="urlMap"> <map> <entry key="/occurrence"> <ref bean="occurrenceWebService"/> </entry> </map> </property> </bean> <!-- Declare an xfire service factory --> <bean id="xfire.xmlbeansServiceFactory" class="org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory" singleton="true"> <property name="transportManager"> <ref bean="xfire.transportManager"/> </property> </bean> <!-- Declare an xfire configuration from the service interface --> <bean id="occurrenceWebService" class="org.codehaus.xfire.spring.remoting.XFireExporter"> <property name="serviceFactory"> <ref bean="xfire.xmlbeansServiceFactory"/> </property> <property name="serviceBean"> <ref bean="occurrenceWS"/> </property> <property name="serviceInterface"> <value>org.gbif.portal.ws.occurrence.Occurrence</value> </property> <property name="style" value="wrapped" /> <property name="use" value="literal" /> <property name="properties"> <map> <entry> <key><value>wsdlBuilder.cleanImports</value></key> <value>false</value> </entry> </map> </property> </bean> </beans> > Are you generating your service from wsdl? Or are you generating your > xmlbeans then writing your service class using those? > > If XFire is "cleaning" the imports for you (i.e. removing the > schemaLocation), you might want to set the "wsdlBuilder.cleanImports" > property to "true". In spring form: > <bean clas="...ServiceBean"> > <property name="properties"> > <map> > <entry> > <key>wsdlBuilder.cleanImports</key><value>true</value> > </entry> > </map> > </property> > > This is obscurely documented here and highlights a need for a > documentation reorganization :-) > > http://xfire.codehaus.org/services.xml+Reference > > Does that help at all? > - Dan > > Tim Robertson wrote: >> >> Hi, >> >> I have a WSDL with an xsd:import bringing in another schema in a >> different namespace. >> >> I XMLBeans it, write some methods and expose them using XFire. >> >> My generated WSDL is importing the namespace but not the schema is >> there a way to force it to do this? >> >> What I get out is: >> >> <xsd:import >> namespace="http://digir.net/schema/conceptual/darwin/2003/1.0"/> >> >> But Id either like it to include the Schema inline or have a >> >> <xsd:import >> namespace="http://digir.net/schema/conceptual/darwin/2003/1.0" >> >> schemaLocation="http://digir.net/schema/conceptual/darwin/2003/1.0/darwin2.xsd"/> >> >> Is there anything I can add to the XFire Spring config to force this? >> >> (The Configurator seems to be removed. >> >> http://docs.codehaus.org/display/XFIRE/Generating+WSDL+with+Schema+for+XMLBeans?decorator=printable) >> >> I pretty sure this is user error on my part >> >> Thanks, >> >> Tim >> > > > -- > Dan Diephouse > Envoi Solutions > http://envoisolutions.com > http://netzooid.com/blog > > >
