Hi all!

I am working on web services. The idea is that I have a list of
services on Djnago that can be called by any kind of a client. To
create one web service I used the code from: 
http://www.djangosnippets.org/snippets/979/

The python client which calls the web service is quite simple:

#ws is my Django project dir
from soaplib.client import make_service_client
from ws.views import HelloWorldService
client = make_service_client('http://localhost:8000/hello_world/',
HelloWorldService())
client.say_hello('Dragan', 5)

I get the desired output.

Now, when I call the same web service via: http://www.validwsdl.com/
using public IP I get the following error in the SOAP message:

 Traceback (most recent call last): File "c:\python24\lib\site-packages
\soaplib-0.7.2dev_r27-py2.4.egg\soaplib\wsgi_soap.py", line 226, in
__call__ retval = apply(func, params) File "c:\python24\lib\site-
packages\soaplib-0.7.2dev_r27-py2.4.egg\soaplib\service.py", line 52,
in explainMethod return f(*args, **kwargs) File "C:\DjangoDev\ws\..\ws
\views.py", line 11, in say_hello for i in range(0, times): TypeError:
range() integer end argument expected, got NoneType.

It seems that the parameters Name and number of reps are not supplied
to the say_hello function.

I also tried with testing the web service with http://www.soapui.org/
and it doesn't work. I don't get the return value.

Am I missing something? Can anybody please help me out with this?

Cheers, Dragan.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to