Está en la página 1de 15

TECSERVIN CIA. LTDA.

Manual WFC service

Contenido
Descripción del servicio ................................................................................................................................ 1
Web Service: TransferService ...................................................................................................... 1
Port BasicHttpBinding_ITransferService .......................................................................... 1
Operaciones .............................................................................................................................................. 2
InsertAsegurado .................................................................................................................................... 2
InsertBroker .......................................................................................................................................... 3
InsertContratante ................................................................................................................................. 4
InsertNegativaSiniestros ....................................................................................................................... 5
InsertOrdenPago ................................................................................................................................... 7
InsertPoliza............................................................................................................................................ 8
InsertSiniestro ..................................................................................................................................... 10
Instalación del WCF service ....................................................................................................................... 13

Descripción del servicio

Web Service: TransferService


Target Namespace: http://tempuri.org/

Port BasicHttpBinding_ITransferService
Location: http://10.10.42.20 /TransferService.svc
Protocol:
SOAP (No se a colocado template de json o xml sobre SOAP para no hacerlo más lento)
Transport protocol:
SOAP over HTTP
Operations:

1. InsertAsegurado
2. InsertBroker

Página 1 de 20
TECSERVIN CIA. LTDA. Manual WFC service

3. InsertContratante
4. InsertNegativaSiniestros
5. InsertOrdenPago
6. InsertPoliza
7. InsertSiniestro
8. UploadFile

Operaciones

InsertAsegurado

Insertar asegurados. En el anexo se encuentran los códigos para los TIPOS.

Operation type:
Request-response. The endpoint receives a message, and sends a correlated message.
SOAP action:
http://tempuri.org/ITransferService/InsertAsegurado
Input:
ITransferService_InsertAsegurado_InputMessage (soap:body, use = literal)Source code
parameters type InsertAsegurado

▪ aseguradoInfo - optional, nillable; type Asegurado


▪ CiRuc - nillable; type string
▪ Nombre - nillable; type string
▪ Tipo - nillable; type string

Output:
ITransferService_InsertAsegurado_OutputMessage (soap:body, use = literal)Source code
parameters type InsertAseguradoResponse

▪ InsertAseguradoResult - optional, nillable; type string

Ejemplo de uso:

Página 2 de 20
TECSERVIN CIA. LTDA. Manual WFC service

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/" xmlns:ns="http://schemas.datacontract.org/2004/07/">

<soapenv:Header/>

<soapenv:Body>

<tem:InsertAsegurado>

<!--Optional:-->

<tem:aseguradoInfo>

<ns:CiRuc>1709731591</ns:CiRuc>

<ns:Nombre>yo yo</ns:Nombre>

<ns:Tipo>CEDULA</ns:Tipo>

</tem:aseguradoInfo>

</tem:InsertAsegurado>

</soapenv:Body>

</soapenv:Envelope>

InsertBroker

Operation type:
Request-response. The endpoint receives a message, and sends a correlated message.
SOAP action:
http://tempuri.org/ITransferService/InsertBroker
Input:
ITransferService_InsertBroker_InputMessage (soap:body, use = literal)Source code
parameters type InsertBroker

▪ brokerInfo - optional, nillable; type Broker


▪ CiRuc - nillable; type string
▪ Nombre - nillable; type string
▪ Tipo - nillable; type string

Output:
ITransferService_InsertBroker_OutputMessage (soap:body, use = literal)Source code
parameters type InsertBrokerResponse

Página 3 de 20
TECSERVIN CIA. LTDA. Manual WFC service

▪ InsertBrokerResult - optional, nillable; type string

Ejemplo de Uso

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/" xmlns:ns="http://schemas.datacontract.org/2004/07/">

<soapenv:Header/>

<soapenv:Body>

<tem:InsertBroker>

<!--Optional:-->

<tem:brokerInfo>

<ns:CiRuc>1709731591</ns:CiRuc>

<ns:Nombre>uo yo</ns:Nombre>

<ns:Tipo>CEDULA</ns:Tipo>

</tem:brokerInfo>

</tem:InsertBroker>

</soapenv:Body>

</soapenv:Envelope>

InsertContratante

Operation type:
Request-response. The endpoint receives a message, and sends a correlated message.
SOAP action:
http://tempuri.org/ITransferService/InsertContratante
Input:
ITransferService_InsertContratante_InputMessage (soap:body, use = literal)Source code
parameters type InsertContratante

▪ contratanteInfo - optional, nillable; type Contratante

Página 4 de 20
TECSERVIN CIA. LTDA. Manual WFC service

▪ CiRuc - nillable; type string


▪ Nombre - nillable; type string
▪ Tipo - nillable; type string

Output:
ITransferService_InsertContratante_OutputMessage (soap:body, use = literal)Source code
parameters type InsertContratanteResponse

▪ InsertContratanteResult - optional, nillable; type string

Ejemplo de uso

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/" xmlns:ns="http://schemas.datacontract.org/2004/07/">

<soapenv:Header/>

<soapenv:Body>

<tem:InsertContratante>

<!--Optional:-->

<tem:contratanteInfo>

<ns:CiRuc>1709735291?</ns:CiRuc>

<ns:Nombre>yop yo</ns:Nombre>

<ns:Tipo>CEDULA</ns:Tipo>

</tem:contratanteInfo>

</tem:InsertContratante>

</soapenv:Body>

</soapenv:Envelope>

InsertNegativaSiniestros

Operation type:

Página 5 de 20
TECSERVIN CIA. LTDA. Manual WFC service

Request-response. The endpoint receives a message, and sends a correlated message.


SOAP action:
http://tempuri.org/ITransferService/InsertNegativaSiniestros
Input:
ITransferService_InsertNegativaSiniestros_InputMessage (soap:body, use = literal)Source code
parameters type InsertNegativaSiniestros

▪ negativaSiniestroInfo - optional, nillable; type NegativaSiniestros


▪ Estado - nillable; type string
▪ Fecha - nillable; type string
▪ Poliza - nillable; type string
▪ Sucursal - nillable; type string
▪ Ticket - nillable; type string

Output:
ITransferService_InsertNegativaSiniestros_OutputMessage (soap:body, use = literal)Source code
parameters type InsertNegativaSiniestrosResponse

▪ InsertNegativaSiniestrosResult - optional, nillable; type string

Ejemplo de uso

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/" xmlns:ns="http://schemas.datacontract.org/2004/07/">

<soapenv:Header/>

<soapenv:Body>

<tem:InsertNegativaSiniestros>

<!--Optional:-->

<tem:negativaSiniestroInfo>

<ns:Estado>1</ns:Estado>

<ns:Fecha>2020-06-30</ns:Fecha>

<ns:Poliza>POLIZA 999666999-0</ns:Poliza>

<ns:Sucursal>CUENCA</ns:Sucursal>

<ns:Ticket>4578</ns:Ticket>

</tem:negativaSiniestroInfo>

</tem:InsertNegativaSiniestros>

</soapenv:Body>

Página 6 de 20
TECSERVIN CIA. LTDA. Manual WFC service

</soapenv:Envelope>

InsertOrdenPago

Operation type:
Request-response. The endpoint receives a message, and sends a correlated message.
SOAP action:
http://tempuri.org/ITransferService/InsertOrdenPago
Input:
ITransferService_InsertOrdenPago_InputMessage (soap:body, use = literal)Source code
parameters type InsertOrdenPago

▪ ordenPagoInfo - optional, nillable; type OrdenPago


▪ Beneficiario - nillable; type string
▪ Estado - nillable; type string
▪ Fecha - nillable; type string
▪ NumeroCheque - nillable; type string
▪ NumeroOrdenPago - nillable; type string
▪ Tipo - nillable; type string

Output:
ITransferService_InsertOrdenPago_OutputMessage (soap:body, use = literal)Source code
parameters type InsertOrdenPagoResponse

▪ InsertOrdenPagoResult - optional, nillable; type string

Ejemplo:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/" xmlns:ns="http://schemas.datacontract.org/2004/07/">

<soapenv:Header/>

<soapenv:Body>

<tem:InsertOrdenPago>

<!--Optional:-->

<tem:ordenPagoInfo>

<ns:Beneficiario>1791273486001 EQUIVIDA COMPAÑIA DE SEGUROS S.A.</ns:Beneficiario>

Página 7 de 20
TECSERVIN CIA. LTDA. Manual WFC service

<ns:Estado>1</ns:Estado>

<ns:Fecha>2020-09-20</ns:Fecha>

<ns:NumeroCheque>456678</ns:NumeroCheque>

<ns:NumeroOrdenPago>666558813</ns:NumeroOrdenPago>

<ns:Tipo>1</ns:Tipo>

</tem:ordenPagoInfo>

</tem:InsertOrdenPago>

</soapenv:Body>

</soapenv:Envelope>

InsertPoliza

Operation type:
Request-response. The endpoint receives a message, and sends a correlated message.
SOAP action:
http://tempuri.org/ITransferService/InsertPoliza
Input:
ITransferService_InsertPoliza_InputMessage (soap:body, use = literal)Source code
parameters type InsertPoliza

▪ polizaInfo - optional, nillable; type Poliza


▪ Asegurado - nillable; type string
▪ Broker - nillable; type string
▪ CodigoRamo - nillable; type string
▪ Contratante - nillable; type string
▪ Endoso - nillable; type string
▪ Estado - nillable; type string
▪ EstadoPoliza - nillable; type string
▪ FechaEmision - nillable; type string
▪ MotivoMovimiento - nillable; type string
▪ NumeroPoliza - nillable; type string
▪ Ramo - nillable; type string
▪ Sucursal - nillable; type string
▪ TipoMovimiento - nillable; type string
▪ TipoPoliza - nillable; type string

Output:

Página 8 de 20
TECSERVIN CIA. LTDA. Manual WFC service

ITransferService_InsertPoliza_OutputMessage (soap:body, use = literal)Source code


parameters type InsertPolizaResponse

▪ InsertPolizaResult - optional, nillable; type string

Ejemplo

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/" xmlns:ns="http://schemas.datacontract.org/2004/07/">

<soapenv:Header/>

<soapenv:Body>

<tem:InsertPoliza>

<!--Optional:-->

<tem:polizaInfo>

<ns:Asegurado>1709731591</ns:Asegurado>

<ns:Broker>1709731591</ns:Broker>

<ns:CodigoRamo>55</ns:CodigoRamo>

<ns:Contratante>1709735291</ns:Contratante>

<ns:Endoso>0</ns:Endoso>

<ns:Estado>1</ns:Estado>

<ns:EstadoPoliza>VIGENTE</ns:EstadoPoliza>

<ns:FechaEmision>2020-06-15</ns:FechaEmision>

<ns:MotivoMovimiento>NORMAL</ns:MotivoMovimiento>

<ns:NumeroPoliza>999666999</ns:NumeroPoliza>

<ns:Ramo>VIDA PROVISION</ns:Ramo>

<ns:Sucursal>QUITO</ns:Sucursal>

<ns:TipoMovimiento>POLIZA ORIGINAL</ns:TipoMovimiento>

<ns:TipoPoliza>1</ns:TipoPoliza>

Página 9 de 20
TECSERVIN CIA. LTDA. Manual WFC service

</tem:polizaInfo>

</tem:InsertPoliza>

</soapenv:Body>

</soapenv:Envelope>

InsertSiniestro

Operation type:
Request-response. The endpoint receives a message, and sends a correlated message.
SOAP action:
http://tempuri.org/ITransferService/InsertSiniestro
Input:
ITransferService_InsertSiniestro_InputMessage (soap:body, use = literal)Source code
parameters type InsertSiniestro

▪ siniestroInfo - optional, nillable; type Siniestro


▪ Estado - nillable; type string
▪ Fecha - nillable; type string
▪ Numerosiniestro - nillable; type string
▪ Poliza - nillable; type string
▪ Sucursal - nillable; type string
▪ Ticket - nillable; type string

Output:
ITransferService_InsertSiniestro_OutputMessage (soap:body, use = literal)Source code
parameters type InsertSiniestroResponse

▪ InsertSiniestroResult - optional, nillable; type string

Ejemplo:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/" xmlns:ns="http://schemas.datacontract.org/2004/07/">

Página 10 de 20
TECSERVIN CIA. LTDA. Manual WFC service

<soapenv:Header/>

<soapenv:Body>

<tem:InsertSiniestro>

<!--Optional:-->

<tem:siniestroInfo>

<ns:Estado>1</ns:Estado>

<ns:Fecha>2020-06-25</ns:Fecha>

<ns:Numerosiniestro>45</ns:Numerosiniestro>

<ns:Poliza>POLIZA 999666999-0</ns:Poliza>

<ns:Sucursal>CUENCA</ns:Sucursal>

<ns:Ticket>125</ns:Ticket>

</tem:siniestroInfo>

</tem:InsertSiniestro>

</soapenv:Body>

</soapenv:Envelope>

UploadFile
Este método permite ingresar cualquier tipo de documento, según se especifique en sus parámetros

Operation type:
Request-response. The endpoint receives a message, and sends a correlated message.
SOAP action:
http://tempuri.org/ITransferService/UploadFile
Input:
RemoteFileInfo (soap:header, use = literal, part = FileName)Source code
parameters type RemoteFileInfo

▪ FileByteStream type StreamBody - type base64Binary with restriction

Output:
ITransferService_UploadFile_OutputMessage (soap:body, use = literal)Source code

Ejemplo:

Página 11 de 20
TECSERVIN CIA. LTDA. Manual WFC service

Para un cliente en .NET se consume el WCF service de la siguiente manera:

string namefile = @"c:\temp\Entrega de cheque Orden de Pago 666558813.pdf";

System.IO.FileInfo fileInfo = new System.IO.FileInfo(namefile);

ServiceReference1.ITransferService clientUpload = new


ServiceReference1.TransferServiceClient();

ServiceReference1.RemoteFileInfo uploadRequestInfo = new ServiceReference1.RemoteFileInfo();

using (System.IO.FileStream stream = new System.IO.FileStream(namefile,


System.IO.FileMode.Open, System.IO.FileAccess.Read))

uploadRequestInfo.FileName = fileInfo.Name;

uploadRequestInfo.Length = fileInfo.Length;

uploadRequestInfo.FileByteStream = stream;

uploadRequestInfo.Nombreclave = "ORDEN PAGO";

uploadRequestInfo.clave = "Orden de Pago 666558813";

uploadRequestInfo.clase = "Tec.CL.Entrega_de_cheque";

uploadRequestInfo.ubicacion = "UIO-DCC-A10";

var mm = clientUpload.UploadFile(uploadRequestInfo);

Página 12 de 20
TECSERVIN CIA. LTDA. Manual WFC service

Instalación del WCF service

Para instalar seguir los pasos

1) En IIS crear un sitio nuevo

El punto importante aquí es determinar el path físico sobre el cual se ha definido este nuevo sitio.

2) Descomprimir del ZIP de instalación el sitio completo sobre la ubicación anterior

Página 13 de 20
TECSERVIN CIA. LTDA. Manual WFC service

3) Dentro del IIS definir los BINDINGS que requiera. Utilizar los puertos que requiera, así como los
URLS para que accedan a sus sitio. Por ejemplo:

4) Dar Start en el IIS para iniciar el sitio

Página 14 de 20
TECSERVIN CIA. LTDA. Manual WFC service

5) Probar que el WCF service se encuentre funcionando colocando la url y TransferService.svc.


Ejemplo: http://localhost:8282/TransferService.svc

Página 15 de 20

También podría gustarte