If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Consuming Web Service From DB2 database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-11, 03:03
amit24into7 amit24into7 is offline
Registered User
 
Join Date: Jul 2011
Posts: 2
Consuming Web Service From DB2 database

Hi All,
I am using DB2 V9.1 and i have to consume Web Service using Trigger . I have one table with set of tables . I have created Trigger on a column on my table which bascially calls a function(UDF).using this UDF i need to consume Any Web Service . Please guide me

Regards
Amit
Mahindra Satyam
Reply With Quote
  #2 (permalink)  
Old 07-12-11, 03:53
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Amit
Start here

Basically, you create a DB2 UDF using the WSDL. Once the UDF is created, then it is like calling any other DB2 function.

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 07-13-11, 01:28
amit24into7 amit24into7 is offline
Registered User
 
Join Date: Jul 2011
Posts: 2
SOAPHTTPV Error

Hi , I am invoking below SQL Command
=============================================
SELECT DB2XML.SOAPHTTPV('http://CMS-ACEPC145063:9080/HelloServiceWeb/sca/HelloServiceExport1','','<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hel="http://HelloService/HelloService">' CONCAT '<soapenv:Body>' CONCAT '<helperation1><input1>asd</input1></helperation1>' CONCAT '</soapenv:Body>' CONCAT '</soapenv:Envelope>')
FROM SYSIBM.SYSDUMMY1
=============================================
once i execute this i am getting this error

SQL0443N Routine "SOAPHTTPV" (specific name "*PVIVO") has returned an error
SQLSTATE with diagnostic text "Could not create a converter for encoding:
IBM-1252 ". SQLSTATE=38318

SQL0443N Routine "SOAPHTTPV" (specific name "*PVIVO") has returned an error SQLSTATE with diagnostic text "Could not create a converter for encoding: IBM-1252".

=============================================
Kindly Help

Thanks
Amit
Mahindra Satyam
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On