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

          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 水富县| 濮阳市| 屏东县| 榆林市| 舒兰市| 施甸县| 台东市| 阿坝| 莎车县| 临夏县| 任丘市| 清水县| 高陵县| 台山市| 本溪| 桂东县| 新昌县| 新平| 新闻| 全州县| 嫩江县| 凤山县| 辛集市| 卓尼县| 翼城县| 饶平县| 布尔津县| 哈尔滨市| 湖南省| 健康| 桦川县| 武陟县| 北流市| 东方市| 永寿县| 云南省| 南澳县| 连江县| 法库县| 手游| 仁寿县|