Hi, I am attaching you the services.xml and the WSDL with the reference to the external schemas.
I removed the external references and made a copy of all referenced schemas in the .aar file, and now Axis is not generating any exception at all, and the service appears in the service listing, but when I go the WSDL for the service and then I got to the referenced schemas, these schemas are modified. I am referencing some schemas from Dublin core, and they define some types using extension and restriction mechanisms and they define some elements to be substitution groups of another elements, Axis is removing this definitions, for example, in one of the schemas that I am referencing: http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd They define an element with name title, like this: <xs:element name="title" substitutionGroup="any"/> I made a copy of this xsd in the aar file, and when Axis serves this schema the element definition now looks like: <xs:element name="title"/> The worst case if the for the following schema: http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcmitype.xsd There, they define a simpleType like this: <xs:simpleType name="DCMIType"> <xs:union> <xs:simpleType> <xs:restriction base="xs:Name"> <xs:enumeration value="Collection"/> <xs:enumeration value="Dataset"/> <xs:enumeration value="Event"/> <xs:enumeration value="Image"/> <xs:enumeration value="MovingImage"/> <xs:enumeration value="StillImage"/> <xs:enumeration value="InteractiveResource"/> <xs:enumeration value="Service"/> <xs:enumeration value="Software"/> <xs:enumeration value="Sound"/> <xs:enumeration value="Text"/> <xs:enumeration value="PhysicalObject"/> </xs:restriction> </xs:simpleType> </xs:union> </xs:simpleType> But Axis now serves it as: <xs:simpleType name="DCMIType"> <xs:union memberTypes="null null"/> </xs:simpleType> Is this the expected behavior of Axis? I workaround for this is the serve all the schemas and WSDL and schemas outside of Axis, because I don't want Axis to modified them, so I think that is the best choice, but it would be nice if Axis could serve them as well. Thank you for your help. Cheers, Carlos -----Original Message----- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 13, 2006 2:57 AM To: [email protected] Subject: Re: Importing external schema in WSDL Hi Carlos; Once you put your wsdl file into META-INF directory of the service archive file , then if there are xsd:imports in your wsdl Axis2 tries to read them. If the schema imports are relative then they should be there in the META-INF directory, if the schema is absolute URL then it should work w.o having any problem. Any way it is very helpful that if you could attached your wsdl or service archive file for us to regenerate the issue. Carlos A. Perez wrote: >Hi, > >I have been trying to reference an external schema in a WSDL file using >xs:import inside the types section, and using as a schema locator an http >URL. > >It worked with version 0.95, but now with version 1.0 it's giving me an >error saying that it was unable to locate the schema with the http locator >that I provided (Unable to locate with a locator the schema referenced at >'http://...'). Now, I don't know if in general I am not supposed to use http >URLs as schema locators or if it's a bug introduced in the new version of >Axis when fixing the bug in the version 0.95 that didn't allow me to import >schemas that were inside the .aar file. > >Could someone help me with this issue? > >Bye and thank you very much for your help. > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Thanks, Deepal ................................................................ ~Future is Open~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<serviceGroup>
<service name="CMapWebService" scope="application">
<description>
Web service that allows access to resources in a CMap Server.
</description>
<parameter name="ServiceClass" locked="false">us.ihmc.ws.services.CMapWebService</parameter>
<operation name="getResource">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
<operation name="getResourceMeta">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
<operation name="getResourceMetaList">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
<operation name="getRootResourceMetaList">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
<operation name="saveResource">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
<operation name="createResource">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
</service>
</serviceGroup>
CMapWebService.wsdl
Description: application/xml
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
