none
How to create Custom Soap Header in WCF ? RRS feed

  • Question

  • Hi

    I am working on WCF.I need to accept client XML.But clients are using JAVA.

    XML format :

    <?xml version="1.0" encoding="utf-8"?>
    <soapenv:Envelope
     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" 
    xmlns:wsa="http://www.w3.org/2005/08/addressing" 
    xmlns:htn="http://pms.ihotelier.com/HTNGService/services/HTNG2011BService" >
      <soapenv:Header>
    <wsa:MessageID>713</wsa:MessageID>
    <wsa:To>http://pmcoutllm01-t5.tcprod.local:8080/HtngSimulator/PMSInterfaceSimulator</wsa:To>

    <wsa:ReplyTo>
    <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
    </wsa:ReplyTo>
        <wsa:RelatesTo>RATE:14cb001d9cf7f69c7a86</wsa:RelatesTo>
    <wsa:Action>http://htng.org/2011B/HTNG2011B_SubmitResult</wsa:Action>
    </soapenv:Header>
    <soapenv:Body>

    <Inventory>

    .

    .

    .

    </Inventory>

    </soapenv:Body>

    </soapenv:Envelope>

    I am using XML Serialization Technique for serialization.

    Inner XML I am able to deserialize.

    Please guide me how to deserialize Soap header.


    T.V.Suneetha

    Tuesday, May 21, 2013 9:31 AM

Answers