0
Answer

WCF Service take XML string to parse into XML format

Ask a question
Ahn Troung

Ahn Troung

11y
2k
1
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.