eraseOffer
This operation deletes an existing job offer.
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 entities
| Name | Description |
|---|---|
|
eraseResult |
Boolean value that represents the success of the operation |
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 |
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">TEST-CLIENT-SECRET</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<ij:authnHeader xmlns:ij='http://api.infojobs.net/soap/authn'>
<token>20000000-0000-0000-0000-0000</token>
</ij:authnHeader>
</soapenv:Header>
<soapenv:Body>
<off:eraseOffer>
<offerCode>179935d4674c1e9af2e3ec9597e86b</offerCode>
</off:eraseOffer>
</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-2">
<wsu:Created>2012-05-06T20:15:25.305Z</wsu:Created>
<wsu:Expires>2012-05-06T20:20:25.305Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<ns1:eraseOfferResponse xmlns:ns1="http://offer.endpoints.www.soap.infojobs.net/">
<eraseResult>true</eraseResult>
</ns1:eraseOfferResponse>
</soap:Body>
</soap:Envelope>
