コード例 #1
0
        public OutEnvelope(XDocument doc)
        {
            XNamespace nsSoap = "http://schemas.xmlsoap.org/soap/envelope/";
            XNamespace nsOut  = "http://www.molss.gov.cn/";

            var envelope = doc.Element(nsSoap + "Envelope");

            var header = envelope.Element(nsSoap + "Header");

            Header = new OutHeader();
            Header.FromXElement(header);

            var body = envelope.Element(nsSoap + "Body");
            var @out = body.Element(nsOut + "business");

            Body = new OutBody();
            Body.FromXElement(@out);
        }
コード例 #2
0
 public void Deconstruct(out OutHeader header, out OutBody body)
 {
     header = Header;
     body   = Body;
 }