IT 1
Testing Tool Port Testing Tools V1.0 User Guide 2
Testing Tool Testing Tools V1.0 User Guide 3
Demo Java Testing Tools SOAP ab cd Monitor Sample SampleWSI ab+ +cd WS-I Testing Tools 1.0 Final log. xml Analyzer http://www.ws-i.org/implementation.aspx Java 2 SE Ver.1.4.2_03 Axis Release 1.1 Apache Tomcat 5.0.19 Basic Profile report. xml 4
How to use Testing Tools (1) Testing Tools WS-I Testing Tools - Final http://www.ws-i.org/implementation.aspx 5
How to use Testing Tools (2) 6
Monitor listen ex) http://localhost:9090/helloworld.jws Web ex) http://localhost:8080/helloworld.jws Web WSDL URL ex) http://localhost:8080/helloworld.jws?wsdl Web UDDI 7
ex) c: wsi-test-tools java bin ex) c: wsi-test-tools java samples ex) C: wsi-test-tools java sample Basic Profile ex) http://www.ws-i.org/profiles/basic/2003-08/basicprofile-1.0a-ja.html 8
Monitor Tool Monitor 9
Monitor Tool Monitor 10
Analyzer Tool WSDL 11
Analyzer Tool Analyzer 12
Analyzer Tool Analyzer Web 13
Basic Profile Test Assertion Document ex) c: wsi-test-tools common docs BasicProfile-1.0a-ja.html ex) http://www.ws-i.org/profiles/basicprofile-1.0.html 14
c: wsi-test-tools java bin WSI_HOME ex) set WSI_HOME=c: wsi-test-tools Monitor monitor config../samples/monitorconfig.xml Web Motnior Analyzer analyzer config../samples/analyzerconfig.xml Comformance Report c: wsi-test-tools java samples report.xml IE 15
MonitorConfig <wsi-monconfig:maninthemiddle> <wsi-monconfig:redirect> <wsi-monconfig:comment>sample App on port 8080.</wsi-monConfig:comment> <wsi-monconfig:listenport>4040</wsi-monconfig:listenport> <wsi-monconfig:schemeandhostport>http://localhost:8080</wsi-monconfig:schemeandhostport> <wsi-monconfig:maxconnections>1000</wsi-monconfig:maxconnections> <wsi-monconfig:readtimeoutseconds>15</wsi-monconfig:readtimeoutseconds> </wsi-monconfig:redirect> </wsi-monconfig:maninthemiddle> Monitor localhost:4040 Server localhost:8080 Monitor exit Log 16
AnalyzerConfig <wsi-analyzerconfig:testassertionsfile>../common/profiles/basicprofiletestassertions.xml </wsi-analyzerconfig:testassertionsfile> <wsi-analyzerconfig:logfile correlationtype="endpoint"> log.xml </wsi-analyzerconfig:logfile> <wsi-analyzerconfig:wsdlreference> <wsi-analyzerconfig:wsdlelement type="port" parentelementname="sampleserviceservice" namespace="http://localhost:8080/wsi/services/sample"> Sample </wsi-analyzerconfig:wsdlelement> <wsi-analyzerconfig:wsdluri> http://localhost:8080/wsi/services/sample?wsdl </wsi-analyzerconfig:wsdluri> </wsi-analyzerconfig:wsdlreference> Analyzer Monitor Log WSDL port Sample WSDL 17
MonitorLog AnalyzerReport 18
AXIS Log Request <?xml version="1.0" encoding="utf-8"?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <soapenv:body> <ns1:getmessage soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://services.wsi_demo.beacon_it.co.jp"> <username xsi:type="xsd:string"> </username> </ns1:getmessage> </soapenv:body></soapenv:envelope> Response soap:encodingstyle (MUST NOT) ns1 NameSpace WSDL <?xml version="1.0" encoding="utf-8"?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <soapenv:body> <ns1:getmessageresponse soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://services.wsi_demo.beacon_it.co.jp"> <ns1:getmessagereturn xsi:type="xsd:string">[2004-32-20 16:04:02]: jp.co.beacon_it.wsi_demo.services.sampleservice </ns1:getmessagereturn> </ns1:getmessageresponse> </soapenv:body></soapenv:envelope> 19
(AnalyzerConfig) Analyzer BP Report passedcolor green failedcolor red warningcolor orange notapplicablecolor blue missinginputcolor brown 20
Analyzer Report BP TestAssertions BasicProfile 21
WS-I BP Log Request <?xml version="1.0" encoding="utf-8"?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <soapenv:body> <getmessage xmlns="http://www.beacon-it.co.jp/schema/wsi/demo/"> <username xmlns=""> </username> </getmessage> </soapenv:body></soapenv:envelope> Response <?xml version="1.0" encoding="utf-8"?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <soapenv:body> <getmessageresponse xmlns="http://www.beacon-it.co.jp/schema/wsi/demo/"> <getmessagereturn xmlns="">[2004-34-20 16:04:49]: jp.co.beacon_it.wsi_demo.services.sampleservice </getmessagereturn> </getmessageresponse> </soapenv:body></soapenv:envelope> 22
Test pass AnalyzerReport Result passed Passed 23
Deployment Descriptor Sample <service name="sample" provider="java:rpc" > <parameter name="classname" value="jp.co.beacon_it.wsi_demo.services.sampleservice"/> <parameter name="allowedmethods" value="getmessage"/> </service> SampleWSI <service name="samplewsi" provider="java:rpc" style="rpc" use="literal"> <parameter name="wsdltargetnamespace" value="http://www.beacon-it.co.jp/schema/wsi/demo/"/> <parameter name="classname" value="jp.co.beacon_it.wsi_demo.services.sampleservice"/> <parameter name="allowedmethods" value="getmessage"/> <operation name="getmessage" qname="getmessage" returnqname="getmessagereturn" returntype="xsd:string" xmlns:xsd="http://www.w3.org/2001/xmlschema" > <parameter name="username" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/xmlschema"/> </operation> </service> Operation NameSpace 24
WSDL Sample - <wsdl:operation name="getmessage"> <wsdlsoap:operation soapaction="" /> - <wsdl:input name="getmessagerequest"> <wsdlsoap:body encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.wsi_demo.beacon_it.co.jp" use="encoded" /> </wsdl:input> - <wsdl:output name="getmessageresponse"> <wsdlsoap:body encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://127.0.0.1:8080/wsi/services/sample" use="encoded" /> </wsdl:output> </wsdl:operation> soap:encodingstyl e SampleWSI - <wsdl:operation name="getmessage"> <wsdlsoap:operation soapaction="" /> - <wsdl:input name="getmessagerequest"> <wsdlsoap:body namespace="http://www.beacon-it.co.jp/schema/wsi/demo/" use="literal" /> </wsdl:input> - <wsdl:output name="getmessageresponse"> <wsdlsoap:body namespace="http://www.beacon-it.co.jp/schema/wsi/demo/" use="literal" /> </wsdl:output> </wsdl:operation> Basic Profile literal 25