Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.2K
Views
¿Cómo hacer una llamada Soap en React js?

He probado algunas formas de hacer una llamada Soap a través de Reactjs. Pero siempre me enfrento a algún error en cada enfoque. ¿Puede alguien ayudarme aquí o amablemente proporcionarme algún pequeño ejemplo de trabajo para que pueda referirme?

Intenté usar el jabón npm y el paquete easysoap pero no pude tener éxito. Cualquier ejemplo de trabajo es muy apreciado. También probé de la siguiente manera, pero tampoco funciona.

 var xmlhttp = new XMLHttpRequest(); xmlhttp.open('GET', '{My soap endpoint}', true); // build SOAP request var sr = '<soap:Envelope xmlns:soap="{My soap request}"' xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4) { if (xmlhttp.status == 200) { alert('done. use firebug/console to see network response'); } } } // Send the POST request xmlhttp.setRequestHeader('Content-Type', 'text/xml'); xmlhttp.send(sr);
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Tanto npm soap como easysoap son paquetes de Node.js , lo que significa que se ejecutan en el servidor pero no en el cliente, donde reside ReactJS.

Entonces, si desea llamar a un servicio de jabón desde el cliente, puede probar este ejemplo de javascript puro o usar una herramienta de terceros como jquery-soap .

Espero que esto ayude :)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!