elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web (Moderador: #!drvy)
| | |-+  WEB SERVICE
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: WEB SERVICE  (Leído 1,345 veces)
NoelAdan

Desconectado Desconectado

Mensajes: 2


Ver Perfil
WEB SERVICE
« en: 21 Diciembre 2018, 17:09 pm »

Tengo una duda con respecto a la lectura de XML, ya que intento leer un nodo, pero no logro leer ambos... De hecho sólo puedo leer el primer nodo a partir de <cus:updateCustomerRequest>

------------------- Éste es el XML -------------------
<soapenv:Envelope xmlns:cli="http://www.accurate.com/acec/Customer" xmlns:cus="http://www.accurate.com/acec/CustomerServices"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<cus:updateCustomerRequest>
<cli:customer>
<cli:documentNumber>82053356000158</cli:documentNumber>
</cli:customer>
<cus:status>APV</cus:status>
</cus:updateCustomerRequest>
</soapenv:Body>
</soapenv:Envelope>
------------------- MI CÓDIGO -------------------
<WebService(Namespace:="http://schemas.xmlsoap.org/soap/envelope/")>
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)>
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Public Class WSDurakeloCustomer
    Inherits System.Web.Services.WebService

    Public Sub New()
        MyBase.New()
    End Sub   
    <WebMethod>
    <SoapDocumentMethod("notifyCustomerCreation",
        ResponseNamespace:="http://www.accurate.com/acec/CustomerServices",       
                        ParameterStyle:=SoapParameterStyle.Bare)>
    Public Function notifyCustomerCreation(<XmlElement("updateCustomerRequest", Namespace:="http://www.accurate.com/acec/CustomerServices")> ByVal variable As XmlElement) As <XmlElement("notifyCustomerCreationResponse")> RespuestaXML
Dim datos = variable.outerXML
Return New RespuestaXML("OK")
    End Function


En línea

NoelAdan

Desconectado Desconectado

Mensajes: 2


Ver Perfil
Re: WEB SERVICE
« Respuesta #1 en: 21 Diciembre 2018, 17:52 pm »

Usa en <XmlAnyElement("updateCustomerRequest", Namespace:="http://www.accurate.com/acec/CustomerServices")> ByVal variable As XmlElement
en el parámetro de la función


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Service in VB?
Programación Visual Basic
[VolkS] 4 2,154 Último mensaje 1 Noviembre 2007, 02:33 am
por Sai-To
create a service (NT service)
Programación Visual Basic
TigerT2009 2 2,573 Último mensaje 10 Julio 2009, 15:53 pm
por XcryptOR
web service com php?
PHP
BEATMASTER 3 3,969 Último mensaje 20 Marzo 2011, 18:47 pm
por madpitbull_99
Web Service
Programación General
jam man 1 1,668 Último mensaje 27 Noviembre 2016, 18:33 pm
por Borito30
Tor service
GNU/Linux
casobrino 0 1,651 Último mensaje 12 Abril 2020, 10:49 am
por casobrino
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines