Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How i can read data from a webservice to odoo?

By
José Calambrogio
on 11/4/14, 11:29 PM 798 views

Hello

i'm using an addon to validate the VAT of my country. A goverment page have the validation and if it's true, send information of the company .

The structure is a xml like this: http://www.sunat.gob.pe/w/wapS01Alias?ruc=20100070970 . 
So how i can read this service and update the information when the user write the VAT.

Thanks

1

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 11/5/14, 3:31 AM

This is a bit broad. It would all depend on the accessability of your government's page. If it accepts a form of SOAP, you might want to look into python's excellent soap library "suds". 

Also check if your government wishes some form of sign-up and/or credentials for making these requests (which I can imagine). 

Next, create a wizard or button of some sort that creates a connection to the server using the given credentials and the VAT filled in.

0
José Calambrogio
On 11/5/14, 9:11 AM

Hello Ludo

Thanks for the steps. I have clear this. I'm think that odoo have libraries or classes to make it. The government's page don't need credentials.

I could  change the question: does have odoo libraries to consume data from a web services?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/4/14, 11:29 PM
Seen: 798 times
Last updated: 3/16/15, 8:10 AM