Jump to content

Using SOAP to access data


Recommended Posts

Hello, I'm very new to using AutoIT for SOAP access. I've looked and tried to work with several of the examples located in the forum, but am having no luck. I have a system I'm trying to access and can do so with SoapUI, but when I try to duplicate what it's doing in AutoIT I am not getting anywhere. Below is what I do in SoapUI and the response I get from the system I'm connecting to.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="https://soap.COMPANY.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <soap:doLogin>
         <Login>USERNAME@COMPANY.COM</Login>
         <Password>PASSWORD</Password>
      </soap:doLogin>
   </soapenv:Body>
</soapenv:Envelope>

The response is:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://soap.COMPANY.com/">
   <SOAP-ENV:Body>
      <ns1:doLoginResponse>
         <result>
            <session>08dkOGMwZDUyOTYyMTQzMjZjZTlhZGFjZGUxNTIa</session>
            <user_id>922707</user_id>
            <user_name>USER NAME</user_name>
            <user_email>USERNAME@COMPANY.COM</user_email>
            <organisation_id>115531</organisation_id>
            <organisation_name>COMPANY</organisation_name>
            <limit_storage>9610844</limit_storage>
            <limit_proofs>119994057</limit_proofs>
            <max_file_size>4505600</max_file_size>
            <default_subject/>
            <default_message/>
            <default_email_notifications>3</default_email_notifications>
            <default_authorized_only>false</default_authorized_only>
            <default_enable_subscriptions>false</default_enable_subscriptions>
            <default_validate_subscriptions>false</default_validate_subscriptions>
            <default_auto_lock>false</default_auto_lock>
            <default_lock_after_first_decision>false</default_lock_after_first_decision>
            <default_enable_download>true</default_enable_download>
            <default_enable_team_url>true</default_enable_team_url>
            <default_enable_embed_player>true</default_enable_embed_player>
            <default_show_dashboard_link>true</default_show_dashboard_link>
            <default_show_workspace_link>true</default_show_workspace_link>
            <default_show_details_page_link>true</default_show_details_page_link>
            <default_show_versions_link>true</default_show_versions_link>
            <default_show_help_link>true</default_show_help_link>
            <default_show_help_quick_start_link>true</default_show_help_quick_start_link>
            <default_show_help_user_guide_link>true</default_show_help_user_guide_link>
            <default_show_help_welcome_screen_link>true</default_show_help_welcome_screen_link>
            <default_show_help_forum_link>true</default_show_help_forum_link>
            <default_show_help_blog_link>true</default_show_help_blog_link>
         </result>
      </ns1:doLoginResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

For such a simple logon request a lot of user account data is included. This is fine, but no matter what code I write in AutoIT I can't seem to even get a connection established.

I've looked at several AutoIT examples from advanced users such as https://beamtic.com/http-requests-autoit but I'm simply not understanding the format. I would appreciate some help or advice on figuring this out. Essentially for starters I'd like to be able to send and get the same results as I do with SoapUI.

Thanks for any assistance you can provide.

Todd 

 

Link to comment
Share on other sites

There are numerous examples in this forum on making HTTP POST requests.  There's nothing special about doing a SOAP POST request other than making sure the Content-Type header is set correctly and the POST request data is correct.

Edited by TheXman
No response, no feedback...no problem / Removed example / Member added to my Ignore List
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...