You are on page 1of 7

Installation Services SAP webservices request Response

1. Get list of installation services for given store number and language code.

Request uri :
http://eai-xi-
qa.homedepot.com/XISOAPAdapter/MessageServlet?channel=:QHDCA:Sender_SOAP_CAInstallServiceList

Request Payload :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:quot="http://homedepot.com/xi/SAM/Quote">
<soapenv:Header/>
<soapenv:Body>
<quot:MT_CAInstallServiceGetListRequest>
<!--Optional:-->
<LangCd>EN</LangCd>
<!--Optional:-->
<StoreNum>7080</StoreNum>
</quot:MT_CAInstallServiceGetListRequest>
</soapenv:Body>
</soapenv:Envelope>

Response :

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header/>
<SOAP:Body xmlns:quot="http://homedepot.com/xi/SAM/Quote">
<nm:MT_CAInstallServiceGetListResponse xmlns:nm="http://homedepot.com/xi/SAM/Quote"
xmlns:prx="urn:sap.com:proxy:QC7:/1SAI/TASBC18E0D10309C3A58C1C:731">
<Province>
<ProvinceNumber/>
<Store>
<StoreNumber>0000007080</StoreNumber>
<Service>
<Prog>1000100309</Prog>
<ProgDesc>A/H SFSIDING,SOFFIT,FASCIA,EAVES</ProgDesc>
<Active>1000100309</Active>
</Service>
<Service>
<Prog>1000165474</Prog>
<ProgDesc>DECKS</ProgDesc>
</Service>
</Store>
</Province>
<Province>
<ProvinceNumber>BC</ProvinceNumber>
<Store>
<StoreNumber>0000007080</StoreNumber>
<Service>
<Prog>1000129014</Prog>
<ProgDesc>SF&amp;I BATHROOM RENOVATIONS</ProgDesc>
<Active>1000129014</Active>
</Service>
</Store>
</Province>
<Province>
<ProvinceNumber>ON</ProvinceNumber>
<Store>
<StoreNumber>0000007080</StoreNumber>
<Service>
<Prog>1000100309</Prog>
<ProgDesc>A/H SFSIDING,SOFFIT,FASCIA,EAVES</ProgDesc>
<Active>1000100309</Active>
</Service>
<Service>
<Prog>1000129014</Prog>
<ProgDesc>Bathroom Renovations</ProgDesc>
<Active>1000129014</Active>
</Service>
<Service>
<Prog>1000165474</Prog>
<ProgDesc>SF&amp;I DECKS</ProgDesc>
<Active>1000165474</Active>
</Service>
<Service>
<Prog>1000404221</Prog>
<ProgDesc>SF&amp;I ROOFING SERVICES</ProgDesc>
<Active>NOT ACTIVE</Active>
</Service>
<Service>
<Prog>1000404222</Prog>
<ProgDesc>SF&amp;I SIDING,SOFFIT,FASCIA,EAVES</ProgDesc>
<Active>1000404222</Active>
</Service>
<Service>
<Prog>1000477465</Prog>
<ProgDesc>SF&amp;I DECORATING SERVICES</ProgDesc>
<Active>1000477465</Active>
</Service>
<Service>
<Prog>1000600021</Prog>
<ProgDesc>I/S NATIONAL CERAMIC TILE FLOORING</ProgDesc>
<Active>1000600021</Active>
</Service>
<Service>
<Prog>1000655860</Prog>
<ProgDesc>COLOUR CONSULTATION</ProgDesc>
<Active>1000655860</Active>
</Service>
<Service>
<Prog>1000663301</Prog>
<ProgDesc>SF&amp;I WINDOW</ProgDesc>
<Active>1000663301</Active>
</Service>
<Service>
<Prog>1000670129</Prog>
<ProgDesc>SF&amp;I WINDOW 15%</ProgDesc>
<Active>1000670129</Active>
</Service>
</Store>
</Province>
</nm:MT_CAInstallServiceGetListResponse>
</SOAP:Body>
</SOAP:Envelope>
2. Get survey questions (list of questions for given program id aka installation service and
language code)

Request URI :
http://eai-xi-
qa.homedepot.com/XISOAPAdapter/MessageServlet?channel=:QHDCA:Sender_SOAP_CAInstall
ServiceSurvey

Request Payload :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:quot="http://homedepot.com/xi/SAM/Quote">
<soapenv:Header/>
<soapenv:Body>
<quot:MT_CAInstallServiceGetSurveyRequest>
<!--Optional:-->
<Province>ON</Province>
<!--Optional:-->
<StoreNum>9763</StoreNum>
<!--Optional:-->
<Prog>1000100309</Prog>
<!--Optional:-->
<LangCd>EN</LangCd>
</quot:MT_CAInstallServiceGetSurveyRequest>
</soapenv:Body>
</soapenv:Envelope>

Response :

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header/>
<SOAP:Body xmlns:quot="http://homedepot.com/xi/SAM/Quote">
<nm:MT_CAInstallServiceGetSurveyResponse
xmlns:nm="http://homedepot.com/xi/SAM/Quote"
xmlns:prx="urn:sap.com:proxy:QC7:/1SAI/TAS0855261E0D3FB61AFAF9:731">
<SurveyXML><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?><Survey
SchemaVersion="1 " Language="EN" SurveyId="FLOORING"
SystemParamLocation="http://SurveyRep/CRM_SVY_DEFAULT_SYSTEMPARAM.XML"
StylesheetLocation="http://SurveyRep/CRM_SVY_OPP_WINLOSS.CSS"
svyApplicationId="CRM_SURVEY_LEAD" svySurveyId="FLOORING" svyVersion="0000000001"
svySchemaVersion="0000000002" svyLanguage="EN"><Title>Flooring</Title><Section
Pattern="List"><SectionText>This Service requires a measure that can be purchased at the store
and will be performed by a professional installer. No interest, no annual fees for 12 months.
Minimum payment is required. On any installed project ( product and labour ) purchase of $299
or more( including taxes ) when you use your Home Depot consumer credit
card&amp;#013;&amp;#010;</SectionText><Question QuestionId="q1" RatingFactor="1
"><QuestionText>Have you visited the store yet to inquire about this
service?&amp;#013;&amp;#010;</QuestionText><Answer AnswerId="a1" Style="RadioButton"
Type="SingleChoice" TextPosition="Right" ReadOnly="false" Mandatory="false" Size="40 "
MaxLength="40 " DataType=""><Item><ItemText>Yes</ItemText><Value Rating="1 "
Selected="true">id_80736c5076f7871fe1000000ac14480d</Value></Item><Item><ItemText>N
o</ItemText><Value Rating="0 "
Selected="false">id_86736c5076f7871fe1000000ac14480d</Value></Item></Answer></Questi
on><Question QuestionId="id_9a736c5076f7871fe1000000ac14480d" RatingFactor="0
"><QuestionText>How many room/hallways/sets of stairs would you like flooring install
in?&amp;#013;&amp;#010;</QuestionText><Answer
AnswerId="id_a5736c5076f7871fe1000000ac14480d" Style="RadioButton" Type="SingleChoice"
ReadOnly="false" Mandatory="false"><Item><ItemText>1</ItemText><Value Rating="0 "
Selected="true">id_b1736c5076f7871fe1000000ac14480d</Value></Item><Item><ItemText>2
</ItemText><Value Rating="0 "
Selected="false">id_bb736c5076f7871fe1000000ac14480d</Value></Item><Item><ItemText>3
+</ItemText><Value Rating="0 "
Selected="false">id_6c1d6c50b8402141e1000000ac14480d</Value></Item></Answer></Quest
ion><Question QuestionId="id_761d6c50b8402141e1000000ac14480d" RatingFactor="0
"><QuestionText>Is the floor surface ready for the new flooring or is there existing flooring you
would need us to remove and dispose of? &amp;#013;&amp;#010;Note: there will be a charge
for the removal and disposal of an existing
flooring&amp;#013;&amp;#010;&amp;#013;&amp;#010;&amp;#013;&amp;#010;</QuestionTe
xt><Answer AnswerId="id_ac1d6c50b8402141e1000000ac14480d" Style="RadioButton"
Type="SingleChoice" ReadOnly="false"
Mandatory="false"><Item><ItemText>Ready</ItemText><Value Rating="0 "
Selected="true">id_ae1d6c50b8402141e1000000ac14480d</Value></Item><Item><ItemText>
Not Ready</ItemText><Value Rating="0 "
Selected="false">id_c71d6c50b8402141e1000000ac14480d</Value></Item></Answer></Quest
ion><Question QuestionId="id_95756c5076f7871fe1000000ac14480d" RatingFactor="0
"><QuestionText>When is the best time to call you?</QuestionText><Answer
AnswerId="id_9d756c5076f7871fe1000000ac14480d" Style="RadioButton" Type="SingleChoice"
ReadOnly="false" Mandatory="false"><Item><ItemText>Morning</ItemText><Value Rating="0 "
Selected="true">id_9f756c5076f7871fe1000000ac14480d</Value></Item><Item><ItemText>Af
ternoon</ItemText><Value Rating="0 "
Selected="false">id_2c1e6c50b8402141e1000000ac14480d</Value></Item><Item><ItemText>
Evening</ItemText><Value Rating="0 "
Selected="false">id_3a1e6c50b8402141e1000000ac14480d</Value></Item><Item><ItemText>
Anytime</ItemText><Value Rating="0 "
Selected="false">id_67766c5076f7871fe1000000ac14480d</Value></Item></Answer></Questi
on><Event><Button><Submit
Command="SUBMIT">Save</Submit><Reset>Reset</Reset></Button></Event></Section></Sur
vey>]]></SurveyXML>
</nm:MT_CAInstallServiceGetSurveyResponse>
</SOAP:Body>
</SOAP:Envelope>

3. POST user details along with selected program and answers to given questions.

Request URI :
http://eai-xi-
qa.homedepot.com/XISOAPAdapter/MessageServlet?channel=:QHDCA:Sender_SOAP_CAInstall
ServiceQuote

Request Payload:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:quot="http://homedepot.com/xi/SAM/Quote">
<soapenv:Header/>
<soapenv:Body>
<quot:MT_CAInstallServiceQuoteRequest>
<StoreNum>9763</StoreNum>
<Prog>1000100309</Prog>
<LangCd>EN</LangCd>
<CustomerContact>
<!--Optional:-->
<Title>Plumbing services</Title>
<FirstName>John</FirstName>
<LastName>Peter</LastName>
<Address1>10 Hibberts Der</Address1>
<Address2></Address2>
<City>Scarborouggh</City>
<Province>ON</Province>
<PostalCode>M1K 1T9</PostalCode>
<PrimaryPhone></PrimaryPhone>
<!--Optional:-->
<PrimaryPhoneExt>?</PrimaryPhoneExt>
<!--Optional:-->
<WorkPhone>?</WorkPhone>
<!--Optional:-->
<WorkPhoneExt>?</WorkPhoneExt>
<!--Optional:-->
<CellPhone>?</CellPhone>
<!--Optional:-->
<Email>?</Email>
<!--Optional:-->
<EmailOptOut>?</EmailOptOut>
</CustomerContact>
<!--Optional:-->
<CustomerResponse>
<!--Zero or more repetitions:-->
<Question QuestionId="?">
<!--Zero or more repetitions:-->
<Answer AnswerId="?">
<!--Optional:-->
<Value>?</Value>
</Answer>
</Question>
</CustomerResponse>
<!--Optional:-->
<OrderNotes>?</OrderNotes>
<Origin>o</Origin>
</quot:MT_CAInstallServiceQuoteRequest>
</soapenv:Body>
</soapenv:Envelope>

Response:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header/>
<SOAP:Body xmlns:quot="http://homedepot.com/xi/SAM/Quote">
<nm:MT_CAInstallServiceQuoteResponse
xmlns:nm="http://homedepot.com/xi/SAM/Quote"
xmlns:prx="urn:sap.com:proxy:QC7:/1SAI/TAS2DA521476718CEEEEE5D:731">
<LeadId>0000003209</LeadId>
<CustomerReturnMessage/>
</nm:MT_CAInstallServiceQuoteResponse>
</SOAP:Body>
</SOAP:Envelope>

You might also like