disableOffer

This operation disables an offer identified by an offerCode. In order to disable the offer it must be enabled, otherwise a controlled exception will be returned.


Request

WSDL Production URL

https://api.infojobs.[net|it|pt]/soap/WSOfferService?wsdl

WSDL Testing URL

https://api.infojobssbx.[net|it|pt]/soap/WSOfferService?wsdl

Security

  • User Role: ROLE_EMPLOYER

Parameters

Name Description

offerCode

String

Required

The string code that identifies the job offer.

Response

Response entity

The response will include a summary of the offer formed by the following fields.

Name Description

jobTitle

The title of the job offer

jobReference

Used by the company for classification purposes.

jobIndustryId

The job industry identifier.

offerCode

The job offer identifier

provinceId

The identifier of the job offer province

Error codes

Code Description

WS.1101

Invalid offer code. Null or empty string

WS.1102

The job offer code doesn't exist

WS.1103

The authenticated user doesn't have permission to edit the job offer

WS.1113

The offer has an insconsistent state. Is not disabled.

WS.1114

The offer is already disabled

Examples

Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:off="http://offer.endpoints.www.soap.infojobs.net/">
    <soapenv:Header>   
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-799830164" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>SOAP-TEST-CLIENT</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">SOAP-TEST-SECRET</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
       <ij:authnHeader xmlns:ij='http://api.infojobs.net/soap/authn'>
	       <token>20000000-0000-0000-ws</token>
	    </ij:authnHeader>
   </soapenv:Header>
   <soapenv:Body>
      <off:disableOffer>
      	<offerCode>f704e7bf9d47dea2c0ec8918b7ac42</offerCode>
      </off:disableOffer>
   </soapenv:Body>
</soapenv:Envelope

Response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header>
      <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
         <wsu:Timestamp wsu:Id="TS-5">
            <wsu:Created>2012-11-12T16:18:38.999Z</wsu:Created>
            <wsu:Expires>2012-11-12T16:23:38.999Z</wsu:Expires>
         </wsu:Timestamp>
      </wsse:Security>
   </soap:Header>
   <soap:Body>
      <ns1:disableOfferResponse xmlns:ns1="http://offer.endpoints.www.soap.infojobs.net/">
         <offerSummary>
            <jobIndustryId>10</jobIndustryId>
            <jobReference/>
            <jobTitle>offer simple</jobTitle>
            <offerCode>f704e7bf9d47dea2c0ec8918b7ac42</offerCode>
            <provinceId>7</provinceId>
         </offerSummary>
      </ns1:disableOfferResponse>
   </soap:Body>
</soap:Envelope>