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 劉錚 閱讀(2452) 評論(0)  編輯  收藏 所屬分類: Spring

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 玉山县| 天峨县| 亚东县| 响水县| 梅河口市| 历史| 芜湖市| 广东省| 辽源市| 福贡县| 宜兰县| 通州区| 浦城县| 保康县| 习水县| 库尔勒市| 稷山县| 辉南县| 清苑县| 浦东新区| 泰兴市| 行唐县| 明星| 米泉市| 邵东县| 克山县| 财经| 泌阳县| 阳原县| 沅陵县| 盱眙县| 富蕴县| 廉江市| 贵德县| 临海市| 临高县| 刚察县| 青铜峡市| 明水县| 鄱阳县| 黄石市|