具有自定义类型的SOAP到REST连接器 [英] SOAP to REST connector with custom type

查看:81
本文介绍了具有自定义类型的SOAP到REST连接器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我试图实施的飞行员SOAP连接器作为Logic Apps中的自定义连接器。 Autotask的Web服务(https://webservices4.autotask.net/atservices/1.5/atws.wsdl) 
用于从系统中检索产品信息。 SOAP-to-REST连接器似乎不支持自定义/指定的值类型,因为这些值在逻辑应用程序设计器中不可用。


< span lang ="EN-US"style ="font-size:10pt; font-family:Arial,sans-serif; color:#001a3d">  执行查询以检索产品信息时,返回以下(原始)响应


 < ?xml version =" 1.0" encoding =" utf-8"?>


< soap:Envelope xmlns:soap =" http://schemas.xmlsoap.org/soap/envelope/"的xmlns:的xsi = QUOT; HTTP://www.w3.org/2001/XMLSchema-instance" xmlns:xsd =" http://www.w3.org/2001/XMLSchema">


    < soap:Body>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < queryResponse xmlns =" http://autotask.net/ATWS/v1_5/">


            < queryResult>


                < ReturnCode> 1< / ReturnCode>


                < EntityResults>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < Entity xsi:type =" Product">


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP; < id> 1< / id>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP; < UserDefinedFields />


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < Name xsi:type =" xsd:string"> Equipment< / Name>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; <描述xsi:type =" xsd:string"
/>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < SKU xsi:type =" xsd:string"
/>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < Link xsi:type =" xsd:string"
/>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < ExternalProductID xsi:type =" xsd:string"
/>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < VendorProductNumber xsi:type =" xsd:string"
/>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < ManufacturerName xsi:type =" xsd:string"
/>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < ManufacturerProductName xsi:type =" xsd:string"
/>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < Active xsi:type =" xsd:boolean"> true< / Active>


                 &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < PeriodType xsi:type =" xsd:string"> One-Time< / PeriodType>


                &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < ProductAllocationCodeID xsi:type =" xsd:int"> 29682839< / ProductAllocationCodeID>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < Serialized xsi:type =" xsd:boolean"> false< / Serialized>


                 &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < CostAllocationCodeID xsi:type =" xsd:int"> 29682839< / CostAllocationCodeID>


                 &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < DoesNotRequireProcurement xsi:type =" xsd:boolean"> false< / DoesNotRequireProcurement>


                        < InternalProductID xsi:type =" ; XSD:串QUOT;
/>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < / Entity>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < / EntityResults>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < / queryResult>


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < / queryResponse>


&NBSP;&NBSP;&NBSP; < / soap:Body>


< / soap:Envelope>


当尝试使用'实体'中的信息时,逻辑应用程序设计器中根本不提供'实体':  


有没有办法在逻辑应用程序中提供这些值,或者这是对当前版本的SOAP-to-REST连接器的限制?


Remco

解决方案

Remco,你有没有得到任何地方是什么?


我们正在尝试这样做,通过Logic Apps访问Autotask API。


干杯,


Max


For a pilot I’m trying to implement a SOAP connector as custom connector within Logic Apps. The webservice of Autotask (https://webservices4.autotask.net/atservices/1.5/atws.wsdl)  is used to retrieve product information from the system. The SOAP-to-REST connector doesn’t seem to support custom / specified value-types though, since these values aren’t available in the logic apps designer.

 When performing a query to retrieve product information the following (raw) response is returned:

 <?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <soap:Body>

        <queryResponse xmlns="http://autotask.net/ATWS/v1_5/">

            <queryResult>

                <ReturnCode>1</ReturnCode>

                <EntityResults>

                    <Entity xsi:type="Product">

                        <id>1</id>

                        <UserDefinedFields />

                        <Name xsi:type="xsd:string">Equipment</Name>

                        <Description xsi:type="xsd:string" />

                        <SKU xsi:type="xsd:string" />

                        <Link xsi:type="xsd:string" />

                        <ExternalProductID xsi:type="xsd:string" />

                        <VendorProductNumber xsi:type="xsd:string" />

                        <ManufacturerName xsi:type="xsd:string" />

                        <ManufacturerProductName xsi:type="xsd:string" />

                        <Active xsi:type="xsd:boolean">true</Active>

                        <PeriodType xsi:type="xsd:string">One-Time</PeriodType>

                        <ProductAllocationCodeID xsi:type="xsd:int">29682839</ProductAllocationCodeID>

                        <Serialized xsi:type="xsd:boolean">false</Serialized>

                        <CostAllocationCodeID xsi:type="xsd:int">29682839</CostAllocationCodeID>

                        <DoesNotRequireProcurement xsi:type="xsd:boolean">false</DoesNotRequireProcurement>

                        <InternalProductID xsi:type="xsd:string" />

                    </Entity>

                </EntityResults>

            </queryResult>

        </queryResponse>

    </soap:Body>

</soap:Envelope>

When trying to use the information within an ‘Entity’, the ‘Entity’ isn’t available at all in the logic apps designer: 

Is there a way to have these values available within logic apps or is this a restriction of the current version of the SOAP-to-REST connector?

Remco

解决方案

Remco, did you get anywhere with that?

We are trying to do the same, access Autotask API via Logic Apps.

Cheers,

Max


这篇关于具有自定义类型的SOAP到REST连接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆