使用WSDL的Azure Logic App自定义连接器SOAP终结点

问题描述

我正在使用需要为其创建自定义连接器的Logic App。此连接器取决于Web服务,我正在尝试使用wsdl定义为其添加。

Add connector

现在,如果我提供该URL,则它需要身份验证,而我无法通过此UI提供该身份验证。我可以看到在逻辑应用程序中使用它时可以提供参数。但是,它无法提取服务,因此无法为连接器创建定义

Auth Credentials parameters

我尝试下载wsdl并将其添加为文件,但是该架构具有xs import标记,因此其再次失败。根据{{​​3}},我无法将其替换为实际的架构。

import json
import boto3
s3 = boto3.client('s3')

def lambda_handler(event,context):
    # TODO implement

    # print("hanlder:event")
    # print(event)
    # bucketDump()
    setBucketPolicy(bucketDump())


def bucketDump():
    ##This program lists all exsisting buckets within an aws account (Tommy's Personal Account)
    response = s3.list_buckets()

    buckets = []
    for bucket in response['Buckets']:
            value = bucket["Name"]
            buckets.append(value)
    return buckets

##setting a bucket policy
def setBucketPolicy(buckets):
    for bucket in buckets:
        value = s3.get_bucket_logging(bucket)
        print(value)


        ##TODO if bucket in buckets does not have loggin enabled,enable it!

        # print(bucket)

有没有一种方法不需要手动提供自定义连接器定义并使其使用wsdl进行工作,因为它包含许多端点,并且手动添加所有操作和触发器将太多。另外,如果将来在这种情况下需要的话,也对我有帮助

解决方法

如果可以通过Internet访问服务,则可以尝试这样做,然后从Azure逻辑应用程序通过HTTP或HTTPS调用服务终结点。本文将帮助您详细遵循以下步骤:https://docs.microsoft.com/en-us/azure/connectors/connectors-native-http

如果无法通过Internet访问,则本文将帮助您逐步进行操作:https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-gateway-connection

在可以从逻辑应用访问内部数据源之前,需要在本地计算机上安装本地数据网关之后创建Azure资源。然后,您的逻辑应用程序将在Azure连接器提供的本地连接器提供的触发器和操作中使用此Azure网关资源。

enter image description here

还要检查this

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...