Hello Pete,
sorry for the late response - but yes, I copied and paste the exact
statement you posted here. The first one works right away. The second
one fails with the following error:
SQL0443N Routine "DB2XML.SOAPHTTPV" (specific name "SOAPHTTPVIVO") has
returned an error SQLSTATE with diagnostic text "1 is an invalid
index".
SQLSTATE=38327
But this is due to changes in XMLCAST function in DB2 version 9.1 - you
have to use XMLSERIALIZE now - change the 2nd statement to:
VALUES substr(DB2XML.SOAPHTTPV ('http://services.xmethods.net:80/soap',
'',
XMLSERIALIZE(XMLELEMENT(NAME "ns:getRate",
XMLNAMESPACES('urn:xmethods-CurrencyExchange' as "ns"),
XMLELEMENT(NAME "country1", 'united states'),
XMLELEMENT(NAME "country2", 'korea')) as varchar(160))),
1, 160);
So from my perspective that looks pretty much like a firewall issue.
Regards,
Michael
peteh wrote:
Quote:
schenkerm@gmail.com wrote: Quote:
Hi Pete
I just tried your first UDF call on my DB2 V9 on Windows and it worked
right away.
| >
Hi Michael;
Can you confirm that you cut-and-pasted the EXACT statement from my
post and it ran OK? That would seem to point to a firewall issue as
I've tried it many times over the last few days with no success.
Thanks!
>
Pete H
|