Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#29 ZSI Digest Authentication implementaion for ProxyServices

closed-accepted
zsi (12)
7
2005-09-22
2005-09-14
No

Usage example (MapPoint SOAP Services):

from CommonService_services import *
loc = FindServiceLocator()
import sys
import ZSI
kw={'tracefile':sys.stdout, 'auth' : (
ZSI.AUTH.httpdigest, 'username', 'passwd') }
portType = loc.getFindServiceSoap(**kw)

AddressLine='Lergravsvej 28'
PostalCode='8660'
CountryRegion='DK'
InputAddress = ns1.Address_Def()
InputAddress._AddressLine = AddressLine
InputAddress._PostalCode = PostalCode
InputAddress._CountryRegion = CountryRegion

specification = ns1.FindAddressSpecification_Def()
specification._InputAddress = InputAddress
specification._DataSourceName = 'MapPoint.EU'
request = FindAddressSoapInWrapper()

request._specification = specification

res = portType.FindAddress(request)

Discussion

1 2 > >> (Page 1 of 2)
  • Keith Jackson
    Keith Jackson
    2005-09-14

    Logged In: YES
    user_id=711889

    This looks great, but you need to submit a real patch file if you want to see
    your change make it into the project. We have too many things to do to
    spend time dealing with non-standard patches. Please see; http://
    unxutils.sourceforge.net/ for a diff command that will generate real patch
    files on win32.
    --keith

     
  • Keith Jackson
    Keith Jackson
    2005-09-14

    • labels: --> zsi
    • assigned_to: nobody --> boverhof
     
  • Logged In: YES
    user_id=1341797

    Hi Keith.

    Right, here is the patch-file.
    I don't know how to create a patch that adds new files so
    the new digest_auth.py which is required you have to copy
    from the previous attachment.

    Note that have made a little change in wsdl2python.py too.
    There is a problem when wsdl specifications include untyped
    properties (wsdl2python, try for instance
    http://staging.mappoint.net/standard-30/mappoint.wsdl\) w3c
    specify untyped properties to be AnyType, so that's what I
    have patched it to do.

    Best Regards
    Jakob Simon-Gaarde

     
    • priority: 5 --> 7
     
  • Logged In: YES
    user_id=1341797

    Just to follow up on the wsdl2python problem I mentioned,
    here is the thing: (from
    http://staging.mappoint.net/standard-30/mappoint.wsdl\)

    <s:complexType name="EntityPropertyValue">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="Name"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Value"/>
    </s:sequence>
    </s:complexType>

    The element name="Value" is untyped, that must result in an
    AnyType type.

    Best Regards
    Jakob Simon-Gaarde

     
  • Logged In: YES
    user_id=1179865

    I have created a patch "digest_auth-20050918.patch" compared
    with the cvs version og ZSI.
    Please commit the changes soon, before client.py is changed
    again.

    Thanks.

     
  • The digest_auth module needed by the patch

     
    Attachments
  • Logged In: YES
    user_id=711996

    ERROR

    ArtifactFile: Invalid ArtifactFile ID

    When I try to download digest_auth.py I keep getting this error.

     
  • Logged In: NO

    It's a python/txt file, how can you not download it!?

    I have had three people download it with no problem, all
    using Firefox.

    Best regards Jakob

     
1 2 > >> (Page 1 of 2)