Re: Python SUDS issue

Discussion in 'Python' started by Dieter Maurer, Mar 7, 2013.

  1. VGNU Linux wrote at 2013-3-7 10:07 +0530:
    >Not aware what "import" here is and what it will do.


    XML-schema has an "import" facility to modularize schema descriptions.
    It is very similar to the "import" facilities you know from Python
    (and a lot of other languages) -- and has very similar purpose.

    > ...
    >Here is what i changed.
    >from suds.client import Client
    >from suds.xsd.doctor import Import, ImportDoctor
    >from suds.sax.element import Element
    >
    >wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'
    >schemaurl = 'http://www.payback.net/lmsglobal/xsd/v1/types'
    >schemaimport = Import(schemaurl)
    >schemadoctor = ImportDoctor(schemaimport)
    >client = Client(url=wsdlurl,doctor=schemadoctor)
    >print client
    >
    >Printing client now lists all the methods and types associated with the
    >service.
    >But again stuck as on executing a method
    >response = client.service.GetAccountBalance(authtype)
    >replies with the error.
    >ValueError: unknown url type: {endpoint address}
    >
    >Totally confused as what is wrong going on here.


    Again, this looks like a bug in the WSDL description of the
    web service.

    To understand the problem better, you should look at the
    corresponding traceback (as always). It will tell you
    where the "ValueError" comes from. At the corresponding
    code location, you should learn whether "{endpoint address}"
    is the literal value of the bad url or an indication given
    by "suds" where it has found the bad url.

    In the first case, search the WSDL for "endpoint address" -
    and then get it fixed.
    In the second case, the bad value likely comes from
    the "location" attribute of a "soap:address" element below
    "wsdl:service" (again in your WSDL). Again, get it fixed, then.



    --
    Dieter
     
    Dieter Maurer, Mar 7, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fencer

    suds problem

    Fencer, Jan 6, 2010, in forum: Python
    Replies:
    2
    Views:
    536
    Fencer
    Jan 7, 2010
  2. yamamoto

    python SUDS library

    yamamoto, Mar 4, 2010, in forum: Python
    Replies:
    1
    Views:
    3,012
    Diez B. Roggisch
    Mar 4, 2010
  3. Eric von Horst

    Help with suds: HTTP Error 401

    Eric von Horst, Jun 11, 2010, in forum: Python
    Replies:
    3
    Views:
    2,045
    plainsane
    Jun 21, 2010
  4. Darkside Android

    Installing Suds for Python 2.6.1 on Mac OS X

    Darkside Android, Feb 1, 2011, in forum: Python
    Replies:
    2
    Views:
    1,875
    Darkside Android
    Feb 1, 2011
  5. dieter

    Re: Python SUDS issue

    dieter, Mar 5, 2013, in forum: Python
    Replies:
    0
    Views:
    190
    dieter
    Mar 5, 2013
Loading...

Share This Page