Message from Spin handling web service from SOAPUI

I’m calling a web service on a SOAPUI mock server.

I’m having issues processing the response. I get the following message:-

Cannot instantiate process definition length-conversion:10:b1ab3829-c24c-11e6-8173-a0a8cd4879e9: Error while evaluating expression: ${S(response).childElement("ConversionRateResult")}. Cause: org.camunda.spin.xml.SpinXmlElementException: SPIN/DOM-XML-01007 Unable to find child element with namespace 'http://www.w3.org/2003/05/soap-envelope' and name 'ConversionRateResult'

The response I have set up on SOAPUI is the following:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://www.webserviceX.NET/">
   <soap:Body>
      <web:ConversionRateResponse>
         <web:ConversionRateResult>${rate}</web:ConversionRateResult>
      </web:ConversionRateResponse>
   </soap:Body>
</soap:Envelope>

Any ideas why this issue is getting picked up and what needs to be done to correct it?

Kind regards,

Anthony

Hi,

Perhaps you have an xpath expression looking for
<soap:ConversionRateResponse>

rather than
<web:ConversionRateResponse>

The error is complaining about an element name in a namespace which it cant find…

regards

Rob

1 Like

Hi,

Yes, I tried messing about with different combinations including changing the web for soap but it didn’t work and to be honest I don’t really know what I’m looking for. Like I said I’m just messing about.

How did you solve this?