Forum Discussion
rickfish
12 years agoNew Contributor
Thanks but it isn't working for me...I must be doing something wrong. I'll post the actual xml that I am using. Keep in mind this is just a silly testcase
Step 1 request named 'ConversionRate':
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/">
<soapenv:Header/>
<soapenv:Body>
<web:ConversionRate>
<web:FromCurrency>AWG</web:FromCurrency>
<web:ToCurrency>AUD</web:ToCurrency>
</web:ConversionRate>
</soapenv:Body>
</soapenv:Envelope>
Step 1 response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ConversionRateResponse xmlns="http://www.webserviceX.NET/">
<ConversionRateResult>0.5444</ConversionRateResult>
</ConversionRateResponse>
</soap:Body>
</soap:Envelope>
Step 2 request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/">
<soapenv:Header/>
<soapenv:Body>
<web:ConversionRate>
<web:FromCurrency>${ConversionRate#Response#//ConversionRateResponse[1]/ConversionRateResult[1]}</web:FromCurrency>
<web:ToCurrency>?</web:ToCurrency>
</web:ConversionRate>
</soapenv:Body>
</soapenv:Envelope>
Note that the request that is generated has nothing between begin and end tags of <web:FromCurrency>. I would expect to see 0.5444. This request would ultimately fail... I am just trying to see if I can get the property expansion to work...
Step 1 request named 'ConversionRate':
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/">
<soapenv:Header/>
<soapenv:Body>
<web:ConversionRate>
<web:FromCurrency>AWG</web:FromCurrency>
<web:ToCurrency>AUD</web:ToCurrency>
</web:ConversionRate>
</soapenv:Body>
</soapenv:Envelope>
Step 1 response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ConversionRateResponse xmlns="http://www.webserviceX.NET/">
<ConversionRateResult>0.5444</ConversionRateResult>
</ConversionRateResponse>
</soap:Body>
</soap:Envelope>
Step 2 request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/">
<soapenv:Header/>
<soapenv:Body>
<web:ConversionRate>
<web:FromCurrency>${ConversionRate#Response#//ConversionRateResponse[1]/ConversionRateResult[1]}</web:FromCurrency>
<web:ToCurrency>?</web:ToCurrency>
</web:ConversionRate>
</soapenv:Body>
</soapenv:Envelope>
Note that the request that is generated has nothing between begin and end tags of <web:FromCurrency>. I would expect to see 0.5444. This request would ultimately fail... I am just trying to see if I can get the property expansion to work...
Related Content
Recent Discussions
- 3 days agoKLWallace