Skip to content

Instantly share code, notes, and snippets.

@edgars
Created September 7, 2016 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgars/181402dc06af3b842c56834cc06995f9 to your computer and use it in GitHub Desktop.
Save edgars/181402dc06af3b842c56834cc06995f9 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<api context="/os" name="OS" xmlns="http://ws.apache.org/ns/synapse">
<resource methods="POST" protocol="http" uri-template="/{country}/{id_ordem}">
<inSequence>
<property name="RESPONSE" value="true" scope="default"/>
<property name="NO_ENTITY_BODY" action="remove" scope="axis2"/>
<property name="HTTP_SC" value="401" scope="axis2"/>
<header name="To" action="remove"/>
<property name="ContentType" scope="axis2" type="STRING" value="text/xml"/>
<property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
<property
expression="fn:concat('Basic ', base64Encode('piportal_qa:Ga08zaon'))"
name="Authorization" scope="transport" type="STRING" xmlns:ns="http://org.apache.synapse/xsd"/>
<payloadFactory description="Payload Consulta OS" media-type="xml">
<format>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<con:MT_ConsultaOS_Out_Request xmlns:con="urn:WHIRLPOOL.CRM7/General/ConsultaDetalhesOS" xmlns="">
<COUNTRY>$1</COUNTRY><ID_ORDEM>$2</ID_ORDEM>
</con:MT_ConsultaOS_Out_Request></soapenv:Body>
</soapenv:Envelope>
</format>
<args>
<arg evaluator="xml" expression="$ctx:uri.var.country"/>
<arg evaluator="xml" expression="$ctx:uri.var.id_ordem"/>
</args>
</payloadFactory>
<log level="full"/>
<send>
<endpoint>
<http method="post" trace="disable" uri-template="https://webservicesq.whirlpool.com/larqpi/XISOAPAdapter/MessageServlet?channel=LAR_CRM7:BC_WHIRLPOOL_SOAP:CC_SoapSender_CRM7_ConsultaOS&amp;version=3.0&amp;Sender.Party=http%3A%2F%2Fsap.com%2Fxi%2FXI%3AXIParty%3ALAR_CRM7&amp;Sender.Service=BC_WHIRLPOOL_SOAP&amp;Interface=urn%3AWHIRLPOOL.CRM7%2FGeneral%2FConsultaDetalhesOS%5ESI_ConsultaOS_Sync_Out"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<send/>
</outSequence>
<faultSequence/>
</resource>
</api>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment