none
Como barro la informacion de un xml Complejo con linQ C# RRS feed

  • Pregunta

  • Como Puedo extraer la etiqueta <labelPDF xsi:type="xsd:base64Binary">

    <?xml version="1.0" encoding="utf-8" ?> - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <soapenv:Body> - <ns1:createLabelResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://estafetalabel.webservices.estafeta.com"> <createLabelReturn href="#id0" /> </ns1:createLabelResponse> - <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:EstafetaLabelResponse" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://dto.estafetalabel.webservices.estafeta.com"> <globalResult href="#id1" /> <labelPDF xsi:type="xsd:base64Binary">JVBERi0xLjQKJeLjz9MKMyAwIG9iaiA8PC9Db2xvclNwYWNlWy9JbmRleGVkL0RldmljZVJHQiAyNTUoN9GDEntnY0TAAY+iX0btiuIzLX+LXHS9znB9XGYiSzHJXGaYI1gEw1G/fl1wsVx00FxiQrdcdP1PFjNmwg5yWo/QWnlcdJpzs3sxpan4aJvHAWOellbk/mvndSVrzKUZo7uP1x7Q3cQ6yaSAHO1HxsrMllxuTVm5gN2pHDusB8WJZ0Tv00wcXHJX8ex0MbGDWKFcKJt4NhHkfa05f9WGxJI0GjLn16CE1EOuLb4YBo+WP0v6faQcx4qPRgdE/hvJwD6fNvd0NpK/GaPHn/70d9mKeVs419qEZys7JyLz/3dIbJnrOLRAk9bVufZw6eXqE96exjfBeRhEyFxmXCnhkmabweEYutZKWllDXCj1sS8CHLfe1Wf4RGZzmLdSpveqoPdz2qhCvgfr/l8mXGKrNl5VbYaI/2NmiZU/6k2ixoa69Zbx5yQh3c5cbgNH2tM2z+qbv22nRVwoPEhMkyyB/Xs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gCjAwMDAwMDkzMzggMDAwMDAgbiAKMDAwMDAwOTIxNiAwMDAwMCBuIAowMDAwMDA5Mzg4IDAwMDAwIG4gCjAwMDAwMDk0NDQgMDAwMDAgbiAKMDAwMDAwOTQ3NyAwMDAwMCBuIAowMDAwMDA5NTgxIDAwMDAwIG4gCjAwMDAwMDk3NTQgMDAwMDAgbiAKdHJhaWxlcgo8PC9TaXplIDE2L1Jvb3QgMTMgMCBSL0VuY3J5cHQgMTUgMCBSL0lEIFs8MWRiMDc4YmQ1ZmQzYTE1MmZjMjZiOGQ0MTQyMzFmODk+PDkzYzQyMmUxNWU4MWViMWNhMmEyYmVmMGY0MmY3ZjA2Pl0vSW5mbyAxNCAwIFI+PgpzdGFydHhyZWYKOTg5MQolJUVPRgo=</labelPDF> - <labelResultList soapenc:arrayType="ns2:LabelResultList[1]" xsi:type="soapenc:Array"> <labelResultList href="#id2" /> </labelResultList> <valid xsi:type="xsd:boolean">true</valid> </multiRef> - <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:LabelResultList" xmlns:ns3="http://dto.estafetalabel.webservices.estafeta.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <resultCode xsi:type="xsd:int">0</resultCode> <resultDescription xsi:type="xsd:string">4050000000130700050067</resultDescription> <resultSpanishDescription xsi:type="xsd:string">4050000000130700050067</resultSpanishDescription> <valid xsi:type="xsd:boolean">true</valid> </multiRef> - <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:GlobalResult" xmlns:ns4="http://dto.estafetalabel.webservices.estafeta.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <resultCode xsi:type="xsd:int">0</resultCode> <resultDescription xsi:type="xsd:string">OK</resultDescription> <resultSpanishDescription xsi:type="xsd:string">OK</resultSpanishDescription> <valid xsi:type="xsd:boolean">true</valid> </multiRef> </soapenv:Body> </soapenv:Envelope>



    lunes, 15 de diciembre de 2014 19:46

Respuestas

  • using System;
    using System.Linq;
    using System.Xml.Linq;
    using System.IO;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                XElement docSoap = XElement.Load("archivo.xml");
                XElement labelPDF = docSoap.Descendants("labelPDF").FirstOrDefault();
    
                if (labelPDF != null)
                {
                    File.WriteAllBytes("archivo.pdf", Convert.FromBase64String(labelPDF.Value)); 
                }
    
            }
        }
    }
    

    Lee un "archivo.xml".
    Detecta el primer elemento de nombre "labelPDF" y lo procesa. Si existe, convierte el stream a un array de bytes y lo almacena en "archivo.pdf".

    lunes, 15 de diciembre de 2014 21:18