Nombradas
Click here for a complete list of operations.
registrarNombradas
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Servicios/Nombradas.asmx HTTP/1.1 Host: sccnlpservices-piloto.dirtrab.cl Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://sccnlp.com/registrarNombradas" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <UserCredentials xmlns="https://sccnlp.com/"> <userName>string</userName> <password>string</password> </UserCredentials> </soap:Header> <soap:Body> <registrarNombradas xmlns="https://sccnlp.com/"> <rutEmpresa>int</rutEmpresa> <nombradas> <Nombrada> <fechaInicioNombrada>dateTime</fechaInicioNombrada> <idPuerto>int</idPuerto> <idTurno>int</idTurno> <idNave>int</idNave> <idLocacion>int</idLocacion> <trabajadores> <TrabajadorNombrada xsi:nil="true" /> <TrabajadorNombrada xsi:nil="true" /> </trabajadores> </Nombrada> <Nombrada> <fechaInicioNombrada>dateTime</fechaInicioNombrada> <idPuerto>int</idPuerto> <idTurno>int</idTurno> <idNave>int</idNave> <idLocacion>int</idLocacion> <trabajadores> <TrabajadorNombrada xsi:nil="true" /> <TrabajadorNombrada xsi:nil="true" /> </trabajadores> </Nombrada> </nombradas> </registrarNombradas> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <registrarNombradasResponse xmlns="https://sccnlp.com/"> <registrarNombradasResult> <Estado>int</Estado> <Mensaje>string</Mensaje> <nombradaCreadaDetalle> <NombradaCreadaDetalle> <id>int</id> <error>string</error> <idEstado>int</idEstado> </NombradaCreadaDetalle> <NombradaCreadaDetalle> <id>int</id> <error>string</error> <idEstado>int</idEstado> </NombradaCreadaDetalle> </nombradaCreadaDetalle> </registrarNombradasResult> </registrarNombradasResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /Servicios/Nombradas.asmx HTTP/1.1 Host: sccnlpservices-piloto.dirtrab.cl Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <UserCredentials xmlns="https://sccnlp.com/"> <userName>string</userName> <password>string</password> </UserCredentials> </soap12:Header> <soap12:Body> <registrarNombradas xmlns="https://sccnlp.com/"> <rutEmpresa>int</rutEmpresa> <nombradas> <Nombrada> <fechaInicioNombrada>dateTime</fechaInicioNombrada> <idPuerto>int</idPuerto> <idTurno>int</idTurno> <idNave>int</idNave> <idLocacion>int</idLocacion> <trabajadores> <TrabajadorNombrada xsi:nil="true" /> <TrabajadorNombrada xsi:nil="true" /> </trabajadores> </Nombrada> <Nombrada> <fechaInicioNombrada>dateTime</fechaInicioNombrada> <idPuerto>int</idPuerto> <idTurno>int</idTurno> <idNave>int</idNave> <idLocacion>int</idLocacion> <trabajadores> <TrabajadorNombrada xsi:nil="true" /> <TrabajadorNombrada xsi:nil="true" /> </trabajadores> </Nombrada> </nombradas> </registrarNombradas> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <registrarNombradasResponse xmlns="https://sccnlp.com/"> <registrarNombradasResult> <Estado>int</Estado> <Mensaje>string</Mensaje> <nombradaCreadaDetalle> <NombradaCreadaDetalle> <id>int</id> <error>string</error> <idEstado>int</idEstado> </NombradaCreadaDetalle> <NombradaCreadaDetalle> <id>int</id> <error>string</error> <idEstado>int</idEstado> </NombradaCreadaDetalle> </nombradaCreadaDetalle> </registrarNombradasResult> </registrarNombradasResponse> </soap12:Body> </soap12:Envelope>