Click here to Skip to main content
15,896,502 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi ,


I am Anusha from Tekys Lab. I am working on posting a job on monster test site through API. My deliveay method is "Post" in RTP with Apply with monster. when i pass xml file to your API. I got a response which is saying that "Apply with monster" is invalid.

I am using Monster test site credentials(UserName=xrtpjobsx01 , password=rtp987654 and APIKey=EAAQ33NexamplefAK9q4-)
My requirement is to call my service.
For example i have a service with url "http://122.175.44.38:8095:api/JobPosting/MonsterResponse?str="

I want to call this service when a candidate applies the job, I posted though Monster API. Where can I mention this url in the Job Posting XML.

But job is posting and saying that "Apply with monster element is invalid".


The Response is :


XML
<Status><ReturnCode returnCodeType="success">0</ReturnCode><Descriptions><Description descriptionType="warning">Video with ID [123] was not found. &#xd; ApplyWithMonster Element is invalid and will be ignored &#xd; Suitable Bold inventory was not found. Job was posted without Bold. &#xd; Suitable TwitterSingleCard inventory was not found. Job was posted without TwitterSingleCard. &#xd; </Description><Description descriptionType="info">Difference between submitted Job and active Job with the same JobRefCode was found in field [bold]. &#xd; Difference between submitted Job and active Job with the same JobRefCode was found in field [twitterSingleCard]. &#xd; Job updated. &#xd; Charges: 0 &#xd; </Description></Descriptions></Status>


my xml file is:

XML
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Header>
    <mh:MonsterHeader xmlns:mh="http://schemas.monster.com/MonsterHeader">
      <mh:MessageData>
        <mh:MessageId>Company Jobs created on 09/08/2011 02:41:44 PM</mh:MessageId>
        <mh:Timestamp>2011-09-08T14:41:44Z</mh:Timestamp>
      </mh:MessageData>
    </mh:MonsterHeader>
    <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">
      <wsse:UsernameToken>
        <wsse:Username>xrtpjobsx01</wsse:Username>
        <wsse:Password>rtp987654</wsse:Password>
      </wsse:UsernameToken>
    </wsse:Security>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <Job jobRefCode="TL130" jobAction="addOrUpdate" inventoryType="transactional" jobComplete="true" xmlns="http://schemas.monster.com/Monster" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.monster.com/Monster     http://schemas.monster.com/Current/xsd/Monster.xsd">
      <RecruiterReference>
        <UserName>xrtpjobsx01</UserName>
      </RecruiterReference>
      <JobInformation>
        <JobTitle>Jr.Software </JobTitle>
        <JobLevel monsterId="12" />
        <JobType monsterId="1" />
        <JobStatus monsterId="4" />
        <Salary>
          <Currency monsterId="1" />
          <SalaryMin>100000.00</SalaryMin>
          <SalaryMax>150000.00</SalaryMax>
          <CompensationType monsterId="1" />
        </Salary>
        <Contact hideAll="false" hideAddress="true" hideStreetAddress="true" hideCity="true" hideState="true" hidePostalCode="true" hideCountry="true" hideContactInfoField="false" hideCompanyName="false" hideEmailAddress="true" hideFax="true" hideName="false" hidePhone="true">
          <Name>Anusha</Name>
          <CompanyName>Tekys Lab</CompanyName>
          <Address>
            <StreetAddress>1 John Street</StreetAddress>
            <StreetAddress2>PO Box 1</StreetAddress2>
            <City>Johnstown</City>
            <State>PA</State>
            <CountryCode>US</CountryCode>
            <PostalCode>15955</PostalCode>
          </Address>
          <Phones>
            <Phone phoneType="work">999-999-9999</Phone>
          </Phones>
          <!--<E-mail>anusha.m@tekyslab.com</E-mail>-->
        </Contact>
        <PhysicalAddress>
          <StreetAddress>5 Clock Tower</StreetAddress>
          <StreetAddress2>Suite 500</StreetAddress2>
          <City>Maynard</City>
          <State>MA</State>
          <CountryCode>US</CountryCode>
          <PostalCode>01754</PostalCode>
        </PhysicalAddress>
        <DisableApplyOnline>false</DisableApplyOnline>
        <HideCompanyInfo>false</HideCompanyInfo>
        <JobBody> This job title is software. This is the Job Body that needs to be of certain length.
        This is more information about the Job.
        It should be detailed and well written to attract seekers.
        </JobBody>
       <CustomApplyOnlineURL>www.tekyslab.com</CustomApplyOnlineURL>
      <ApplyWithMonster>
        <DeliveryMethod monsterId="1" />
      <DeliveryFormat monsterId="2"/>
      <VendorText>a1b1234</VendorText>
        <PostURL>http://122.175.44.38:8094:api/JobPosting/continue?srcattr=</PostURL>
        <ApiKey>EAAQ33NexamplefAK9q4-</ApiKey>
      </ApplyWithMonster>
      </JobInformation>
      <JobPostings>
        <JobPosting desiredDuration="60" bold="true">
          <InventoryPreference>
            <Autorefresh desired="true">
              <Frequency>7</Frequency>
            </Autorefresh>
            <CareerAdNetwork desired="true">
              <Duration>14</Duration>
            </CareerAdNetwork>
            <TwitterSingleCard desired="true" />
            <SocialAdTwitter desired="true" />
          </InventoryPreference>
          <Location>
            <City>Boston</City>
            <State>MA</State>
            <CountryCode>US</CountryCode>
            <PostalCode>02125</PostalCode>
          </Location>
          <JobCategory monsterId="47" />
          <JobOccupations>
            <JobOccupation monsterId="11909" />
          </JobOccupations>
          <BoardName monsterId="178" />
          <DisplayTemplate monsterId="1" />
          <Industries>
            <Industry>
              <IndustryName monsterId="1" />
            </Industry>
          </Industries>
          <Video monsterId="123" refCode="video_A"></Video>
        </JobPosting>
      </JobPostings>
    </Job>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Please help me.
Posted
Updated 11-Sep-15 2:59am
v2
Comments
ZurdoDev 11-Sep-15 10:03am    
Why are you asking us? The error says you sent an invalid video id. Ask Monster what the problem is if you don't know.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900