Hola,
Tengo un web services el cual me retorna como obvias razones un XML, es decir un WEB SERVICES siempre retorna un XML, el punto es, como le hago para poderlo insertar en SQL SERVER?
Si hago un:
Código C#:
Ver originalDataGrid.Datasource = Webservices.Funcion("Parametro");
El grid se llena perfectamente con los campos que el XML Me retorna
Alguien sabe como hacerlo?
Mi estructura de XML es la siguiente.
Código XML:
Ver original<?xml version="1.0" encoding="utf-8" ?>
- <ArrayOfDatos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
- <Datos>
<MTNR>C112R----EC120</MTNR>
<WERKS>8611</WERKS>
<LGORT>DG03</LGORT>
<CHARG>A3F2819301</CHARG>
<CLABS>1.145</CLABS>
</Datos>
- <Datos>
<MTNR>C112R----LP75</MTNR>
<WERKS>8611</WERKS>
<LGORT>DG03</LGORT>
<CHARG>A3F2819302</CHARG>
<CLABS>2.025</CLABS>
</Datos>
</ArrayOfDatos>
Saludos