Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8473105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:15:25+00:00 2026-06-10T17:15:25+00:00

There’s a service in internet that i want to query with SOAP protocol. When

  • 0

There’s a service in internet that i want to query with SOAP protocol. When searching for SOAP libraries for Python this post was informative: https://stackoverflow.com/a/206964. But none of libraries that i tried worked for this specific service. I have PHP script that works:

<?php

$client = new SoapClient('https://personyze.com/site/service/service/social_archive/', array('trace' => true));
$result = $client->__soapCall
(   'select', array
    (   array('server_id'=>123456, 'api_key'=>123456), 'user_id', null, null, false, 0, 1
    )
);
echo $client->__getLastRequestHeaders(), $client->__getLastRequest(), "RESULT:\n";
var_dump($result);

I have made the following attempts to do the same in Python:

1.

from suds.client import Client
client = Client("https://personyze.com/site/service/service/social_archive/")

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/suds-0.3.7-py2.7.egg/suds/client.py", line 109, in __init__
    self.wsdl = Definitions(url, options)
  File "/usr/local/lib/python2.7/dist-packages/suds-0.3.7-py2.7.egg/suds/wsdl.py", line 194, in __init__
    self.build_schema()
  File "/usr/local/lib/python2.7/dist-packages/suds-0.3.7-py2.7.egg/suds/wsdl.py", line 255, in build_schema
    self.schema = container.load()
  File "/usr/local/lib/python2.7/dist-packages/suds-0.3.7-py2.7.egg/suds/xsd/schema.py", line 92, in load
    child.dereference()
  File "/usr/local/lib/python2.7/dist-packages/suds-0.3.7-py2.7.egg/suds/xsd/schema.py", line 295, in dereference
    midx, deps = x.dependencies()
  File "/usr/local/lib/python2.7/dist-packages/suds-0.3.7-py2.7.egg/suds/xsd/sxbasic.py", line 330, in dependencies
    raise TypeNotFound(self.ref)
suds.TypeNotFound: Type not found: '(Array, http://schemas.xmlsoap.org/soap/encoding/, )'

2.

from pysimplesoap.client import SoapClient
client = SoapClient(wsdl="https://personyze.com/site/service/service/social_archive/", trace=True)
client.select({"server_id":123456, "api_key":123456}, "user_id")

Much better! The best result for today. The only thing this library does wrong is that it calls method selectRequest() instead of select().

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 140, in <lambda>
    return lambda *args, **kwargs: self.wsdl_call(attr,*args,**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 289, in wsdl_call
    response = self.call(method, *params)
  File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 188, in call
    raise SoapFault(unicode(response.faultcode), unicode(response.faultstring))
pysimplesoap.client.SoapFault: SOAP-ENV:Server: Procedure 'selectRequest' not present

3.

import SOAPpy
client = SOAPpy.SOAPProxy("https://personyze.com/site/service/service/social_archive/", "urn:SocialArchiveServiceProviderwsdl")
client.select({"server_id":123456, "api_key":123456}, "user_id", None, None, False, 0, 2)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/SOAPpy-0.12.6-py2.7.egg/SOAPpy/Client.py", line 540, in __call__
    return self.__r_call(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/SOAPpy-0.12.6-py2.7.egg/SOAPpy/Client.py", line 562, in __r_call
    self.__hd, self.__ma)
  File "/usr/local/lib/python2.7/dist-packages/SOAPpy-0.12.6-py2.7.egg/SOAPpy/Client.py", line 464, in __call
    p, attrs = parseSOAPRPC(r, attrs = 1)
  File "/usr/local/lib/python2.7/dist-packages/SOAPpy-0.12.6-py2.7.egg/SOAPpy/Parser.py", line 1074, in parseSOAPRPC
    t = _parseSOAP(xml_str, rules = rules)
  File "/usr/local/lib/python2.7/dist-packages/SOAPpy-0.12.6-py2.7.egg/SOAPpy/Parser.py", line 1054, in _parseSOAP
    parser.parse(inpsrc)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 338, in start_element_ns
    AttributesNSImpl(newattrs, qnames))
  File "/usr/local/lib/python2.7/dist-packages/SOAPpy-0.12.6-py2.7.egg/SOAPpy/Parser.py", line 109, in startElementNS
    "got `%s'" % toStr( name )
SOAPpy.Errors.Error: <Error : expected `SOAP-ENV:Envelope', got `wsdl:definitions'>

Please tell me what can i do to make it work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:15:27+00:00Added an answer on June 10, 2026 at 5:15 pm

    The server’s WSDL schema seems to be broken – it references named objects without importing them.

    See the suds documentation on fixing broken schemas on how to work around that with suds.

    Also see this question for more details.

    This seems to work for me:

    from suds.xsd.doctor import Import
    from suds.xsd.doctor import ImportDoctor
    from suds.client import Client
    
    
    url = 'https://personyze.com/site/service/service/social_archive/'
    tns = 'urn:SocialArchiveServiceProviderwsdl'
    
    imp = Import('http://schemas.xmlsoap.org/soap/encoding/', 'http://schemas.xmlsoap.org/soap/encoding/')
    imp.filter.add(tns)
    client = Client(url,plugins=[ImportDoctor(imp)])
    
    print client.service.select({"server_id":123456, "api_key":123456}, "user_id")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is this windows service that runs at mid night every night.For the sake
There is a column that exists in 2 tables. In table 1, this column
I know there's a lot of other questions out there that deal with this
There is a moment in my app, that I need to force to show
There are nice SO question and answers about this issue, but these options didn't
There are a lot of blogs saying that a hasOwnProperty check should be used
There's a thrird party app that needs to get information via custom http headers,
There's a column on one of my tables that's being updated by various INSERT/DELETE
There are a lot of example implementations of daemons on the net. Most that
There's no Sort() function for IList . Can someoene help me with this? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.