spring webservice 對部署webservice的WSDL 的詳解
spring webservice 可以自動生成WSDL文件,<bean id="Hr"
class="org.springframework.ws.wsdl.wsdl11.DynamicWsdl11Definition">
<description>
This bean definition represents a WSDL definition that is
generated at runtime, based on the builder defined below. It
can be retrieved by going to /Hr/Hr.wsdl (i.e. the bean
name corresponds to the filename).
</description>
<property name="builder">
<description>
The builder creates a WSDL from the 'echo.xsd' schema.
It detects all elements that ends with 'Request', finds
corresponding 'Response' messages, and creates an
operation based on that. All operations are put in a
portType with name 'Echo', and binding and service are
created.
</description>
<bean
class="org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder">
<property name="schema" value="/WEB-INF/person.xsd" />
<property name="portTypeName" value="Info" />
<property name="locationUri"
value="http://localhost:8080/Hr/webservices" />
</bean>
</property>
</bean>
藍色表示eclipse中創建的根目錄也就是web的根目錄,只能為web的根目錄
紅色表示在根目錄下的子目錄中可以訪問到生成的WSDL文件的路徑,可以隨便取
綠色表示portType名字,可以隨便取
posted on 2008-01-03 17:55 劉錚 閱讀(2449) 評論(0) 編輯 收藏 所屬分類: Spring