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>


          藍(lán)色表示eclipse中創(chuàng)建的根目錄也就是web的根目錄,只能為web的根目錄
          紅色表示在根目錄下的子目錄中可以訪問到生成的WSDL文件的路徑,可以隨便取
          綠色表示portType名字,可以隨便取

          posted on 2008-01-03 17:55 劉錚 閱讀(2449) 評論(0)  編輯  收藏 所屬分類: Spring

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

          導(dǎo)航

          統(tǒng)計(jì)

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 玛曲县| 黄梅县| 阳城县| 调兵山市| 新宾| 安乡县| 南溪县| 香港 | 辛集市| 吴桥县| 东海县| 确山县| 安岳县| 剑阁县| 习水县| 张家港市| 四平市| 赤峰市| 永清县| 化隆| 偃师市| 乌拉特前旗| 萝北县| 景洪市| 卢氏县| 营口市| 灵武市| 冀州市| 永泰县| 永善县| 鲜城| 凭祥市| 花莲县| 集贤县| 石首市| 耿马| 墨玉县| 囊谦县| 奉节县| 资中县| 胶州市|