none
Mapping

    Question

  • Hi,

    I have wcf service with request fields(status,code,template) & response fields (_recno,_section,tab,address,address_type,user_id,date_from,resource_id,date_to,birth_date,client,place,province). Inside the service i need to pick the data from request template field(here in template field i am getting entire repeating xml records as string). I need to pick the data from the string and have to map using c# to response fields.Below is the repeating record sample.Please help me with the code to map to the response fields in wcfservice.When i consume this service in biztalk i need single record for each record as o/p from repeating records.

    <AgressoQE>
        <_recno>0</_recno>
        <_section>D</_section>
        <tab>A</tab>
        <address />
        <address_type>1</address_type>
        <user_id>sss</user_id>
        <date_from>2017-09-18T00:00:00+01:00</date_from>
        <resource_id>1</resource_id>
        <date_to>2099-12-31T00:00:00+00:00</date_to>
        <birth_date>2000-01-01T00:00:00+00:00</birth_date>
        <client>w</client>
        <place />
        <province /><AgressoQE/>

      <AgressoQE>
        <_recno>0</_recno>
        <_section>D</_section>
        <tab>A</tab>
        <address />
        <address_type>1</address_type>
        <user_id>sss</user_id>
        <date_from>2017-09-18T00:00:00+01:00</date_from>
        <resource_id>1</resource_id>
        <date_to>2099-12-31T00:00:00+00:00</date_to>
        <birth_date>2000-01-01T00:00:00+00:00</birth_date>
        <client>w</client>
        <place />
        <province /><AgressoQE/>

    <AgressoQE>
        <_recno>0</_recno>
        <_section>D</_section>
        <tab>A</tab>
        <address />
        <address_type>1</address_type>
        <user_id>sss</user_id>
        <date_from>2017-09-18T00:00:00+01:00</date_from>
        <resource_id>1</resource_id>
        <date_to>2099-12-31T00:00:00+00:00</date_to>
        <birth_date>2000-01-01T00:00:00+00:00</birth_date>
        <client>w</client>
        <place />
        <province /><AgressoQE/>

    <AgressoQE>
        <_recno>0</_recno>
        <_section>D</_section>
        <tab>A</tab>
        <address />
        <address_type>1</address_type>
        <user_id>sss</user_id>
        <date_from>2017-09-18T00:00:00+01:00</date_from>
        <resource_id>1</resource_id>
        <date_to>2099-12-31T00:00:00+00:00</date_to>
        <birth_date>2000-01-01T00:00:00+00:00</birth_date>
        <client>w</client>
        <place />
        <province /><AgressoQE/>

      


    Regards, vishal


    • Edited by b vishal Saturday, November 11, 2017 6:16 AM
    Saturday, November 11, 2017 6:15 AM