The WSDL is valid. xmlspy should be able to load an inline-defined namespace.
On Mon, 07 Feb 2005 14:53:57 +0100, THIBAULT Joseph <[EMAIL PROTECTED]> wrote: > And this is the generated wsdl : > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions > targetNamespace="http://sr.services.accesservicessipsr" > xmlns:impl="http://sr.services.accesservicessipsr" > xmlns:intf="http://sr.services.accesservicessipsr" > xmlns:apachesoap="http://xml.apache.org/xml-soap" > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:tns2="http://exception.util.digor" > xmlns:tns1="http://securite.pfts" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> > <!--WSDL created by Apache Axis version: 1.2RC2 > Built on Nov 16, 2004 (12:19:44 EST)--> > <wsdl:types> > <schema xmlns="http://www.w3.org/2001/XMLSchema" > targetNamespace="http://sr.services.accesservicessipsr" > elementFormDefault="qualified"> > <import namespace="http://securite.pfts"/> > <import namespace="http://exception.util.digor"/> > <element name="pousserCreationIdentite"> > <complexType> > <sequence> > <element name="in0" type="tns1:InfosConnexion"/> > </sequence> > </complexType> > </element> > <element name="pousserCreationIdentiteResponse"> > <complexType/> > </element> > <element name="fault" type="tns2:DigorException"/> > </schema> > <schema xmlns="http://www.w3.org/2001/XMLSchema" > targetNamespace="http://securite.pfts" elementFormDefault="qualified"> > <import namespace="http://exception.util.digor"/> > <complexType name="InfosConnexion"> > <sequence> > <element name="PIdAppliAppelante" nillable="true" type="xsd:string"/> > <element name="PIdDomaineConnexion" nillable="true" type="xsd:string"/> > <element name="login" nillable="true" type="xsd:string"/> > <element name="password" nillable="true" type="xsd:string"/> > </sequence> > </complexType> > </schema> > <schema xmlns="http://www.w3.org/2001/XMLSchema" > targetNamespace="http://exception.util.digor" > elementFormDefault="qualified"> > <import namespace="http://securite.pfts"/> > <complexType name="DigorException"> > <sequence> > <element name="code" type="xsd:int"/> > <element name="composant" nillable="true" type="xsd:string"/> > <element name="message" nillable="true" type="xsd:string"/> > </sequence> > </complexType> > </schema> > </wsdl:types> > > <wsdl:message name="pousserCreationIdentiteResponse"> > > <wsdl:part name="parameters" > element="impl:pousserCreationIdentiteResponse"/> > > </wsdl:message> > > <wsdl:message name="pousserCreationIdentiteRequest"> > > <wsdl:part name="parameters" element="impl:pousserCreationIdentite"/> > > </wsdl:message> > > <wsdl:message name="DigorException"> > > <wsdl:part name="fault" element="impl:fault"/> > > </wsdl:message> > > <wsdl:portType name="AccesServicesRapprochement"> > > <wsdl:operation name="pousserCreationIdentite"> > > <wsdl:input name="pousserCreationIdentiteRequest" > message="impl:pousserCreationIdentiteRequest"/> > > <wsdl:output name="pousserCreationIdentiteResponse" > message="impl:pousserCreationIdentiteResponse"/> > > <wsdl:fault name="DigorException" message="impl:DigorException"/> > > </wsdl:operation> > > </wsdl:portType> > > <wsdl:binding name="srSoapBinding" > type="impl:AccesServicesRapprochement"> > > <wsdlsoap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > > <wsdl:operation name="pousserCreationIdentite"> > > <wsdlsoap:operation soapAction=""/> > > <wsdl:input name="pousserCreationIdentiteRequest"> > > <wsdlsoap:body use="literal"/> > > </wsdl:input> > > <wsdl:output name="pousserCreationIdentiteResponse"> > > <wsdlsoap:body use="literal"/> > > </wsdl:output> > > <wsdl:fault name="DigorException"> > > <wsdlsoap:fault name="DigorException" use="literal"/> > > </wsdl:fault> > > </wsdl:operation> > > </wsdl:binding> > > <wsdl:service name="AccesServicesRapprochementService"> > > <wsdl:port name="sr" binding="impl:srSoapBinding"> > > <wsdlsoap:address > location="http://192.93.37.188:8086/axis/services/sr"/> > > </wsdl:port> > > </wsdl:service> > > </wsdl:definitions> > > THIBAULT Joseph a écrit : > > > Hello, > > > > When I want to open a wsdl file generated by Axis into XMLSpy, I have > > the validation error "Unable to load schema with target namespace > > 'http://security.pfts'" on the elements definitions/types/schema/import. > > I don't know if it is related but when I generate the wsdl file with > > java2wsdl tool, I have the message "Please register a > > typemapping/beanmapping for 'digor.util.exception.DigorException'". I > > tried to add the line <mapping namespace="urn:exception.util.digor" > > package="digor.util.exception"/> in the ant task java2wsdl but I have > > the same message. > > > > I would like to know if this error is due to Axis that doesn't > > generate valid wsdl or XMLSpy that does't read well standard wsdl. > > > > Joseph > > >