Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
titlegetMessage
<facebook.getMessage>
	<messageId>{$ctx:messageId}</messageId>
    <fields>{$ctx:fields}</fields>
</facebook.getMessage> 
Properties

...

Code Block
languagehtml/xml
titleSample Proxy
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="facebook_getMessage"
	   transports="https,http"
	   statistics="disable"
	   trace="disable"
	   startOnLoad="true">
  <target>
    <inSequence onError="faultHandlerSeq">
      <property name="apiUrl" expression="json-eval($.apiUrl)"/>
      <property name="accessToken" expression="json-eval($.accessToken)"/>
	  <property name="fields" expression="json-eval($.fields)"/>
      <property name="messageId" expression="json-eval($.messageId)"/>
      <facebook.init>
		<apiUrl>{$ctx:apiUrl}</apiUrl>
		<accessToken>
        <apiVersion>{$ctx:accessTokenapiVersion}</accessToken>apiVersion>
		<fields><accessToken>{$ctx:fieldsaccessToken}</fields>accessToken>
	  </facebook.init>
      <facebook.getMessage>
        <messageId>{$ctx:messageId}</messageId>
		<fields>{$ctx:fields}</fields>
      </facebook.getMessage>
	  <respond/>
    </inSequence>
    <outSequence>
      <property name="messageType" value="application/json" scope="axis2" />
      <send/>
    </outSequence>
  </target>
</proxy>