Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created October 25, 2016 23:33
Show Gist options
  • Save steveosoule/efb18d85857051f784d13c102dde1507 to your computer and use it in GitHub Desktop.
Save steveosoule/efb18d85857051f784d13c102dde1507 to your computer and use it in GitHub Desktop.
Miva - mvt:call SOAP Request
<mvt:assign name="l.newline" value="asciichar(10)"/>
<mvt:assign name="l.headers" value="'SOAPAction: http://webservices.listrak.com/v31/SetContact' $ l.newline" />
<mvt:assign name="l.url" value="'https://webservices.listrak.com/v31/IntegrationService.asmx'" />
<mvt:assign name="l.soap_xml" value="trim('
<?xml version=\"1.0\"?>
<soap:Envelope
xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope/\"
soap:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\">
<soap:Body>
<m:GetPrice xmlns:m=\"http://www.w3schools.com/prices\">
<m:Item>Apples</m:Item>
</m:GetPrice>
</soap:Body>
</soap:Envelope>
')" />
<mvt:call action="l.url" method="'XML'" fields="'l.soap_xml'" headers="l.headers">
<mvt:eval expr="s.callvalue" />
</mvt:call>
<!-- @@ &mvt:global:MvCALL_Error; -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment