Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Getting Delphi dll, SOAP and Javascript talking...

  • 20-08-2009 02:32PM
    #1
    Closed Accounts Posts: 408 ✭✭


    Hello there,

    My colleague has recently created a web service in Delphi (dll); the XML that is produced looks like this:
    <operation name="SendApplicants">
    <input message="tns:SendApplicants0Request"/>
    <output message="tns:SendApplicants0Response"/>
    </operation>
    

    I've been trying to call this operation "SendApplicants" from his ISAPI .dll, but as of yet I've been unsuccessful.

    I was pointed towards this js plugin for Soap Client manipulation: http://www.guru4.net/articoli/javascript-soap-client/en/

    However when I use js to invoke the SOAP function call it simply returns the entire XML document with all the functions on it in the alert.

    Here's my (slightly) modified code for calling the SOAP function (based on demo 11 of the plugin i linked above)
    function requestApplicantList()
    {
        var pl = new SOAPClientParameters();
        SOAPClient.invoke(url, 'SendApplicants', pl, true, GetSoapResponse_callBack);
    }
    function GetSoapResponse_callBack(r, soapResponse)
    {
        if(soapResponse.xml)    // IE
            alert(soapResponse.xml);
        else    // MOZ
            alert((new XMLSerializer()).serializeToString(soapResponse));
    }
    

    Can anyone point me in the right direction of how to get these 2 technologies talking?

    Thanks,

    Dan


Comments

  • Closed Accounts Posts: 408 ✭✭Chada


    Hi..

    I've trying to sort this problem for the past few days - I'm hoping it's something obvious......

    Would I need to convert the SOAP .dll file to java using a converter like axis?

    Any help GREATLY appreciated..

    Thanks.


Advertisement