Hello forum:
I am attempting to retrieve the Washington State tax rate for a particular address. When I use the state's example URL:
http://dor.wa.gov/AddressRates.aspx?...ity=&zip=98501
I get the response as XML as requested by the output=xml in the URL.
Try it, you should see a XML response.
When I use the following mvt:call:
<mvt:assign name="g.url" value="'http://dor.wa.gov/AddressRates.aspx'" />
<mvt:assign name="g.output" value = "'XML'" />
<mvt:assign name="g.addr" value = "'6500 Linderson way'" />
<mvt:assign name="g.city" value = "''" />
<mvt:assign name="g.zip" value = "'98501'" />
<mvt:call action="g.url" method="'GET'" fields="'output,addr,city,zip'">
<mvt:assign name="g.callvalue" value="s.callvalue" />
</mvt:call>
result: &mvt:global:callvalue; <br>
from the GD variables dump:
variable &mvt:global:callvalue; is shown as text even thought I requested xml.
Am I doing something wrong or is there a problem with mvt:call?
I'll open a ticket if there is no problem with the template code I've created. Just want to be certain it's not my fault first.
Thanks, Larry
I am attempting to retrieve the Washington State tax rate for a particular address. When I use the state's example URL:
http://dor.wa.gov/AddressRates.aspx?...ity=&zip=98501
I get the response as XML as requested by the output=xml in the URL.
Try it, you should see a XML response.
When I use the following mvt:call:
<mvt:assign name="g.url" value="'http://dor.wa.gov/AddressRates.aspx'" />
<mvt:assign name="g.output" value = "'XML'" />
<mvt:assign name="g.addr" value = "'6500 Linderson way'" />
<mvt:assign name="g.city" value = "''" />
<mvt:assign name="g.zip" value = "'98501'" />
<mvt:call action="g.url" method="'GET'" fields="'output,addr,city,zip'">
<mvt:assign name="g.callvalue" value="s.callvalue" />
</mvt:call>
result: &mvt:global:callvalue; <br>
from the GD variables dump:
884 | g.callvalue | &mvt:global:callvalue; | LocationCode=3406 Rate=0.087 ResultCode=0 |
Am I doing something wrong or is there a problem with mvt:call?
I'll open a ticket if there is no problem with the template code I've created. Just want to be certain it's not my fault first.
Thanks, Larry
Comment