GithubHelp home page GithubHelp logo

campminder-rb's People

Contributors

dirkkelly avatar harpelly avatar jordanmaguire avatar nathanharper avatar ozzyaaron avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

campminder-rb's Issues

EstablishConnection XML is different from docs

This is the XML response we got from CampMinder from an EstablishConnection request

<responseObject version="1"><status>False</status><details>Invalid requesting
        host.</details></responseObject>

The docs had given the impression that the response would have a Success and Reason node; it looks like the responseObject more closely follows that of the responseObject we're supposed to generate for the ServerTimeGet response.

<responseObject version="1"> <status>True</status> <details>ServerTimeGet</details> <data>2011-04-13T17:15:49Z</data>
</responseObject>

StaffHire Response: Input string was not in a correct format.

The initial post of a StaffHire is returning a failure message, however it is still creating the record.

\nInput string was not in a correct format.\n\n

A follow up posts responds with success and a duplicate record notification within CampMinder.

lana-campminder

<?xml version="1.0" encoding="UTF-8"?>
<staffDataContainer version="1">
   <cmClientId>153</cmClientId>
   <token>56e6c17b-bc1e-4b90-9413-b602720eeb0a</token>
   <partnerClientId>6500</partnerClientId>
   <staffDataArray>
      <staffData version="1">
         <uniqueKey>4493</uniqueKey>
         <firstName>Lana</firstName>
         <lastName>Kane</lastName>
         <gender>0</gender>
         <dob>1996-03-11</dob>
         <birthPlace>SF</birthPlace>
         <citizenship>NZ</citizenship>
         <address1>Example</address1>
         <city>Wellington</city>
         <isStateProvinceRequired>true</isStateProvinceRequired>
         <stateProvince>Wellington</stateProvince>
         <isPostalCodeRequired>true</isPostalCodeRequired>
         <postalCode>6037</postalCode>
         <country>NZ</country>
         <email>[email protected]</email>
         <agencyMemberNumber>56696</agencyMemberNumber>
         <address2 />
         <middleInitial />
         <nickName />
         <nationalID />
         <licenseState />
         <licenseNumber />
         <permanentPhone>+64-2102246150</permanentPhone>
         <schoolPhone />
         <cellPhone />
         <workPhone />
         <otherPhone />
         <email2 />
         <hireDate>2015-02-05 15:46:25</hireDate>
         <occupationYearAtSchool />
         <employmentStartDate>2015-05-20</employmentStartDate>
         <employmentEndDate>2015-05-22</employmentEndDate>
         <school />
         <schoolAddress1 />
         <schoolAddress2 />
         <schoolCity />
         <schoolState />
         <schoolPostalCode />
         <schoolCountry />
         <major />
         <springBreak />
         <summerBreak />
         <graduationDate />
         <extracurricularActivities />
         <career />
         <maritalStatus>4</maritalStatus>
         <baseSalary>$1,650</baseSalary>
         <agencyFee>$750</agencyFee>
         <specialTerms />
         <arrestRecord />
         <duiRecord />
         <childAbuseRecord />
         <smoking>false</smoking>
         <smallCraftAbility />
         <cprExpiration />
         <firstAidExpiration />
         <lifeguardExpiration />
         <wsiExpiration />
         <height />
         <weight />
         <wildernessEMTExpiration />
         <ropesExpiration />
         <canoeingExpiration />
         <sailingExpiration />
         <militaryExperience />
         <foreignLanguages>English</foreignLanguages>
         <musicalInstruments />
      </staffData>
   </staffDataArray>
</staffDataContainer>

Exception, including the signed payload (from the exception request)

CampMinder::StaffHireException #<CampMinder::StaffHire:0x007fd1b656e430 @client_id="153", @token="56e6c17b-bc1e-4b90-9413-b602720eeb0a", @partner_client_id="6500", @unique_key="4493", @first_name="Lana", @last_name="Kane", @email="[email protected]", @gender="0", @dob="1996-03-11", @birth_place="SF", @citizenship="NZ", @address1="Example", @city="Wellington", @state_province="Wellington", @postal_code="6037", @country="NZ", @permanent_phone="+64-2102246150", @agency_member_number="56696", @hire_date="2015-02-05 15:46:25", @employment_start_date="2015-05-20", @employment_end_date="2015-05-22", @marital_status="4", @base_salary="$1,650", @agency_fee="$750", @smoking="false", @foreign_languages="English", @middle_initial=nil, @address2=nil, @nick_name=nil, @national_id=nil, @license_state=nil, @license_number=nil, @school_phone=nil, @cell_phone=nil, @work_phone=nil, @other_phone=nil, @email2=nil, @occupation_year_at_school=nil, @school=nil, @school_address1=nil, @school_address2=nil, @school_city=nil, @school_state=nil, @school_postal_code=nil, @school_country=nil, @major=nil, @spring_break=nil, @summer_break=nil, @graduation_date=nil, @extracurricular_activities=nil, @career=nil, @special_terms=nil, @arrest_record=nil, @dui_record=nil, @child_abuse_record=nil, @small_craft_ability=nil, @cpr_expiration=nil, @first_aid_expiration=nil, @lifeguard_expiration=nil, @wsi_expiration=nil, @height=nil, @weight=nil, @wilderness_emt_expiration=nil, @ropes_expiration=nil, @canoeing_expiration=nil, @sailing_expiration=nil, @military_experience=nil, @musical_instruments=nil, @failure_details="\nInput string was not in a correct format.\n\n", @payload="<staffDataContainer version=\"1\">\n  <cmClientId>153</cmClientId>\n  <token>56e6c17b-bc1e-4b90-9413-b602720eeb0a</token>\n  <partnerClientId>6500</partnerClientId>\n  <staffDataArray>\n    <staffData version=\"1\">\n      <uniqueKey>4493</uniqueKey>\n      <firstName>Lana</firstName>\n      <lastName>Kane</lastName>\n      <gender>0</gender>\n      <dob>1996-03-11</dob>\n      <birthPlace>SF</birthPlace>\n      <citizenship>NZ</citizenship>\n      <address1>Example</address1>\n      <city>Wellington</city>\n      <isStateProvinceRequired>true</isStateProvinceRequired>\n      <stateProvince>Wellington</stateProvince>\n      <isPostalCodeRequired>true</isPostalCodeRequired>\n      <postalCode>6037</postalCode>\n      <country>NZ</country>\n      <email>[email protected]</email>\n      <agencyMemberNumber>56696</agencyMemberNumber>\n      <address2/>\n      <middleInitial/>\n      <nickName/>\n      <nationalID/>\n      <licenseState/>\n      <licenseNumber/>\n      <permanentPhone>+64-2102246150</permanentPhone>\n      <schoolPhone/>\n      <cellPhone/>\n      <workPhone/>\n      <otherPhone/>\n      <email2/>\n      <hireDate>2015-02-05 15:46:25</hireDate>\n      <occupationYearAtSchool/>\n      <employmentStartDate>2015-05-20</employmentStartDate>\n      <employmentEndDate>2015-05-22</employmentEndDate>\n      <school/>\n      <schoolAddress1/>\n      <schoolAddress2/>\n      <schoolCity/>\n      <schoolState/>\n      <schoolPostalCode/>\n      <schoolCountry/>\n      <major/>\n      <springBreak/>\n      <summerBreak/>\n      <graduationDate/>\n      <extracurricularActivities/>\n      <career/>\n      <maritalStatus>4</maritalStatus>\n      <baseSalary>$1,650</baseSalary>\n      <agencyFee>$750</agencyFee>\n      <specialTerms/>\n      <arrestRecord/>\n      <duiRecord/>\n      <childAbuseRecord/>\n      <smoking>false</smoking>\n      <smallCraftAbility/>\n      <cprExpiration/>\n      <firstAidExpiration/>\n      <lifeguardExpiration/>\n      <wsiExpiration/>\n      <height/>\n      <weight/>\n      <wildernessEMTExpiration/>\n      <ropesExpiration/>\n      <canoeingExpiration/>\n      <sailingExpiration/>\n      <militaryExperience/>\n      <foreignLanguages>English</foreignLanguages>\n      <musicalInstruments/>\n    </staffData>\n  </staffDataArray>\n</staffDataContainer>\n", @signed_object="21MOb9pc9dnpJg4FQArZyCYyYAN9p9B6vwcXa1fEEyk.PHN0YWZmRGF0YUNvbnRhaW5lciB2ZXJzaW9uPSIxIj4KICA8Y21DbGllbnRJZD4xNTM8L2NtQ2xpZW50SWQ-CiAgPHRva2VuPjU2ZTZjMTdiLWJjMWUtNGI5MC05NDEzLWI2MDI3MjBlZWIwYTwvdG9rZW4-CiAgPHBhcnRuZXJDbGllbnRJZD42NTAwPC9wYXJ0bmVyQ2xpZW50SWQ-CiAgPHN0YWZmRGF0YUFycmF5PgogICAgPHN0YWZmRGF0YSB2ZXJzaW9uPSIxIj4KICAgICAgPHVuaXF1ZUtleT40NDkzPC91bmlxdWVLZXk-CiAgICAgIDxmaXJzdE5hbWU-TGFuYTwvZmlyc3ROYW1lPgogICAgICA8bGFzdE5hbWU-S2FuZTwvbGFzdE5hbWU-CiAgICAgIDxnZW5kZXI-MDwvZ2VuZGVyPgogICAgICA8ZG9iPjE5OTYtMDMtMTE8L2RvYj4KICAgICAgPGJpcnRoUGxhY2U-U0Y8L2JpcnRoUGxhY2U-CiAgICAgIDxjaXRpemVuc2hpcD5OWjwvY2l0aXplbnNoaXA-CiAgICAgIDxhZGRyZXNzMT5FeGFtcGxlPC9hZGRyZXNzMT4KICAgICAgPGNpdHk-V2VsbGluZ3RvbjwvY2l0eT4KICAgICAgPGlzU3RhdGVQcm92aW5jZVJlcXVpcmVkPnRydWU8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gICAgIDxtdXNpY2FsSW5zdHJ1bWVudHMvPgogICAgPC9zdGFmZkRhdGE-CiAgPC9zdGFmZkRhdGFBcnJheT4KPC9zdGFmZkRhdGFDb250YWluZXI-Cg">

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.