Node.js - Peticiones SOAP

 
Vista:

Peticiones SOAP

Publicado por Darcarper (1 intervención) el 10/08/2018 10:18:31
Hola a todos

Mi problema es que tengo una petición SOAP y quiero correrla mediante js.

Esta es la petición que realizo con el SOAPUI:

1
2
3
4
5
6
7
8
9
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ses="http://SessionSOAPService/">
   <soapenv:Header/>
   <soapenv:Body>
      <ses:beginSession soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <login xsi:type="xsd:string">XXXXXX</login>
         <password xsi:type="xsd:string">YYYYY</password>
      </ses:beginSession>
   </soapenv:Body>
</soapenv:Envelope>


Y su respuesta:


1
2
3
4
5
6
7
<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:beginSessionResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://SessionSOAPService/">
         <beginSessionReturn xsi:type="xsd:string">1111111111111111111111111111111111</beginSessionReturn>
      </ns1:beginSessionResponse>
   </soapenv:Body>
</soapenv:Envelope>


Lo que me interesa es el 111111111111...

Como puedo hacer esa petición con un js vía node?

Gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder