How to integrate webservice with real estate website?

Asked

Viewed 604 times

-5

I am a programmer but I did not get to do the programming logic part and I am struggling on a certain subject. I need to integrate real estate information into a website through data contained in a web-service. The integration manual is this and I need to understand what the manual is suggesting that I do.

The first thing I thought about doing was to fetch the information via PHP so I could use it as a data source and feed my website. But then I started reading some things related to SOAP that for me is nothing more than the web-service authentication protocol, correct me if I’m wrong.

I started reading some things also about XML and thought ... does the system want me to generate a file xml or soap to later consult it with PHP? But will this work in PHP is no longer enough for me to perform my tasks?

Can help me clarify what I really need to start my project, I do everything in race, I know it’s harder but I promise I’ll start keeping a study routine.

In short:

  • The PHP I created is enough to make my queries?
    I realized that the PHP I created as shown in this link is already the request with the authentication method via SOAP, IE, it is already returning everything that is in the web-service.

  • I need to create XML or SOAP files?
    I realized that the query is already being sent through this filing cabinet containing its parameters, it itself receives the result of the request.

  • Why should I create these files?
    I realized that there is no need to create any additional file to receive the result of the query, this result is being received here.

The web-service ordered returned 950 records with 175 fields each record in 10 seconds. It’s a good time?

  • 3

    I think the question is "too wide". Who wants to answer need to read a manual? (Please, real link, shortened is not cool). Analyze an array of 16,000 lines? . . I have the impression that your 3 questions could be distributed in another 9...

  • Excuse the shortened was because the link was too big. I’m still learning how to use Sopt and I’m very excited about the portal. As for the question, the user who answered me summed up 80% of what I need to know, so this question only seems large but boils down to a summarized explanation of logical events. I ask you to re-evaluate -1. Thank you.

  • 2

    @Marcosviniciusnasc.Pereira The answer says generically something about webservices. In my mind, it doesn’t answer what you asked, so the question may not be clear. You can decide what is good for you but it will be strange for you to pass so much information and such a generic answer solve your problem. Also, if you have code or other information, ask the question, it would probably be more specific.

  • 2

    Technically, it wasn’t -1, it was a closing vote that I have just removed, since it seems that maybe I have not seen the forest, only the trees, and leave it to others to decide. . . . But your feedback on the answer indicates that it is better to go opening new questions as you advance in your project. As they say there in English: just my 2 cents ;)

  • This question seems to be decontextualized because it is about a problem other than what was asked, and there is no way to be harnessed by future visitors

1 answer

2


I will try to explain in a didactic way. But details you will need to search the terms and patterns.

When consumed data in Webservices of this type (in the document you presented) you need to with your PHP formulate a question in order to make the WS server understand what you want and answer you correctly. Basically what is in the manual is the specification of how to ask the question to the webservice.

You will build an XML file containing the parameters of your question, standardized as the server requires. When you send this XML file to it using PHP with SOAP, WS will validate the document you sent and provide the response you need, it will return another XML with the requested data or a request error if applicable.

  • This link http://pastebin.com/nNcnkzkL shows the code that makes the request to the web-service via SOAP, so I’ve come to the conclusion that the request file is already being generated automatically, right? And this link http://axitech.com.br/vista/index.php is the answer. So the only thing I have left to do is to look at this file, right?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.