Jump to content
Sign in to follow this  

SOAP web service call with autoit

Recommended Posts

Hi there

I'm struggling in calling a WEB SERVICE (SOAP) with AUTOIT. I tried many examples available in the internet but, unfortunately I could not make them work.

I have a XML call which one works in XMLSPY (ALTOVA) but I don't know how to migrate it to AUTOIT (moreover get the results).

Below the XML call

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">


<m:login xmlns:m="http://summary.webservice.inventory.abc.de/xsd">






<m:summary xmlns:m="http://summary.webservice.inventory.abc.de/xsd">














<m:site>My site</m:site>





After the call I would get the response as shown below:

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">



<InventorySummaryResponse xmlns="http://summary.webservice.inventory.abc.de/xsd">




<site>My Site</site>


<articleDescription>HUILE DOUCHE TRIPH MARACUJA 200ML</articleDescription>













Does somebody know how to make such SOAP call in AUTOIT? I need to prototype a project and this is the missing part to finish it. The WSDL file is attached.

Thanks ahead for any input someone can provide.

Ham Sgi


Share this post

Link to post
Share on other sites

I worked with SOAP XML requests in PowerBuilder.

Base concept is to send POST HTTP request (I used WinHttp.WinHttpRequest.5.1 COM object for this, see HTTP UDF for Autoit)

and set a header to

ls_header = 'Content-Type~tText/xml~n' + &


and set XML as data in request.

I'm sure you will find some examples here when you use Search feature.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...