为端点 。
集成医疗保健服务,第 2 部分(4)
时间:2012-04-24 IBM Bilal Siddiqui
您将发现在 清单 2 中显示的 Spring XML 配置文件与 下载 中 sample1 \RadiologyService\ 文件夹内的 xbean.xml 文件一样。
为 Radiology 应用程序编写 WSDL 文件
清单 3 显示 Radiology Department 应用程序的 WSDL 接口:
清单 3. Radiology Department 应用程序的 WSDL 接口
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions targetNamespace="http://hsb.com/" xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://hsb.com/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<xsd:schema>
<xsd:import namespace="http://hsb.com/"
schemaLocation="Radiology_schema1.xsd"/>
</xsd:schema>
</types>
<message name="performTest">
<part name="parameters" element="tns:performTest"/>
</message>
<message name="performTestResponse">
<part name="parameters" element="tns:performTestResponse"/>
</message>
<portType name="Radiology">
<operation name="performTest">
<input message="tns:performTest"/>
<output message="tns:performTestResponse"/>
</operation>
</portType>
</definitions>
清单 4 显示 Radiology Department 应用程序的 WSDL 绑定:
清单 4. Radiology Department 应用程序的 WSDL 绑定
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions targetNamespace="http://hsb.org/radiology-department"
name="RadiologyService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://hsb.org/radiology-department"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<import namespace="http://hsb.com/" location="Radiology.wsdl"/>
<binding name="RadiologyDepartmentPortBinding"
type="ns1:Radiology" xmlns:ns1="http://hsb.com/">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<operation name="performTest">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="RadiologyService">
<port name="RadiologyDepartmentPort"
binding="tns:RadiologyDepartmentPortBinding">
<soap:address location="http://loc
|