顧客 (人々) が公開されたサービスを検索できるツールを提供する必要がありました。Governance Registry を使用しようとしていますが、正しい方法がわかりません。
2 に答える
2
これを行う最も簡単な方法は、WSO2 が提供する Java API を使用することです。この API を使用すると、レジストリを参照および検索できます。
Resource governanceFolder = registry.get("/_system/governance");
System.out.println("Folder description: " +
governanceFolder.getDescription());
// get the WSDL folder resource (use the url we browsed to)
String wsdlUrl = "/_system/governance/trunk/wsdls/_0/service_1" +
"/account/wsdl/trafficavoidance/accountService.wsdl";
Resource wsdlResource = registry.get(wsdlUrl);
// output the content of the wsdl
System.out.println(new String((byte[])wsdlResource
.getContent()));
List<Resource> paths = getServicePath(registry, "/_system/governance/trunk/services");
クライアントの構成とセットアップは少し難しいです。これについては、数週間前にブログ記事を書きました。したがって、さらに情報が必要な場合は、http ://www.smartjava.org/content/access-wso2-registry-programatically をご覧ください。
于 2012-05-22T06:32:18.547 に答える
0
次のリンクが役立つ場合があります -[1] https://docs.wso2.com/display/Governance460/CRUD+operation+support+for+Configurable+Governance+Artifacts -[2] https://docs.wso2.com/ display/Governance460/Configurable+Governance+Artifacts+with+API
于 2015-02-01T13:51:59.923 に答える