A Troung

A Troung

  • NA
  • 139
  • 2.6k

WCF Service take XML string to parse into XML format

Jan 28 2013 8:04 PM
Hello all,

I am newbie with WCF service technology. I am not sure how to create a WCF 4.0 service that take the a XML string message as following format as an input:

<SchoolRecord><Name>Rob</Name><Grade>9</Grade><Date>1/20/2013</Date></SchoolRecord>

and return the XML format:

<SchoolRecord>

        <Name>Rob</Name>

        <Grade>9</Grade>

        <Date>1/20/2013</Date>

</SchoolRecord>

and read the values into parameters such as paramNameValue = Rob, paramGradeValue = 9 and paramDateValue = 1/20/2013.

next to store above return XML format and parammeters into MSMQ (Microsoft Message Queue).

Any expertise WCF service to help me out on the solution, I really appreciate your time. Thanks in advance.