`

Spring WS 未用过的

阅读更多
1.以一个wsdl文件的形式发布wsdl
<bean id="orders" class="org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition">
    <constructor-arg value="/WEB-INF/wsdl/Orders.wsdl"/>
</bean>

http://localhost:8080/spring-ws/orders.wsdl

-------------------------------------------------------------

2.将xsd文件分成多个部分写成多个xsd文件发布
If you want to use multiple schemas, either by includes or imports, you might want to use the CommonsXsdSchemaCollection, and refer to that from the DefaultWsdl11Definition, like so:

<bean id="schemaCollection" class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection">
    <description>
        This bean wrap the messages.xsd (which imports types.xsd), and inlines them as a one.
    </description>
    <property name="xsds">
        <list>
            <value>/WEB-INF/xsds/Orders.xsd</value>
            <value>/WEB-INF/xsds/Customers.xsd</value>
        </list>
    </property>
    <property name="inline" value="true"/>
</bean>

When the inline property is enabled, it follows all XSD imports and includes, and inlines them in the WSDL. This greatly simplifies the deloyment of the schemas, which still making it possible to edit them separately.
意思应该系orders.xsd里import左customers.xsd,customers内容可在xsd看到
-------------------------------------------------------------------
3.
soap协议除可建在http协议基础上还可以建在jms组件的邮件协议???
==不清楚
------------------------------------------------------------
4.
有默认的Validate和Fault生成  endpoint
------------------------------------------------------------

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics