Struggling with first web service

0
I am trying to connect to a SOAP api web service.  What i want to accomplish is to look up a person by using a unique identifier and i want to populate a datagrid with the values in mendix.  Where do i begin and what is the quickest way to accomplish this.  I can send the api documentation via private message if anyone out there can help. 
asked
1 answers
3

Hi Eben,

You need to get your hands on a WSDL file for the SOAP API that you want to use.

You can then create a new Web Service (in your module) and point it to this WSDL file. This will prompt you to decide which operations and attributes you are interested in from this web service. In the end Non-persistable-entites that match the expected results from the soap operation e.g. Person will be generated.

Next in a microflow, you can call a particual web service operation (e.g. Person_LookUp). The operation will have some parameters that you can set (e.g. Person_Id). The result will be a Person object with all the attirubtes set based on the API response.

Take a look at: https://docs.mendix.com/howto/integration/consume-a-simple-web-service and

https://docs.mendix.com/howto/integration/consume-a-complex-web-service

-Andrej

answered