Como añadir un Atributo a la etiqueta
Estoy solicitando un poco de ayuda, espero me puedas ayudar.
Estoy desarrollando un Web service al cual necesito pasarle unos parámetros dentro de la etiqueta soap:body algo similar al ejemplo posterior donde marco en Bold el atributo que necesito insertar :
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<Interface ChannelIdentifierId="string" Version="string" Interface="string" xmlns=http://tempuri.org/API>
<ComponentInfo id="int" User="string" Pwd="string" ComponentType="string" />
</Interface>
</soap:Header>
<soap:Body Atributo="Valor">
<Receiver xmlns=http://tempuri.org/API />
</soap:Body>
</soap:Envelope>
¿Tendrás alguna idea de como hacer esto?
Estoy desarrollando un Web service al cual necesito pasarle unos parámetros dentro de la etiqueta soap:body algo similar al ejemplo posterior donde marco en Bold el atributo que necesito insertar :
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<Interface ChannelIdentifierId="string" Version="string" Interface="string" xmlns=http://tempuri.org/API>
<ComponentInfo id="int" User="string" Pwd="string" ComponentType="string" />
</Interface>
</soap:Header>
<soap:Body Atributo="Valor">
<Receiver xmlns=http://tempuri.org/API />
</soap:Body>
</soap:Envelope>
¿Tendrás alguna idea de como hacer esto?
1 respuesta
Respuesta de arhiguita
1