1

WSO2 GREG を使用してエンドポイントを作成し、それをレジストリから ESB ProxyService に追加しましたが、このサービスを試すと次のエラーが発生しました。

TID: [-1234] [] [2015-10-21 08:12:49,178]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  To: /services/TestProxyReg, MessageID: urn:uuid:a1c1994a-56b9-44e2-b567-f290a3411275, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Invalid endpoint configuration., Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body/></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
   name="TestProxyReg"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   <target endpoint="gov:/trunk/endpoints/ep-myUrl.wso2.services-test-testEndpoint">
      <outSequence>
         <log level="custom">
            <property name="text" value="A test"/>
         </log>
         <send/>
      </outSequence>
   </target>
   <description/>
</proxy>

ここで何が問題なのですか?

編集:

追加事項: G-Reg で作成されたエンドポイントが ESB サーバーと同じではないことに気付きました。たとえば、次のようになります。

G-Reg:

<metadata xmlns="http://www.wso2.org/governance/metadata">
  <overview>
  <name>testEndpoint</name>
  <version>1.0.0</version>
  <address>https://localhost:8245/services/test</address>
  </overview>
</metadata>

ESB では:

<?xml version="1.0" encoding="UTF-8"?>
<endpoint xmlns="http://ws.apache.org/ns/synapse" name="gov/testEndpointA">
   <address uri="localhost:9443/services/Persons_DataService/select_all_Persons_operation">
      <suspendOnFailure>
         <progressionFactor>1.0</progressionFactor>
      </suspendOnFailure>
      <markForSuspension>
         <retriesBeforeSuspension>0</retriesBeforeSuspension>
         <retryDelay>0</retryDelay>
      </markForSuspension>
   </address>
</endpoint>

このようなエラーが発生する理由はわかっていると思います - G-Reg を使用せずに、ESB 経由で必要なエンドポイントを作成する必要がありましたか?

4

1 に答える 1

1

WSO2 ESB 管理コンソールを使用してエンドポイントを作成し、ガバナンス レジストリに保存します。公式ドキュメントに従うことができます。ドキュメントに従ってエンドポイントを作成し、最後のステップとしてレジストリに保存します ([レジストリに保存] をクリックします)。

次に、そのエンドポイントをプロキシ サービスに参照させます。

于 2015-10-23T05:14:19.713 に答える