2013-08-20 28 views
1

我有一個像這樣配置的web服務。cxf web服務通過jms,如何獲得wsdl

<jaxws:endpoint 
    id="helloWorld" 
    xmlns:hello="http://service.test.com/" 
    serviceName="hello:MyServiceImplService" 
    endpointName="hello:MyServiceImplPort" address="jms://" 
    implementor="com.test.service.MyServiceImpl" > 
     <jaxws:features>   
      <bean class="org.apache.cxf.feature.LoggingFeature" />  
      <bean class="org.apache.cxf.transport.jms.JMSConfigFeature"> 
       <property name="jmsConfig" ref="jmsConfig"/> 
      </bean> 
     </jaxws:features> 
    </jaxws:endpoint>` 

我想讓cxf爲我生成wsdl。當服務是http時,我可以通過像這樣的url從http://localhost:8080/server/hello?wsdl訪問wsdl,在我將交換機更改爲jms後,如何訪問wsdl?什麼是我需要發送到wsdl的jms消息。或者我必須先寫入wsdl並通過常規的http請求公開它。我問這是因爲客戶端需要知道wsdl以獲取所有類型和綁定信息以生成類。客戶端應該已經知道如何連接隊列。

回答