COA Validator Example Requests

Below are examples of REST request/response: 

 

Sample REST Request (no validation errors)
 https://gw-tst.its.yale.edu/rest/coavalidator?Company_Code=CO01&Yale_Designated_Code=YD000009&Cost_Center_Code=CC1386&Program_Code=PG01362 
Sample REST Response (no validation errors)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ser-root:validateCOAResponse xmlns:ser-root="esb/YaleWDFDM.ws:validateCOA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Transaction_Date>12/01/2016</Transaction_Date>
<Transaction_Date_Message>W004 - Current date assumed</Transaction_Date_Message>
<Company>CO01</Company>
<Company_Description>Yale University</Company_Description>
<Company_Message xsi:nil="true"/>
<Grant xsi:nil="true"/>
<Grant_Description xsi:nil="true"/>
<Grant_Message xsi:nil="true"/>
<Gift xsi:nil="true"/>
<Gift_Description xsi:nil="true"/>
<Gift_Message xsi:nil="true"/>
<Yale_Designated>YD000009</Yale_Designated>
<Yale_Designated_Description>Investment in Plant - unrestricted</Yale_Designated_Description>
<Yale_Designated_Message xsi:nil="true"/>
<Fund>FD12</Fund>
<Fund_Description>
FD12 Investment in Plant (assets, liabilities and funding)
</Fund_Description>
<Cost_Center>CC1386</Cost_Center>
<Cost_Center_Description>MEDFAC YSM Facilities</Cost_Center_Description>
<Cost_Center_Message xsi:nil="true"/>
<Program>PG01362</Program>
<Program_Description>Facilities Capital - Medicine</Program_Description>
<Program_Message xsi:nil="true"/>
<Project xsi:nil="true"/>
<Project_Description xsi:nil="true"/>
<Project_Message xsi:nil="true"/>
<Assignee xsi:nil="true"/>
<Assignee_Description xsi:nil="true"/>
<Assignee_Message xsi:nil="true"/>
<Location xsi:nil="true"/>
<Location_Description xsi:nil="true"/>
<Location_Message xsi:nil="true"/>
<Revenue_Category xsi:nil="true"/>
<Revenue_Category_Description xsi:nil="true"/>
<Revenue_Category_Message xsi:nil="true"/>
<Spend_Category xsi:nil="true"/>
<Spend_Category_Description xsi:nil="true"/>
<Spend_Category_Message xsi:nil="true"/>
<Ledger_Account xsi:nil="true"/>
<Ledger_Account_Description xsi:nil="true"/>
<Ledger_Account_Message xsi:nil="true"/>
<ErrorMessage/>
<ErrorMessageList xsi:nil="true"/>
<Number_Of_Errors>0</Number_Of_Errors>
<Number_Of_Warnings>1</Number_Of_Warnings>
</ser-root:validateCOAResponse>
</soapenv:Body>
</soapenv:Envelope>
 
Sample REST Request (with validation errors)
 https://gw-tst.its.yale.edu/rest/coavalidator?Company_Code=CO01
Sample REST Response (with validation errors)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ser-root:validateCOAResponse xmlns:ser-root="esb/YaleWDFDM.ws:validateCOA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Transaction_Date>12/01/2016</Transaction_Date>
<Transaction_Date_Message>W004 - Current date assumed</Transaction_Date_Message>
<Company xsi:nil="true"/>
<Company_Description xsi:nil="true"/>
<Company_Message xsi:nil="true"/>
<Grant xsi:nil="true"/>
<Grant_Description xsi:nil="true"/>
<Grant_Message xsi:nil="true"/>
<Gift xsi:nil="true"/>
<Gift_Description xsi:nil="true"/>
<Gift_Message xsi:nil="true"/>
<Yale_Designated xsi:nil="true"/>
<Yale_Designated_Description xsi:nil="true"/>
<Yale_Designated_Message xsi:nil="true"/>
<Fund xsi:nil="true"/>
<Fund_Description xsi:nil="true"/>
<Cost_Center xsi:nil="true"/>
<Cost_Center_Description xsi:nil="true"/>
<Cost_Center_Message xsi:nil="true"/>
<Program xsi:nil="true"/>
<Program_Description xsi:nil="true"/>
<Program_Message xsi:nil="true"/>
<Project xsi:nil="true"/>
<Project_Description xsi:nil="true"/>
<Project_Message xsi:nil="true"/>
<Assignee xsi:nil="true"/>
<Assignee_Description xsi:nil="true"/>
<Assignee_Message xsi:nil="true"/>
<Location xsi:nil="true"/>
<Location_Description xsi:nil="true"/>
<Location_Message xsi:nil="true"/>
<Revenue_Category xsi:nil="true"/>
<Revenue_Category_Description xsi:nil="true"/>
<Revenue_Category_Message xsi:nil="true"/>
<Spend_Category xsi:nil="true"/>
<Spend_Category_Description xsi:nil="true"/>
<Spend_Category_Message xsi:nil="true"/>
<Ledger_Account xsi:nil="true"/>
<Ledger_Account_Description xsi:nil="true"/>
<Ledger_Account_Message xsi:nil="true"/>
<ErrorMessage>
E010 - One of Yale Designated, Gift, Grant is required
</ErrorMessage>
<ErrorMessageList>
E010 - One of Yale Designated, Gift, Grant is required
</ErrorMessageList>
<Number_Of_Errors>1</Number_Of_Errors>
<Number_Of_Warnings>1</Number_Of_Warnings>
</ser-root:validateCOAResponse>
</soapenv:Body>
</soapenv:Envelope>
 

Below are examples of SOAP request/response:


Sample SOAP Request (no validation errors)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:yal="esb/YaleWDFDM.ws:validateCOA">
   <soapenv:Header/>
   <soapenv:Body>
      <yal:validateCOA>
         <Mode></Mode>
         <Transaction_Date></Transaction_Date>
         <Company_Code>CO01</Company_Code>
         <Grant_Code></Grant_Code>
         <Gift_Code>GE006415</Gift_Code>
         <Yale_Designated_Code></Yale_Designated_Code>
         <Cost_Center_Code>CC0835</Cost_Center_Code>
         <Program_Code>PG00041</Program_Code>
         <Project_Code></Project_Code>
         <Assignee_Code></Assignee_Code>
         <Location_Code></Location_Code>
         <Revenue_Category_Code></Revenue_Category_Code>
         <Spend_Category_Code>SC372</Spend_Category_Code>
         <Ledger_Account_Code></Ledger_Account_Code>
      </yal:validateCOA>
   </soapenv:Body>
</soapenv:Envelope>
 
Sample SOAP Response (no validation errors)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <ser-root:validateCOAResponse xmlns:ser-root="esb/YaleWDFDM.ws:validateCOA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <Transaction_Date>12/01/2016</Transaction_Date>
         <Transaction_Date_Message>W004 - Current date assumed</Transaction_Date_Message>
         <Company>CO01</Company>
         <Company_Description>Yale University</Company_Description>
         <Company_Message xsi:nil="true"/>
         <Grant xsi:nil="true"/>
         <Grant_Description xsi:nil="true"/>
         <Grant_Message xsi:nil="true"/>
         <Gift>GE006415</Gift>
         <Gift_Description>Dupuy Harry W &amp; Chas M #1 06415</Gift_Description>
         <Gift_Message xsi:nil="true"/>
         <Yale_Designated xsi:nil="true"/>
         <Yale_Designated_Description xsi:nil="true"/>
         <Yale_Designated_Message xsi:nil="true"/>
         <Fund xsi:nil="true"/>
         <Fund_Description xsi:nil="true"/>
         <Cost_Center>CC0835</Cost_Center>
         <Cost_Center_Description>MEDNEU Neurology - All</Cost_Center_Description>
         <Cost_Center_Message xsi:nil="true"/>
         <Program>PG00041</Program>
         <Program_Description>Clinical - Other Affiliated Hospital &amp; Contracts</Program_Description>
         <Program_Message xsi:nil="true"/>
         <Project xsi:nil="true"/>
         <Project_Description xsi:nil="true"/>
         <Project_Message xsi:nil="true"/>
         <Assignee xsi:nil="true"/>
         <Assignee_Description xsi:nil="true"/>
         <Assignee_Message xsi:nil="true"/>
         <Location xsi:nil="true"/>
         <Location_Description xsi:nil="true"/>
         <Location_Message xsi:nil="true"/>
         <Revenue_Category xsi:nil="true"/>
         <Revenue_Category_Description xsi:nil="true"/>
         <Revenue_Category_Message xsi:nil="true"/>
         <Spend_Category>SC372</Spend_Category>
         <Spend_Category_Description>Assessment Expense - Affil Hosp (SC372)</Spend_Category_Description>
         <Spend_Category_Message xsi:nil="true"/>
         <Ledger_Account xsi:nil="true"/>
         <Ledger_Account_Description xsi:nil="true"/>
         <Ledger_Account_Message xsi:nil="true"/>
         <ErrorMessage/>
         <ErrorMessageList xsi:nil="true"/>
         <Number_Of_Errors>0</Number_Of_Errors>
         <Number_Of_Warnings>1</Number_Of_Warnings>
      </ser-root:validateCOAResponse>
   </soapenv:Body>
</soapenv:Envelope>
 
Sample SOAP Request (with validation errors)
 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:yal="esb/YaleWDFDM.ws:validateCOA">
   <soapenv:Header/>
   <soapenv:Body>
      <yal:validateCOA>
         <Mode>?</Mode>
         <Transaction_Date>07/31/2016</Transaction_Date>
         <Company_Code>CO01</Company_Code>
         <Grant_Code>?</Grant_Code>
         <Gift_Code>GE006415</Gift_Code>
         <Yale_Designated_Code>?</Yale_Designated_Code>
         <Cost_Center_Code>CC0835a</Cost_Center_Code>
         <Program_Code>PG00041a</Program_Code>
         <Project_Code>?</Project_Code>
         <Assignee_Code>?</Assignee_Code>
         <Location_Code>?</Location_Code>
         <Revenue_Category_Code>?</Revenue_Category_Code>
         <Spend_Category_Code>SC372</Spend_Category_Code>
         <Ledger_Account_Code>?</Ledger_Account_Code>
      </yal:validateCOA>
   </soapenv:Body>
</soapenv:Envelope>
Sample SOAP Response (with validation errors)
 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <ser-root:validateCOAResponse xmlns:ser-root="esb/YaleWDFDM.ws:validateCOA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <Transaction_Date>07/31/2016</Transaction_Date>
         <Transaction_Date_Message xsi:nil="true"/>
         <Company xsi:nil="true"/>
         <Company_Description xsi:nil="true"/>
         <Company_Message xsi:nil="true"/>
         <Grant xsi:nil="true"/>
         <Grant_Description xsi:nil="true"/>
         <Grant_Message xsi:nil="true"/>
         <Gift xsi:nil="true"/>
         <Gift_Description xsi:nil="true"/>
         <Gift_Message xsi:nil="true"/>
         <Yale_Designated xsi:nil="true"/>
         <Yale_Designated_Description xsi:nil="true"/>
         <Yale_Designated_Message xsi:nil="true"/>
         <Fund xsi:nil="true"/>
         <Fund_Description xsi:nil="true"/>
         <Cost_Center xsi:nil="true"/>
         <Cost_Center_Description xsi:nil="true"/>
         <Cost_Center_Message xsi:nil="true"/>
         <Program xsi:nil="true"/>
         <Program_Description xsi:nil="true"/>
         <Program_Message xsi:nil="true"/>
         <Project xsi:nil="true"/>
         <Project_Description xsi:nil="true"/>
         <Project_Message xsi:nil="true"/>
         <Assignee xsi:nil="true"/>
         <Assignee_Description xsi:nil="true"/>
         <Assignee_Message xsi:nil="true"/>
         <Location xsi:nil="true"/>
         <Location_Description xsi:nil="true"/>
         <Location_Message xsi:nil="true"/>
         <Revenue_Category xsi:nil="true"/>
         <Revenue_Category_Description xsi:nil="true"/>
         <Revenue_Category_Message xsi:nil="true"/>
         <Spend_Category xsi:nil="true"/>
         <Spend_Category_Description xsi:nil="true"/>
         <Spend_Category_Message xsi:nil="true"/>
         <Ledger_Account xsi:nil="true"/>
         <Ledger_Account_Description xsi:nil="true"/>
         <Ledger_Account_Message xsi:nil="true"/>
         <ErrorMessage>E009 - Gift and Yale Designated are not allowed together
E012 - Only one of Revenue Category, Spend Category is required</ErrorMessage>
         <ErrorMessageList>E009 - Gift and Yale Designated are not allowed together
E012 - Only one of Revenue Category, Spend Category is required</ErrorMessageList>
         <Number_Of_Errors>1</Number_Of_Errors>
         <Number_Of_Warnings>0</Number_Of_Warnings>
      </ser-root:validateCOAResponse>
   </soapenv:Body>
</soapenv:Envelope>