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 180191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:32:33+00:00 2026-05-11T14:32:33+00:00

I am playing around trying to call a simple SOAP webservice using the following

  • 0

I am playing around trying to call a simple SOAP webservice using the following code in the Python interpreter:

from SOAPpy import WSDL wsdl = 'http://www.webservicex.net/whois.asmx?wsdl' proxy = WSDL.Proxy(wsdl) proxy.soapproxy.config.dumpSOAPOut=1 proxy.soapproxy.config.dumpSOAPIn=1 proxy.GetWhoIS(HostName='google.com') 

(Yep, I’m new to Python, doing the diveintopython thing…)

The call to the GetWhoIS method fails – otherwise I wouldn’t be asking here, I guess. Here’s my outgoing SOAP:

<?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope   SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'   xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'   xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'   xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'   xmlns:xsd='http://www.w3.org/1999/XMLSchema'>   <SOAP-ENV:Body>     <GetWhoIS SOAP-ENC:root='1'>       <HostName xsi:type='xsd:string'>google.com</HostName>     </GetWhoIS>   </SOAP-ENV:Body> </SOAP-ENV:Envelope> 

And here’s the incoming response.

<?xml version='1.0' encoding='utf-8'?> <soap:Envelope     xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'     xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'     xmlns:xsd='http://www.w3.org/2001/XMLSchema'>   <soap:Body>     <soap:Fault>       <faultcode>soap:Server</faultcode>       <faultstring>            System.Web.Services.Protocols.SoapException:            Server was unable to process request. ---&gt;            System.ArgumentNullException: Value cannot be null.          at whois.whois.GetWhoIS(String HostName)          --- End of inner exception stack trace ---       </faultstring>       <detail />     </soap:Fault>   </soap:Body> </soap:Envelope> 

(manually formatted for easier reading)

Can anyone tell me what am I doing wrong?

Ideally both in terms of use of SOAPpy, and why the SOAP message is incorrect.

Thanks!

  • 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. 2026-05-11T14:32:34+00:00Added an answer on May 11, 2026 at 2:32 pm

    Your call seems all right to me, i think this could be a soappy problem or misconfigured server (although i have not checked this thoroughly).

    This document also suggests incompatibilities between soappy and webservicex.net: http://users.jyu.fi/~mweber/teaching/ITKS545/exercises/ex5.pdf

    How i would work around this in this specific case?

    import urllib  url_handle = urllib.urlopen( 'http://www.webservicex.net/whois.asmx/GetWhoIS?HostName=%s' \                              % ('www.google.com') ) print url_handle.read() 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am playing with TFS 2010, and am trying to setup a build process

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.