Skip to content

Instantly share code, notes, and snippets.

<customer_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="customer_advice_instruction_tag">
<id>FRCUST</id>
</instruction>
</instructions>
<key>
<guid>customer_guid</guid>
</key>
</customer_advice_request>
<customer_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="customer_advice_instruction_suspend"></instruction>
</instructions>
<key>
<guid>customer_guid</guid>
</key>
</customer_advice_request>
<customer_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="customer_advice_instruction_alert">
<description>Example Event</description>
<source>Location of event source</source>
</instruction>
</instructions>
<key>
<guid>customer_guid</guid>
</key>
<?xml version='1.0' encoding='UTF-8'?>
<order_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="order_advice_instruction_approve"></instruction>
</instructions>
<key>
<guid>order_guid</guid>
</key>
</order_advice_request>
<?xml version='1.0' encoding='UTF-8'?>
<order_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="order_advice_instruction_resume"></instruction>
</instructions>
<key>
<guid>order_guid</guid>
</key>
</order_advice_request>
<?xml version='1.0' encoding='UTF-8'?>
<order_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="order_advice_instruction_transaction">
<transactions>
<transaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1" i:type="order_advice_instruction_transaction_cancel_item">
<key>
<id>item_id</id>
</key>
<reason>
<?xml version='1.0' encoding='UTF-8'?>
<shipping_order_advice_request xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction xmlns="urn:demandware.com:bf:api:core:v1" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="shipping_order_advice_instruction_cancel_item">
<key>
<id>item_id</id>
</key>
<quantity>qty</quantity>
<reason>reason</reason>
<suppress_order_suspension>false</suppress_order_suspension>
<shipping_order_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="shipping_order_advice_instruction_approve" /></instruction>
</instructions>
<key>
<guid>shipping_order_guid</guid>
</key>
</shipping_order_advice_request>
NameVirtualHost *:80
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 1.minutes)
cache.fetch('CLIENT_ID') do
client = Savon.client(wsdl: 'http://service.example.com?wsdl')
client.body
end