-1
我有一個gsoap生成的web服務服務器。 Gsoap生成了描述web服務的WSDL文件。我想使用Eclipse的Web服務資源管理器來測試web服務。gsoap生成wsdl不能使用eclipse WebServices瀏覽器
WSDL裝載的第一階段通過,但會顯示一個錯誤:
IWAB0380E Errors were encountered while validating XML schemas.
XSD: The location '' has not been resolved because the import is unused
IWAB0381I file:\\\filepath.wsdl was successfully opened.
我可以看到在Web服務定義方法的列表,但是當我點擊其中一個,沒有選項完全填充或發送請求。
我從eclipse的工具中沒有更多的信息。我不知道wsdl的哪部分是錯的。如果有一部分wsdl可以幫助您找到問題,請告訴我。整個wsdl可在此處獲得:http://pastebin.com/GC1TgbTy
我對wsdl和soap沒有很好的瞭解。我猜想這個錯誤在定義和命名空間的某個地方,但我不知道在哪裏。這是wsdl的開始:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="isis_ws"
targetNamespace="urn:isis"
xmlns:tns="urn:isis"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:isis="urn:isis"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema targetNamespace="urn:isis"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:isis="urn:isis"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://www.w3.org/2003/05/soap-encoding"/>