AnsweredAssumed Answered

How to populate DTO parameters in SOAP call with Macro Expansion?

Question asked by pdapel on Jul 31, 2013
Latest reply on Sep 10, 2013 by pdapel
Edit: forgot to mention, ITPAM version is 4.1.0

I am trying to make a soap call to a 3rd-party web service, and push a bunch of key/value pairs to a single parameter (returned by the WSDL wizard). My other ITPAM web service functions are working fine, but this has me stumped. Since some of those key/value pairs consist of user-submitted data and predefined dataset variables, I want to use Macro Expansion to set those values. I'm having trouble getting the "Value" and "Type" entered correctly in the Dynamic Parameter dialog, so I'm looking for some guidance.

The parameter (from this 3rd-party SOAP call) is called "jobParams", and it is a DTO object consisting of multiple elements.

Using SOAP-UI, the XML for the soap body looks like this (summarized example) for what I need to push to that "jobParams" DTO parameter.
<jobParams>
    <actionRuntimeParamValues>
        <runtimeParams>
            <name>NameOfFirstVariable</name>
            <value>ValueOfFirstVariable</value>
        </runtimeParams>
    </actionRuntimeParamValues>
    <runtimeSpanValues>
        <spanName>ValueforThisVariable</spanName>
        <spanType>ValueforThisVariable</spanType>
    </runtimeSpanValues>
</jobParams>
Does anyone have an example of a properly formatted "String" or "XML Fragment" which would be appropriate to use in the Dynamic Parameter dialog box to expand the named macro from the WSDL?

Outcomes