Well,  that wsdl is definitely not valid.   If you look in the schemas:
<types>
<xsd:schema>
<xsd:import namespace="http://dcsf.gov.uk/ISPP/Webservice/encodedTypes"; 
schemaLocation="https://www.parentknowhowdirectory.org.uk/isppsoap/deposit?xsd=1";
 
/>
</xsd:schema>
<xsd:schema>
<xsd:import namespace="http://dcsf.gov.uk/ISPP/Webservice"; 
schemaLocation="https://www.parentknowhowdirectory.org.uk/isppsoap/deposit?xsd=1";
 
/>
</xsd:schema>
</types>


You see that its importing the SAME xsds, but with two different namespaces.   
That's definitely not going to work.  


Dan

On Friday 04 June 2010 9:35:03 am Lee Theobald wrote:
> Hi all,
> 
> I'm trying to generate some classes for a third party web service but not
> having much luck.  It appears that the WSDL is "invalid".  It's not
> fantastically formed by the looks of things but I don't think it's invalid.
> Does anyone know if there's anyway I can disable the validation for this
> WSDL?
> 
> The error message I am getting looks like the following:
> 
> Caused by: javax.wsdl.WSDLException: WSDLException (at /head):
> faultCode=INVALID_WSDL: Expected element
> '{http://schemas.xmlsoap.org/wsdl/}definitions'.
>         at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:2
> 30) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:17
> 9) at
> org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:91)
>         ... 104 more
> 
> 
> (full stack trace if needed:
> http://old.nabble.com/file/p28780040/fullstacktrace.txt fullstacktrace.txt
> )
> 
> The WSDL I'm trying to parse can be seen at:
> https://www.parentknowhowdirectory.org.uk/isppsoap/deposit/?wsdl
> https://www.parentknowhowdirectory.org.uk/isppsoap/deposit/?wsdl
> 
> I unfortunately have no control over the WSDL's contents so I cannot change
> it in anyway way so I need a way of getting a client to this service with
> the WSDL as is.
> 
> Cheers for any help,
> 
> Lee

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to