Help Center/
ROMA Connect/
Developer Guide (ME-Abu Dhabi Region)/
Developer Guide for Service Integration/
Developing Function APIs/
SoapClient
Updated on 2023-02-28 GMT+08:00
SoapClient
Path
com.roma.apic.livedata.client.v1.SoapClient
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
importClass(com.roma.apic.livedata.client.v1.SoapClient); importClass(com.roma.apic.livedata.config.v1.SoapConfig); importClass(com.roma.apic.livedata.common.v1.XmlUtils); function execute(data) { var soap = new SoapConfig(); soap.setUrl("http://test.webservice.com/ws"); soap.setNamespace("http://spring.io/guides/gs-producing-web-service"); soap.setOperation("getCountryRequest"); soap.setNamespacePrefix("ser"); soap.setBodyPrefix("ser"); soap.setEnvelopePrefix("soapenv"); var content = { "getCountryRequest": { "ser:name": "Spain" }, }; soap.setContent(content); var client = new SoapClient(soap); var result = client.execute(); var body = result.getBody(); return XmlUtils.toJson(body); } |
Method List
Returned Type |
Method and Description |
---|---|
okhttp3.Response |
request(HttpConfig config) Sends REST requests. |
Parent topic: Developing Function APIs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot