Jump to content
Sign in to follow this  
psycodad

Requesting SOAP Service

Recommended Posts

There is no example yet, but that should be fairly simple.

 

Here is a javascript article on the subject:

http://www.codeproject.com/Articles/33325/Calling-Web-Services-From-JavaScript-Using-SOAP-Cl

 

1. Download the soapclient.js file and put it either in the libraries folder, or your project folder.

 

2. reference it as a resource in your code:

{$R 'file:soapclient.js'}

 

3. use asm sections to work with it:

 

 

//Soap callback 
procedure TForm1.helloworld_callback(r:variant); 
Begin 
  w3_alert(TVariant.asString(r)); 
end; 

//Soap invoke 
Procedure TForm1.w3Button1Click(sender:TObjct); 
var 
mySoap: variant; 
url: string; 
Begin 
  asm 
    mySoap = new SOAPClientParameters(); 
    SOAPClient.invoke(url, "HelloWorld", mySoap, true, HelloWorld_callBack); 
  end; 
end; 


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×