Quantcast
Viewing all articles
Browse latest Browse all 21760

Re: Send data complext to Net Webservice

Thanks so much BkBK for your support.  I found the solution in another discussion where you participated too.

 

I have to send an Struct - Array - Struct.

 

This is the solution:

 

<cfscript>

                         Agente = structNew();

                         arrAgente.agente = Arraynew(1);

                         arrAgente.agente[1] = structnew();

                         arrAgente.agente[1].ramoTecnico = "10";

                         arrAgente.agente[1].codTipoAgente ="15";

                         Agente = arrAgente; 

          </cfscript>

 

And this is all the main struct

 

<cfset param= structnew() >   

    <cfset param.emissionRequest = {}>

    <cfset param.emissionRequest.codSuc = "30">

    <cfset param.emissionRequest.producto = "200">   

    <cfset param.emissionRequest.poliza = {}>

    <cfset param.emissionRequest.poliza.codTipoPoliza = "2">

    <cfset param.emissionRequest.poliza.ramoComercial = "5">

 

    <cfset param.emissionRequest.agente = Agente>

 

 

struct
EMISSIONREQUEST
struct
AGENTE
struct
AGENTE
array
1
struct
CODTIPOAGENTE15
RAMOTECNICO10
CODSUC30
POLIZA
struct
CODTIPOPOLIZA2
RAMOCOMERCIAL5
PRODUCTO200

Viewing all articles
Browse latest Browse all 21760

Trending Articles