enableOffer
This operation enables an offer identified by an offerCode. In order to enable the offer, it must be either archived or expired. If the offer is expired, it will be treated as a renewal.
Request
WSDL Production URL
https://api.infojobs.[net|it]/soap/WSOfferService?wsdl
WSDL Testing URL
https://api.infojobssbx.[net|it]/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.1104 |
The authenticated user doesn't have the stocks necessary to enable the offer. |
WS.1108 |
This operation is not available for this type of offer. |
WS.1110 |
The offer is already enabled. |
WS.1111 |
The offer state is inconsistent. The offer has not been enabled. |
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>0000-0000-0000-0000</token> </ij:authnHeader> </soapenv:Header> <soapenv:Body> <off:enableOffer> <offerCode>1707832ca54d2481fd33abb190908d</offerCode> </off:enableOffer> </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-13"> <wsu:Created>2012-05-10T17:06:41.386Z</wsu:Created> <wsu:Expires>2012-05-10T17:11:41.386Z</wsu:Expires> </wsu:Timestamp> </wsse:Security> </soap:Header> <soap:Body> <ns1:enableOfferResponse xmlns:ns1="http://offer.endpoints.www.soap.infojobs.net/"> <offerSummary> <jobIndustryId>10</jobIndustryId> <jobReference/> <jobTitle>JOB OFFER TITLE</jobTitle> <offerCode>1707832ca54d2481fd33abb190908d</offerCode> <provinceId>8</provinceId> </offerSummary> </ns1:enableOfferResponse> </soap:Body> </soap:Envelope>