<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessing a SOAP API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/518955#M87783</link>
    <description>&lt;P&gt;Posting here on what worked for me. In looking at&amp;nbsp;&lt;A href="https://wiki.python.org/moin/WebServices" target="_blank"&gt;https://wiki.python.org/moin/WebServices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. ran pip2 install --user suds&amp;nbsp; as the splunk user.&lt;/P&gt;&lt;P&gt;2. afterwards, copy ~/.local/lib/python2.7/site-packages/suds/ to $splunk_home/etc/apps/&amp;lt;my_app&amp;gt;/bin&lt;/P&gt;&lt;P&gt;3. if I now run a python script under $splunk_home/etc/apps/&amp;lt;my_app&amp;gt;/bin using the built in splunk python (ie /opt/splunk/bin/splunk cmd python), I can run these commands&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt;&amp;gt;&amp;gt; from suds.client import Client
&amp;gt;&amp;gt;&amp;gt; client=Client("http://www.dneonline.com/calculator.asmx?WSDL")
&amp;gt;&amp;gt;&amp;gt; print client

Suds ( https://fedorahosted.org/suds/ )  version: 0.4 GA  build: R699-20100913

Service ( Calculator ) tns="http://tempuri.org/"
   Prefixes (0)
   Ports (2):
      (CalculatorSoap)
         Methods (4):
            Add(xs:int intA, xs:int intB, )
            Divide(xs:int intA, xs:int intB, )
            Multiply(xs:int intA, xs:int intB, )
            Subtract(xs:int intA, xs:int intB, )
         Types (0):
      (CalculatorSoap12)
         Methods (4):
            Add(xs:int intA, xs:int intB, )
            Divide(xs:int intA, xs:int intB, )
            Multiply(xs:int intA, xs:int intB, )
            Subtract(xs:int intA, xs:int intB, )
         Types (0):


&amp;gt;&amp;gt;&amp;gt; client.service.Add(5,6)
11&lt;/LI-CODE&gt;&lt;P&gt;I could not get this to work with zeep though.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 20:22:15 GMT</pubDate>
    <dc:creator>pongc</dc:creator>
    <dc:date>2020-09-10T20:22:15Z</dc:date>
    <item>
      <title>Accessing a SOAP API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217559#M42821</link>
      <description>&lt;P&gt;Hi All, Does anyone have a working example script or other method of getting Splunk to interact with a SOAP API?&lt;BR /&gt;
There are plenty of REST examples, but not SOAP.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 03:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217559#M42821</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-06-23T03:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a SOAP API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217560#M42822</link>
      <description>&lt;P&gt;These links could be help you.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/themes/splunk_com/img/assets/pdfs/education/SplunkDeploymentGuide2_1.pdf"&gt;http://www.splunk.com/themes/splunk_com/img/assets/pdfs/education/SplunkDeploymentGuide2_1.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://dev.splunk.com/restapi"&gt;http://dev.splunk.com/restapi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 05:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217560#M42822</guid>
      <dc:creator>JasonParms</dc:creator>
      <dc:date>2016-06-23T05:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a SOAP API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217561#M42823</link>
      <description>&lt;P&gt;I've written several python scripts that function as a SOAP client.  I'm not allowed to share the code, but I can offer a few tips.&lt;BR /&gt;
REST and SOAP clients are very similar.  The key difference is SOAP always uses POST requests.  The body of the request is the XML specified in the API.  I use the httplib library, but some prefer urllib.  &lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:29:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217561#M42823</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-06-23T13:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a SOAP API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217562#M42824</link>
      <description>&lt;P&gt;Hi Rich, I know you might not be able to share the exact code, but can you share an anonomised version of it?&lt;BR /&gt;
Im still having issues with this. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 23:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217562#M42824</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-09-21T23:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a SOAP API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217563#M42825</link>
      <description>&lt;P&gt;Hi guys, I am now also facing this problem too. do you have any ideas now?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 11:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/217563#M42825</guid>
      <dc:creator>tdhoang</dc:creator>
      <dc:date>2017-07-06T11:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a SOAP API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/518955#M87783</link>
      <description>&lt;P&gt;Posting here on what worked for me. In looking at&amp;nbsp;&lt;A href="https://wiki.python.org/moin/WebServices" target="_blank"&gt;https://wiki.python.org/moin/WebServices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. ran pip2 install --user suds&amp;nbsp; as the splunk user.&lt;/P&gt;&lt;P&gt;2. afterwards, copy ~/.local/lib/python2.7/site-packages/suds/ to $splunk_home/etc/apps/&amp;lt;my_app&amp;gt;/bin&lt;/P&gt;&lt;P&gt;3. if I now run a python script under $splunk_home/etc/apps/&amp;lt;my_app&amp;gt;/bin using the built in splunk python (ie /opt/splunk/bin/splunk cmd python), I can run these commands&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt;&amp;gt;&amp;gt; from suds.client import Client
&amp;gt;&amp;gt;&amp;gt; client=Client("http://www.dneonline.com/calculator.asmx?WSDL")
&amp;gt;&amp;gt;&amp;gt; print client

Suds ( https://fedorahosted.org/suds/ )  version: 0.4 GA  build: R699-20100913

Service ( Calculator ) tns="http://tempuri.org/"
   Prefixes (0)
   Ports (2):
      (CalculatorSoap)
         Methods (4):
            Add(xs:int intA, xs:int intB, )
            Divide(xs:int intA, xs:int intB, )
            Multiply(xs:int intA, xs:int intB, )
            Subtract(xs:int intA, xs:int intB, )
         Types (0):
      (CalculatorSoap12)
         Methods (4):
            Add(xs:int intA, xs:int intB, )
            Divide(xs:int intA, xs:int intB, )
            Multiply(xs:int intA, xs:int intB, )
            Subtract(xs:int intA, xs:int intB, )
         Types (0):


&amp;gt;&amp;gt;&amp;gt; client.service.Add(5,6)
11&lt;/LI-CODE&gt;&lt;P&gt;I could not get this to work with zeep though.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 20:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Accessing-a-SOAP-API/m-p/518955#M87783</guid>
      <dc:creator>pongc</dc:creator>
      <dc:date>2020-09-10T20:22:15Z</dc:date>
    </item>
  </channel>
</rss>

