1.使用soapui检查wsdl符合wsi(attachment pic)
2.wsi test tools
1)下载from http://www.ws-i.org/Testing/Tools/2005/06/WSI_Test_Java_Final_1.1.zip,解压到c盘
2)配置环境变量,在path里添加:
C:\wsi-test-tools\java\bin;
3)修改配置文件:
eg.wsdl的配置文件(myConfig.xml):
<wsi-analyzerConfig:configuration name="Sample Basic Profile Analyzer Configuration"
xmlns:wsi-analyzerConfig="http://www.ws-i.org/testing/2004/07/analyzerConfig/">
<wsi-analyzerConfig:description>
This file contains a sample of the configuration file for
the Basic Profile Analyzer, which can be used with the
other sample files.
</wsi-analyzerConfig:description>
<wsi-analyzerConfig:verbose>false</wsi-analyzerConfig:verbose>
<wsi-analyzerConfig:assertionResults type="all" messageEntry="true" failureMessage="true"/>
<wsi-analyzerConfig:reportFile replace="true" location="report.xml">
<wsi-analyzerConfig:addStyleSheet href="c:/wsi-test-tools/common/xsl/report.xsl" type="text/xsl"/>
</wsi-analyzerConfig:reportFile>
<wsi-analyzerConfig:testAssertionsFile>
c:/wsi-test-tools/common/profiles/BasicProfile_1.1_TAD.xml
</wsi-analyzerConfig:testAssertionsFile>
<wsi-analyzerConfig:logFile correlationType="endpoint">
c:/wsi-test-tools/java/samples/log.xml
</wsi-analyzerConfig:logFile>
<wsi-analyzerConfig:wsdlReference>
<wsi-analyzerConfig:wsdlElement type="binding"
namespace="http://services.test.esb.talend.org/Standard">
localhostBinding
</wsi-analyzerConfig:wsdlElement>
<wsi-analyzerConfig:wsdlURI>
c:/StandardTestService.wsdl
</wsi-analyzerConfig:wsdlURI>
</wsi-analyzerConfig:wsdlReference>
</wsi-analyzerConfig:configuration>
5)执行Analyzer:
C:\wsi-test-tools\java\samples>analyzer -config c:/myConfig.xml
6)用ie浏览器打开:C:\wsi-test-tools\java\samples\report.xml
能看到详细报告
点ID可以查看详细信息
参考资料:
http://www.oracle.com/technetwork/developer-tools/jdev/wsi-howto-091316.html#wsdl
http://samir.kherzi.free.fr/publications/How%20to%20check%20that%20a%20WSDL%20is%20WS-I%20BP.pdf
http://www.ibm.com/developerworks/cn/webservices/ws-wsitest/