SOAP Connector queryParams

Tagged:
  • Michael
    Participant
      5 years, 7 months 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

      Kahn
      Moderator
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
      5 years, 7 months ago #17853
      Up
      0
      Down
      ::

      Try to change queryParams into soap 🙂

      Michael
      Participant
        5 years, 7 months ago #17856
        Up
        0
        Down
        ::

        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.

         

        Kahn
        Moderator
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
        5 years, 7 months ago #17857
        Up
        0
        Down
        ::

        Could you provide a transport with this connector

        Mathieu Roll
        Keymaster
          Has successfully completed the online course Introduction
          Has 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, 7 months ago #17858
        Up
        0
        Down
        ::

        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

        Michael
        Participant
          5 years, 7 months ago #17860
          Up
          0
          Down
          ::

          So you say the WSDL file is not correct? Unfortunately I can’t change it.

          The item tag ist still missing in the envelope.

          We just have to pass one item to the other System…

          Kahn
          Moderator
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
          5 years, 7 months ago #17861
          Up
          0
          Down
          ::

          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    someStringValue9999999

           

           

           

          Michael
          Participant
            5 years, 7 months ago #17864
            Up
            0
            Down
            ::

            Got it thanks very much!!

            Michael
            Participant
              5 years, 7 months ago #17865
              Up
              0
              Down
              ::

              celebrating to early..

              The call looks better but the target system won’t accept it because of the xml namespace.

              In need to remove the xml namespace in the parameters so that it looks like this:

              Kahn
              Moderator
                Has successfully completed the online course Introduction
                Has successfully completed the online course Intermediate (200)
                Has successfully completed the online course Advanced (300)
              5 years, 7 months ago #17874
              Up
              0
              Down
              ::

              Can you please perform a SOAP-Request via SOAP-UI  with your WSDL and paste the request and result.

              Michael
              Participant
                5 years, 7 months ago #17931
                Up
                0
                Down
                ::

                Michael
                Participant
                  5 years, 7 months ago #17932
                  Up
                  0
                  Down
                  ::

                  Michael
                  Participant
                    5 years, 7 months ago #17972
                    Up
                    0
                    Down
                    ::

                  Viewing 13 posts - 1 through 13 (of 13 total)

                  You must be logged in to reply to this topic.