未找到 WSO2 APIM 应用程序注册 urn:approve 操作

WSO2 APIM Application Registration urn:approve action not found

更新:我们重现了连接到 EI 6.1.1 业务流程模块的相同问题

我们正在尝试使用 BPS(版本 3.6.0)为 API 管理器(版本 2.1.0)实施应用程序注册(生成密钥)。

为此,我们按照中的说明进行操作 https://docs.wso2.com/display/AM210/Adding+an+Application+Registration+Workflow

我们还更正了包装内容中的错字,由 https://github.com/wso2/product-apim/pull/2730/files#diff-737be153055f194110665b96252dcebe

之前的工作流程 (ApplicationCreation) 工作正常,但是当我们在商店中单击 "GenerateKeys" 时,失败并在 BPS 中显示错误,表示操作 urn:approve 无效

TID: [-1234] [] [2018-06-20 21:11:32,909] DEBUG {org.wso2.carbon.bpel.messagetrace} -  Message received: ApplicationRegistrationWorkFlowProcess.{http://workflow.application.apimgt.carbon.wso2.org}initiate {org.wso2.carbon.bpel.messagetrace}
TID: [-1234] [] [2018-06-20 21:11:33,824]  WARN {org.apache.axis2.addressing.AddressingFaultsHelper} -  triggerActionNotSupportedFault: messageContext: [MessageContext: logID=11ff1a7f886692cdddf6394b6d5e88da06b8bac0e1095ec3] problemAction: urn:approve {org.apache.axis2.addressing.AddressingFaultsHelper}
TID: [-1234] [] [2018-06-20 21:11:33,830] ERROR {org.apache.axis2.engine.AxisEngine} -  The [action] cannot be processed at the receiver. {org.apache.axis2.engine.AxisEngine}
org.apache.axis2.AxisFault: The [action] cannot be processed at the receiver.

我们已经在 BPS carbon 控制台中检查了服务 ApplicationRegistrationWorkFlowProcess 是否已部署,并且 WSDL 1.1 端点已使用 soapAction=urn:approve.

进行部署

API 管理器(商店)中的端点,注册表 /_system/governance/apimgt/applicationdata/workflow-extensions.xml 中的工作流扩展被修改为

<SandboxApplicationRegistration executor="org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationWSWorkflowExecutor">
    <Property name="serviceEndpoint">http://apibps.example.com:9765/services/ApplicationRegistrationWorkFlowProcess/</Property>
    <Property name="username">admin</Property>
    <Property name="password">admin</Property>
    <Property name="callbackURL">https://apimanager.example.com:8243/services/WorkflowCallbackService</Property>
</SandboxApplicationRegistration>

我用 APIM 2.2.0、BPS 3.6.0 和 EI 6.2.0 进行了同样的测试。它运作良好。能否将workflow-extensions.xml中SandboxApplicationRegistration的callbackURL中的端口改成8248再试?