2
votes

i have one problem when i try to publish an API on the wso's store. I have this message when i try to change the state of the API and publish it.

Products concerned

  • WSO2 Governance Registry
  • WSO2 Publisher
  • WSO2 Store

Error WSO 2 - API Publishing

Failed to invoke aspect: An exception occurred while executing handler chain. APIManager endpoint URL or credentials are not definedAPI Publish might fail

The lifecycle of the API is > Development > Testing > Production but i can't publish it on the store.

I'm using the version 5.0.1 of Governance Registry and i don't use the API Manager.

Anyone has had this error? Thanks for help in advance :)

1
Which version of API Manager you are using?Abimaran Kugathasan
I'm using the version 5.0.1 of WSO2Christophe
We don't have 5.0.1 in API Manager. Which product you are using?Abimaran Kugathasan
Oh yes sorry, mistake about the version of the product. I'm using Governance Registry in the version 5.0.1Christophe

1 Answers

1
votes

It seems that you are using WSO2 Greg 5.0.1 and its inbuilt publisher and store components. When you want to publish an API, you can not use Greg Store for that purpose since it is not an API store. By default, WSO2 Greg has the capability to publish to WSO2 APIManager by using following inbuilt executors described in here:

For Soap Services:

execution forEvent="Publish" class="org.wso2.carbon.governance.registry.extensions.executors.apistore.ServiceToAPIExecutor"

For Rest Services:

execution forEvent="Publish" class="org.wso2.carbon.governance.registry.extensions.executors.apistore.RestServiceToAPIExecutor"

If you have some external API Store, you have to write a custom executor for that and then you will be able to publish an API. Refer below links for further information on custom executors: