Consuming SOAP webservice using Django - django

I have a Django (1.4.3) application an need to consume a SOAP webservice?
But I haven't found anything about that.
What I need is simple, I format the XML using Django (done)
Now I need to post the XML on the endpoint, and check the results.
Tks

Well, I used Suds and it worked fine.

Related

How to call REST API and parse XML Structure?

I am new to Android Programming.
I want to use a RESTful Webservice for my android app where I will be calling a REST API and in response I want to parse the XML Structure, consume the XML tag values and show it in UI.
Can anybody guide me with the required steps and some sample code.
Thanks in advance!
You should glance at Retrofit.
Retrofit helps you to hook up with a server in a very elegant way.
By default, Retrofit expects JSON data but you can set it up to use XML, via the Simple library.

Creating and using SOAP based web service in Laravel framework

In Laravel 4 framework, how to create a SOAP based web service. I would like to build a SOA based web application in laravel. Please clarify with an example how to use web service with some step by step examples or links as i am completely new to laravel
Thanks in advance..
You can use "php-wsdl-creator" (also supports SOAP). They have a great tutorial and many demo php files to get you started. It can also easily be implemented in laravel or any other framework for that matter. :)
You can find more information on Google Code: https://code.google.com/p/php-wsdl-creator/
Also note that SOAP requires an extension to be loaded in PHP.
For more recent needs, you should use a Project such as wsdl2phpgenerator or PackageGenerator from WsdlToPhp. This sort of projects, requirable with composer, use an OOP approach and allows to build a SOAP request easily with PHP objects then handle the response just as the request with PHP objects.

Django gwt and rpc call

I'm using django, but I like to use it with gwt, well I've try using json with piston and works well, but I prefer using RPC call.
So I know that there's some rpc lib for django, but I'm confused about xml-rpc json-rpc gwt-rpc...
So the questions are:
1) where find a tutorial if exists...
2) or how can I do a simple rpc call in gwt and use django to server side
thanks, I'm asking here because I've find nothing in google thanks
Any particular reason you want to use RPC to Django instead of a web service from GWT application? I think using JSON communication between Django and GWT is much easier than RPC.
The main challenge in using RPC is that your Django and GWT client should communicate via a common protocol. On Django side you need a module that translates the GWT RPC calls to something Django understands and then convert the Django results into something GWT client application understands. In a nutshell RPC calls are serialized text stream sent over http via post method. On the server side you should be able to translate that into the right data structure by deserializing it. So you need a library that will do this serialization and deserialization for Django based on GWT-RPC protocol.
Useful links:
About GWT RPC:
Google documentation : RPC
GWT RPC in a nutshell
GWT + Django:
How to use Django with GWT?
Using GWT with Django using xml
Google Web Toolkit like application in Django
Pyjs
You can also look at http://pyjs.org/ which is a python to JS compiler and use it with Django. The great thing about pyjs is that you are still in Python world :)
http://www.derekschaefer.net/2011/02/08/pyjamas-django-pure-win/
http://gdwarner.blogspot.no/2008/10/brief-pyjamas-django-tutorial.html

Create SOAP message from WSDL using axiom

I'm a starting a project which consist in sending a request to a web-service (which is already available) and parsing the response. I have the WSDL and URL endpoints. Does anyone have a startup tutorial on how to build something from there?
I would like to use Axis2 + Axiom to send the service request and receive and process the response. I'm using eclipse as dev env. I've been search for a tut on how to do this but with no success.
Any suggestion would be greatly appreciated!
this might help you
creating a webservice client using eclipse
I don't know about Axiom, but SOAP UI is a terrific tool for testing web services in just the manner you describe.
I don't know if Eclipse has a plug-in for it. (They do for everything else.) IntelliJ supports it, so that's how I use it.
Well in conclusion, I did find two very useful links for the Apache axis2 project, got it working in no time!
A deep explanation Invoking Web Services using Apache Axis2:
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
For code generation from WSDL:
http://axis.apache.org/axis2/java/core/tools/eclipse/wsdl2java-plugin.html

Integrating smartgwt and web2py

I'd like to build an application using smartgwt and web2py.
I am new to both.
Ultimately what I would like to do is display objects obtained from a web2py backend in a smartgwt TileGrid.
Can anyone enumerate the broad strokes of what needs to be done? Or point me to any useful resources?
Any information that would apply more to django is also welcome.
download smartgwt (excellent framework by the way) and look into this example:
file://localhost/Users/massimodipierro/Desktop/smartgwt-1.0b1/samples/Showcase/www/com.smartgwt.sample.showcase.Showcase/index.html#tiling_load_on_deamnd
which displays images in a tilegrid. The images are received from Yahoo via an http request. The response is in JSON. Look into the source code. To see the json response from Yahoo try the following URL:
http://api.search.yahoo.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&output=json&query=snowboard
To make this work with web2py you need to replace that URL with the URL of a web2py action that returns a similar JSON response.
I do not know much about smartgwt but I am sure on the web2py google groups there are people willing to help.
Have a look at this tutorial on using web2py with Pajamas, which is another library built on GWT.