I am working on a SOAP request API example and am stuck. I am trying to use the following
http://www.yodaspeak.co.uk/webservice/yodatalk.php/yodaTalk/?WSDL
If I pass the string above into SoapUI it works as expected and I can create a request based on the output it gives me. I just replace the ? with the sentence I want to use with the API.
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:yod=“uri:http://www.yodaspeak.co.uk/webservice/yodatalk”>
soapenv:Header/
soapenv:Body
yod:yodaTalk
?
</yod:yodaTalk>
</soapenv:Body>
</soapenv:Envelope>
This is the output I get in SoapUI after passing you are my favorite person as the ? variable.
<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/”>
SOAP-ENV:Body
<ns1:yodaTalkResponse xmlns:ns1=“uri:http://www.yodaspeak.co.uk/webservice/yodatalk”>
My favorite person, you are. Herh herh herh.
</ns1:yodaTalkResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>