Hi All;
I am trying to test the web services consumer example on a DB2 v9 ESE
Windows server. I have tried 2 methods which both return the same
error:
-----------------------------------------------------------------------
[IBM][CLI Driver][DB2/NT] SQL0443N Routine "DB2XML.SOAPHTTPV"
(specific name "SOAPHTTPVIVO") has returned an error SQLSTATE with
diagnostic text "Error during socket connect". SQLSTATE=38309
------------------------------------------------------------------------
Here is the code that generates the error (method #1)
-------------------------------------------------------------------------
values db2xml.soaphttpv('http://services.xmethods.net/soap'
,''
,varchar('<ns1:getRate xmlns:ns1="urn:xmethods-CurrencyExchange"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
|| '<country1 xsi:type="xsd:string">usa</country1>'
|| '<country2 xsi:type="xsd:string">euro</country2>'
|| '</ns1:getRate>')
)
---------------------------------------------------------------------------
Here is the code for method #2
---------------------------------------------------------------------------
VALUES substr(DB2XML.SOAPHTTPV ('http://services.xmethods.net:80/soap',
'',
XMLCAST(XMLELEMENT(NAME "ns:getRate",
XMLNAMESPACES('urn:xmethods-CurrencyExchange' as "ns"),
XMLELEMENT(NAME "country1", 'united states'),
XMLELEMENT(NAME "country2", 'korea')) as varchar(160))),
1, 160);
----------------------------------------------------------------------------
Is the provider still functional? Do I have a firewall issue? Has
anyone gotten these to work? Thanks for any help or insight.
Pete H