Created
August 23, 2009 03:42
-
-
Save leoluz/173149 to your computer and use it in GitHub Desktop.
Accessing a SOAP-WS within python using suds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Esse exemplo foi testado com o exercicio do capitulo 20 | |
# do curso da Caelum (fj31) | |
# | |
# Para instalar a lib do suds faca como root: | |
# $sudo easy_install suds | |
# digite python no terminal para invocar o interpretador do python. | |
# Em seguida digite as seguintes linhas: | |
>>>from suds.client import Client | |
>>>client = Client('http://localhost:8080/ConsultaDeLivrosBeanService/ConsultaDeLivrosBean?wsdl') | |
>>>livros = client.service.buscaLivro('Pais e Filhos') | |
>>>print livros | |
# Mais intuitivo que ruby. :P |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment