HTTP500 result from SOAP request in python
<p>this question might be fairly specific for one service but I don't understand why I am getting a HTTP500 response from the SOAP service. I am seeing the service I want to access and I see which parameters are required. Still I am getting HTTP500. Is there something wrong with the service or my code?</p>

<pre><code>#!/usr/bin/env python
# Import WSDL package
from SOAPpy import WSDL

# Create service interface
wsdlUrl = 'http://bioinf.cs.ucl.ac.uk/psipred_api/wsdl'

# Download the WSDL file
server = WSDL.Proxy(wsdlUrl)

# Get the information about which services are provided by this host
print server.methods.keys()

# After selecting the service of interest let's find out which arguments are necessary
callInfo = server.methods['PsipredSubmit']
for para in callInfo.inparams:
   print para.name, para.type

# Now let's discover what we will get back
for para in callInfo.outparams:
   print para.name, para.type

sequence = "MLELLPTAVEGVSQAQITGRPEWIWLALGTALMGLGTLYFLVKGMGVSDPDAKKFYAITTLVPAIAFTMYLSMLLGYGLTMVPFGGEQNPIYWARYADWLFTTPLLLLDLALLVDADQGTILALVGADGIMIGTGLVGALTKVYSYRFVWWAISTAAMLYILYVLFFGFTSKAESMRPEVASTFKVLRNVTVVLWSAYPVVWLIGSEGAGIVPLNIETLLFMVLDVSAKVGFGLILLRSRAIFGEAEAPEPSAGDGAAATSD"
email = "psipred@cs.ucl.ac.uk"
subject = "test"

result = server.PsipredSubmit(sequence, email, subject, "True", "False", "False", "all")

print result
</code></pre>

<p>Generally a 500 result means the server encountered an unexpected error while processing your request.</p>

<p>This could be a temporary situation which will get resolved in a day or two: perhaps the server has a bad RAM chip, or its disk is full.</p>

<p>Or it could be completely intentional: perhaps one of the values you submitted was somehow incorrect, and the server is basically saying "You screwed up; go away."  (In this case one hopes that the server would respond with a more helpful diagnostic message, but it ain't always so.)</p>

<p>If you have an official connection with the hosting organization, or if they're nice people willing to help, you might be able to send them a message asking what went wrong.</p>

python soap bioinformatics