SOAP Connector queryParams
-
Michael5 years ago #17851
Hi,
I’m trying to create a SOAP Connector.
There is a section “Parameter” which can have multiple “item” entries. I try to create one “item” with a Name/Value pair but I can’t get the connector to fill it.
The WSDL looks like this:
My connector call look like this:
And the result Envelope looks like this.
ProcessId, Locale and AutoOpenUserTask were filled correctly but the item is missing.
Somebody got an idea? Thanks
Michael5 years ago #17856::that was my first try but It didn’t work…
I found this documentation: https://community.simplifier.io/documentation/connectors/soap-connector-details/soap-connector-calls/
That’s why I switched to queryParams.
Mathieu RollHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)5 years ago #17858::Hello,
the queryParams are not added to the xml structure so you have to change it to soap.
Edit: The queryParams are added to the Endpoint URL as Query Parameters.
But i can see another misstake in your parameters.
You sad that Parameters can have Multiple Items so the JSON should have this as a Array.
{ "Parameter": { "item": [ { "Name": "name", "Value": { "StringValue": "someStringValue" } } ] } }
And same for the Connector Call
soap/startProcess/processWebParameter/Parameter/item/[0]/Name
soap/startProcess/processWebParameter/Parameter/item/[0]/Value/StringValue
KahnHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)5 years ago #17861::The WSDL is correct, however item is a sequence, just look into the WSDL and you will see it.
If you define your array manually, like this
soap/startProcess/processWebParameter/Parameter/item/Name
then you have defined your parameter wrong. You can do the following two things:
1. Define your parameter by defining a data type
soap/startProcess/processWebParameter/Parameter/item and provide an appropriate data type or ANY if your structure is polymorphic.2. Define your parameter by defining each array element manually.
soap/startProcess/processWebParameter/Parameter/item[0]/Name myName
soap/startProcess/processWebParameter/Parameter/item[0]/Value/StringValue someStringValue
soap/startProcess/processWebParameter/Parameter/item[1]/Name myName2
soap/startProcess/processWebParameter/Parameter/item[1]/Value/StringValue someStringValue2
soap/startProcess/processWebParameter/Parameter/item[9999999]/Name myName9999999
soap/startProcess/processWebParameter/Parameter/item[9999999]/Value/StringValue someStringValue9999999KahnHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)
You must be logged in to reply to this topic.