2017-10-31 13 views
0

jbossヒューズサーバーで石鹸サービスを公開する必要があります。私がやるべきことは、既存の開発された石鹸サービスを複製することです。apache camel cxf - 変更ソープ:アドレスの場所

既存のブラウザURL: http://ip:8027/Services/Interface/WebServices/TestService.serviceagent?wsdl

既存のエンドポイントのURL:私の理解上記のブラウザのURLをブラウザでアクセスすることができ、WSDLを表示することができますによると http://ip:3456//Services/Interface/WebServices/Service.serviceagent/ChangeCustomerBasicEndpoint1

。 同様に、SOAP-UIのこのブラウザURLを使用してWSDLを取得し、エンドポイントURLをリクエストの送信先とすることができます。

enter image description here

私は、SOAPサービスを公開することができる午前私はSOAP-UIからのリクエストを送信したときに、次のコード

<?xml version="1.0" encoding="UTF-8"?> 
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" 
    xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 "> 
    <cxf:cxfEndpoint 
     address="http://ip:8027/Services/Interface/WebServices/TestService.serviceagent?wsdl" 
     id="testEndpoint" serviceClass="pk.com.test.app.TestService"> 

     <cxf:properties> 
      <entry key="publishedEndpointUrl" 
      value="http://ip:3456//Services/Interface/WebServices/Service.serviceagent/ChangeCustomerBasicEndpoint1"/> 
     </cxf:properties> 

    </cxf:cxfEndpoint> 

を使用してすべての事がポイントに、正常に動作しています。私の公開されたEndpointUrlが異なるポートとURLを持っているため、接続が拒否されました

これを処理する方法についてのヘルプはありますか?

答えて

1

publishedEndpointUrlは、常にcxf:cxfEndpointアドレス属性を上書きします。

とWSDLアドレスがpublishedEndpointUrl + "?WSDL"

+0

こんにちはフリーマン牙だろうが、私もそれに気づきました。 私がしようとしていることを達成する方法はありますか? –

関連する問題