In my WS I use @WebService with the wsdlLocation. In my wsdl I have a type that 
use two external elements from the same namespace 

  |     <import 
namespace="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/"; 
schemaLocation="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/DKCC_DistrictSubdivisionIdentifier.xsd"/>
  |     <import 
namespace="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/"; 
schemaLocation="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/DKCC_PostCodeIdentifier.xsd"/>
  |     <complexType name="KontaktInformationType">
  |             <sequence>
  |                     <element ref="ebxml:DistrictSubdivisionIdentifier" 
minOccurs="0"/>
  |                     <element ref="ebxml:PostCodeIdentifier" minOccurs="0"/>
  |             </sequence>
  |     </complexType>
  | 

When I deploy the application the following is written in the log:



  | 2007-04-19 14:58:25,881 ERROR 
[org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] 
JBossWS_rep.oio.dk_wmdata.dk_as2007_schemas_2006_11_20_29281.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve:
 Cannot resolve the name 'ebxml:PostCodeIdentifier' to a(n) 'element 
declaration' component.
  | 


It seems that it only reads the first import in the namespace as there are no 
problems with DistrictSubdivisionIdentifier. 

Even though it shows errors in the log it returns the elements as described 
though.

What am I doing wrong





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039137#4039137

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039137
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to