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)

          搜索

          最新評論

          主站蜘蛛池模板: 宝丰县| 油尖旺区| 西和县| 汝城县| 醴陵市| 芮城县| 锦屏县| 清徐县| 伊川县| 汶上县| 诸暨市| 三台县| 陵川县| 孝义市| 辽宁省| 阿拉善左旗| 南丰县| 东平县| 大同县| 都兰县| 甘泉县| 威信县| 即墨市| 迁西县| 当雄县| 秭归县| 海淀区| 湖南省| 寻乌县| 博乐市| 安福县| 高雄县| 长乐市| 迭部县| 寻乌县| 新津县| 宣威市| 闵行区| 普兰店市| 上犹县| 连城县|