Soap Webservice in Node JS

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I am trying to build a soap webservice in node js using the npm module soap. I am using the soap.listen function that is mentioned to launch a soap server in node js. The wsdl file I am including looks like below:

    xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="wscalc1" targetNamespace="http://localhost:8100/api/orderStatusWsdl" xmlns="http://localhost:8100/api/orderStatusWsdl" xmlns:http="http://schemas.xmlhttps://forum.tuteehub.com/tag/soap">soap.org/wsdl/http/" xmlns:https://forum.tuteehub.com/tag/soap">soap="http://schemas.xmlhttps://forum.tuteehub.com/tag/soap">soap.org/wsdl/https://forum.tuteehub.com/tag/soap">soap/" xmlns:wsdl="http://schemas.xmlhttps://forum.tuteehub.com/tag/soap">soap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <wsdl:message name="receiveOrderStatusRequest">
        <wsdl:part name="a" type="xs:string"/>
        <wsdl:part name="b" type="xs:string"/>
    wsdl:message>
    <wsdl:message name="receiveOrderStatusResponse">
        <wsdl:part name="orderStatusResponse" type="xs:string"/>
    wsdl:message>
    <wsdl:https://forum.tuteehub.com/tag/port">portType name="orderStatusPort">
        <wsdl:operation name="receiveOrderStatus">
            <wsdl:input message="receiveOrderStatusRequest"/>
            <wsdl:output message="receiveOrderStatusResponse"/>
        wsdl:operation>
    wsdl:https://forum.tuteehub.com/tag/port">portType>
    <wsdl:binding name="orderStatusBinding" type="orderStatusPort">
        <https://forum.tuteehub.com/tag/soap">soap:binding style="rpc" transhttps://forum.tuteehub.com/tag/port">port="http://schemas.xmlhttps://forum.tuteehub.com/tag/soap">soap.org/https://forum.tuteehub.com/tag/soap">soap/http"/>
        <wsdl:operation name="receiveOrderStatus">
            <https://forum.tuteehub.com/tag/soap">soap:operation https://forum.tuteehub.com/tag/soap">soapAction="receiveOrderStatus"/>
            <wsdl:input>
                <https://forum.tuteehub.com/tag/soap">soap:body encodingStyle="http://schemas.xmlhttps://forum.tuteehub.com/tag/soap">soap.org/https://forum.tuteehub.com/tag/soap">soap/encoding/" use="literal"/>
            wsdl:input>
            <wsdl:output>
                <https://forum.tuteehub.com/tag/soap">soap:body encodingStyle="http://schemas.xmlhttps://forum.tuteehub.com/tag/soap">soap.org/https://forum.tuteehub.com/tag/soap">soap/encoding/" use="literal"/>
            wsdl:output>
        wsdl:operation>
    wsdl:binding>
    <wsdl:service name="orderStatusService">
        <wsdl:https://forum.tuteehub.com/tag/port">port binding=
                                                
                                                
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.