New topic Closed topic
avatar image
1
Using handmade custom model with XML SOAP Request (Post)
By Created , last editted

Scenario

I have webform that has to post data. The POST endpoint of this form has an action with a HTTP Request event that triggers an external  SOAP XML Webservice. The endpoint of this web service will post the form data to store it in an external system.

Regarding the webform, I am using a hand made custom model. Let say it is called: 'cm1'. The field names of the web form are named like: cm1[property_name_of_custom_model]

On the HTTP Request Action Event I now have a lot of variables defined that retrieves data from the webform. For example:

  • Variable Name: first_name
  • Type: Text Expression
  • Value: var:cm1.firstname

The names of each the variables corresponds with the liquid tags in the web service endpoint template like for example {{first_name}}

I was wondering if it possible to by-pass the creation of specific HTTP Request template variables, by linking the custom model (cm1) directly to the Web service endpoint.

After that I assume that I am able to to use the cm1 property names directly in the web service Endpoint template. For example. {{firstname}}.

Will this work? Looking forward to your reply.


Scenario

I have webform that has to post data. The POST endpoint of this form has an action with a HTTP Request event that triggers an external  SOAP XML Webservice. The endpoint of this web service will post the form data to store it in an external system.

Regarding the webform, I am using a hand made custom model. Let say it is called: 'cm1'. The field names of the web form are named like: cm1[property_name_of_custom_model]

On the HTTP Request Action Event I now have a lot of variables defined that retrieves data from the webform. For example:

  • Variable Name: first_name
  • Type: Text Expression
  • Value: var:cm1.firstname

The names of each the variables corresponds with the liquid tags in the web service endpoint template like for example {{first_name}}

I was wondering if it possible to by-pass the creation of specific HTTP Request template variables, by linking the custom model (cm1) directly to the Web service endpoint.

After that I assume that I am able to to use the cm1 property names directly in the web service Endpoint template. For example. {{firstname}}.

Will this work? Looking forward to your reply.

Answers
Sort by:

This topic is closed.