I have created a simple form in SAPUI5 with textviews. I have to bind the data from SOAP service to my form. How to do that? Here is the form , service.view.xml
<mvc:View controllerName="themes.controller.service" xmlns:f="sap.ui.layout.form" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:mvc="sap.ui.core.mvc" xmlns:semantic="sap.m.semantic" xmlns:table="sap.m.table" xmlns="sap.m">
<Bar id="bar4">
<contentLeft>
<Button icon="sap-icon://nav-back" press="onNavBack"/>
<Button icon="sap-icon://home" press="onNavBack"/>
</contentLeft>
<contentRight>
<Button icon="sap-icon://account" press="handleAccount"/>
</contentRight>
</Bar>
<Page id="pag1">
<content>
<f:SimpleForm id="form3" columnsL="1" columnsM="1" editable="false" emptySpanL="4"
emptySpanM="4" labelSpanL="3" labelSpanM="3" layout="ResponsiveGridLayout" maxContainerCols="2" minWidth="1024" >
<f:content>
<Label text="Country"/>
<Text text="{country}"/>
<Label text="Phone Number"/>
<Text text="{phone}"/>
<Label text="Carrier"/>
<Text text="{carrier}"/>
<Label text="Incoterms"/>
<Text text="{incoterms}"/>
</f:content>
</f:SimpleForm>
</content>
</Page>
<Bar id="bar5">
<contentLeft>
<Button icon="sap-icon://email" press="handleContact"/>
</contentLeft>
</Bar>
How do I work on the model creation and taking values from the SOAP service? As I am only familiar with OData service please help me in binding the values from SOAP service
It can be done fairly easy (and contrary to what Marc commented, you'll need just one
$.ajax
call) and ansap.ui.model.xml.XMLModel
:See https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.xml.XMLModel.html for more info