Created
September 7, 2016 14:18
-
-
Save edgars/181402dc06af3b842c56834cc06995f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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&version=3.0&Sender.Party=http%3A%2F%2Fsap.com%2Fxi%2FXI%3AXIParty%3ALAR_CRM7&Sender.Service=BC_WHIRLPOOL_SOAP&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