2011-05-26 114 views
5

我有一個包含xsd的靜態wsdl。 xsd和wsdl位於相同的XML名稱空間中,因此包含xsd。soapUI - wsdl問題,包括xsd

<wsdl:types> 
    <xsd:schema targetNamespace="http://www.mycompany.com/idm"> 
     <xsd:include schemaLocation="idm-web-service.xsd"/> 
    </xsd:schema> 
</wsdl:types> 

當我嘗試創建一個項目的soapUI消耗thsi WSDL我得到....

Fri May 27 08:59:24 GMT+10:00 2011:ERROR:org.apache.xmlbeans.XmlException: error: Unexpected end of file after null 
    org.apache.xmlbeans.XmlException: error: Unexpected end of file after null 
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486) 
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276) 
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263) 
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) 
at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:722) 
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:107) 
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:526) 
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.selectDefinitionParts(SchemaUtils.java:556) 
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:538) 
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:515) 
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:97) 
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:221) 
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46) 
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:140) 
at java.lang.Thread.run(Unknown Source) 
    Caused by: org.xml.sax.SAXParseException: Unexpected end of file after null 
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038) 
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723) 
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454) 
... 14 more 

如果我改變了WSDL和粘貼WSDL內部的整個模式:類型元素,那麼的soapUI處理wsdl沒問題。

這是了SoapUI 3.6.1

是有一些問題與soapUI的消耗WSDL說,「包括」模式???

回答

8

問題是soapui不知道在哪裏找到模式文件。

模式文件是在當前目錄下,這樣的soapUI將目光從它被調用所在目錄....

如果WSDL是部署到服務器時,它會返回XSD的網址文件包括和soapui將能夠找到它....