Handling of multiple service functions

The SOAP (wsdl) has two service functions:
ServiceStatus:

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:tsas=“http://t.com/TSASERVICES”>

<soapenv:Header/>
<soapenv:Body>
<tsas:ServiceList>
<WebRequestCommon>

        <password>${password}</password>
        <userName>${userName}</userName>
     </WebRequestCommon>
     <MONITORSERVICESType>
        <enquiryInputCollection>
           <columnName>${tableName}</columnName>
           <criteriaValue>${value}</criteriaValue>
           <operand>${operand}</operand>
        </enquiryInputCollection>
     </MONITORSERVICESType>

<</tsas:ServiceList>
</soapenv:Body>
</soapenv:Envelope>

ServiceRequest:

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:tsas=“http://t.com/TSASERVICES”>

<soapenv:Header/>
<soapenv:Body>
<tsas:ServiceList>
<WebRequestCommon>

        <company>${company}</company>
        <password>${password}</password>
        <userName>${userName}</userName>
     </WebRequestCommon>
     <OfsFunction>
        <activityName></activityName>
        <assignReason></assignReason>
        <dueDate></dueDate>
        <extProcess></extProcess>
        <extProcessID></extProcessID>
        <gtsControl></gtsControl>
        <messageId></messageId>
        <noOfAuth></noOfAuth>
        <owner></owner>
        <replace></replace>
        <startDate></startDate>
        <user></user>
     </OfsFunction>
     <TSASERVICEMEBINPType id="${serviceName}">
        <SERVICECONTROL>${serviceStatus}</SERVICECONTROL>
     </TSASERVICEMEBINPType>

</tsas:ServiceRequest>
</soapenv:Body>
</soapenv:Envelope>

I am able to use the “ServiceRequest” to automate my scripts. How do I use the “ServiceStatus”?
When I try to Load from WSDL, the script appears for all service functions. How do I separate them? Or does it mean that I need to re-use same parameterised variables for different service functions?

Apologies if my question is not making sense since I am new to API automation.

how did you create the end-points?

  • Import WSDL
  • Create new webservice test object, input wsdl url, choose the function from dropdown list?

Yes. I created a webservice test oject and loaded the wsdl url http://${url}/TSASERVICES/services?wsdl.
Under Service function, the 4 functions appear. However, only Request message is allowed for all functions :
ws

When I open each function using SOAPUI, each functions understandably have different xml’s:

https://docs.katalon.com/katalon-studio/docs/import-soap-requests-from-wsdl.html

You might need to use the import feature in the above link

1 Like

Wow thanks @Brian_Ducson didn’t realise that’s how I use multiple service functions.