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

  • Home
  • SEARCH
  • 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 4052444
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:19:15+00:00 2026-05-20T14:19:15+00:00

I am a very newbie in Python I have the following code: from SOAPpy

  • 0

I am a very newbie in Python I have the following code:

from SOAPpy import WSDL

fichier_wsdl = 'http://geocoder.us/dist/eg/clients/GeoCoder.wsdl'
wsdl = WSDL.Proxy(fichier_wsdl)
callInfo = wsdl.methods['geocode']
ss = wsdl.geocode('1600 Pennsylvania Ave, Washington, DC.')
print(ss)

The result is:

IMPORT:  http://schemas.xmlsoap.org/soap/encoding/
no schemaLocation attribute in import
<<class 'SOAPpy.Types.typedArrayType'> results at 21824752>: [<SOAPpy.Types.structType item at 21818984>: {'city': 'Washington', 'prefix': '', 'suffix': 'NW', 'zip': 20502, 'number': 1600, 'long': -77.037684, 'state': 'DC', 'street': 'Pennsylvania', 'lat': 38.898748, 'type': 'Ave'}]

and I try to understand what type has my ss variable (the print(type(ss)) get SOAPpy.Types.typedArrayType which is not very clear for me)?
And how to have a simple variable, for the city or the street?

  • 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-05-20T14:19:16+00:00Added an answer on May 20, 2026 at 2:19 pm

    Let’s reformat that output for readability:

    <<class 'SOAPpy.Types.typedArrayType'> results at 21824752>:
    
    [<SOAPpy.Types.structType item at 21818984>:
         {'city': 'Washington', 'prefix': '', 'suffix': 'NW', 'zip': 20502, 'number': 1600,
          'long': -77.037684, 'state': 'DC', 'street': 'Pennsylvania', 'lat': 38.898748,
          'type': 'Ave'
         }
     ]
    

    It’s telling you what type your variable is: SOAPpy.Types.typedArrayType … try reading the SOAPpy docs to understand that (I’m a SOAPpy non-user, not even a newbie).

    What you really want to know is how to use that result. Looks to me like if you do answer_dict = ss[0], you can access the fields like this:

    print answer_dict['city'] should produce Washington etc

    so you can do

    city = answer_dict['city']
    street = answer_dict['street']
    # et cetera
    

    Note that ss with the fancy type looks like it acts like a list … if your query has multiple answers (check len(ss)), you will need to iterate over the list:

    for answer_dict in ss:
        process_each_answer(answer_dict) # substitute your code here
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very simply put, I have the following code snippet: FILE* test = fopen(C:\\core.u, w);
I am a newbie to Python and have come across the following example in
Now following my series of python newbie questions and based on another question .
I have a coldfusion page and I am very newbie in coldfusion. What I
I'm a newbie to Asp.net,learning from the Apress's Begining Asp.net...book.While very curious to see
Sorry this is a very newbie question. We have this massive application I am
I am very much an Android newbie and I have built a simple RSS
Very simply put: I have a class that consists mostly of static public members,
Very often when working on an ASP.NET web site, the options View Code and
Very simply, what is tail-call optimization? More specifically, what are some small code snippets

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.