Friday, April 27, 2012

Re: Soap web services with Soaplib in Django

I solve this issue

On Friday, 27 April 2012 12:39:59 UTC+5:30, Meenakshi Ithape wrote:
Thanks for the reply,
I already done this & i create client using suds,& also create the view for that client, display message on the browser.
But now i have another issue,
I create the client, who access the web services from another url, but i didn't know
how to send the object to the web_service method or how to check the methods parameters type using suds?
If know this ,plz let me know.


On Thursday, 26 April 2012 19:34:06 UTC+5:30, somecallitblues wrote:
Never used that soap client, but from looking at the example on the right you'd do something like this:

def your_view(request):
from soaplib.client import make_service_client
from foo.views import HelloWorldService
client = make_service_client('http://localhost:8000/hello_world/', HelloWorldService())
result = client.say_hello('John', 2)
d = {'result': result}
return render_to_response('frontend/paypal.html', d)

But, you probably want to do something with the result of your call before passing it to the template. I can't tell what your web service will return so I can't advise you on that.

Also, there is another great SOAP client for python you may want to look at https://fedorahosted.org/suds/ if you're having issues with this one.

Cheers,

-m

On 26 April 2012 19:26, Meenakshi Ithape wrote:
Thanks for the reply,
I am new in django, Can you suggest me, how should i display the result which is getting from web service display it on web-browser?
I am waiting for the reply.

On Thursday, 26 April 2012 11:36:19 UTC+5:30, somecallitblues wrote:
It's probably a problem with what you're passing to the template or what you have in your template. You should supply some actual code from your view and your template.

-m

On 25 April 2012 15:01, Meenakshi Ithape wrote:
I used the Soap web services with Soaplib in Django, for that i take
the help from below link
http://djangosnippets.org/snippets/979/
When i run this code  through command prompt it runs properly, but
when i run it on browser it shows nothing,
Can anybody please help me, what should i done wrong?

Thanks for any suggestions

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/cFhWHJUG2rsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/yDxbL_EYf5sJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment