Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

CICS :: RE: EXEC CICS INVOKE WEB SERVICE

$
0
0
Author: cmsmoon
Subject: Re: EXEC CICS INVOKE WEB SERVICE
Posted: Fri Jul 29, 2016 1:12 pm (GMT 5.5)

boo_sri wrote:
Hi -
I am consuming web services from the external Vendor and i am using the below command to Invoke Web Service from CICS Environment.
Code:
     MOVE 'http://www.webservicex.net/CurrencyConvertor.asmx'
                              TO WS-URI-ENDPOINT             
     MOVE 'GetInfoByZip' TO WS-WEBSERVICE-NAME               
      MOVE 'GetInfoByZip' TO WS-OPERATION-NAME               
     EXEC CICS PUT CONTAINER(WS-CONTAINER-NAME)             
                  CHANNEL(WS-CHANNEL-NAME)                   
                  FROM(ConversionRate)                       
                  FLENGTH(LENGTH OF ConversionRate)         
                END-EXEC                                     
     EXEC CICS INVOKE WEBSERVICE('CurrencyConvertor')       
                        CHANNEL(WS-CHANNEL-NAME)             
                        URI(WS-URI-ENDPOINT)                 
                        OPERATION('ConversionRate')         
             RESP(COMMAND-RESP) RESP2(COMMAND-RESP2)         
     END-EXEC                                               

The above request is giving invalid request request. But when i use IP Address (http://111.222.33.4444:55/ConvertTemperature.asmx) instead of URL its working. So the DNS resolve is not working here and not able to fix this issue. Need some suggestion / guidelines for resolving this issue.
Ip Address edited

I have created the following entries successfully.
- wsbind file
- PIPE
- Web Service (In Service)


Thanks,
Boopathy




The above code works?
what value should give for channel name?
_________________
Thanks & Regards
Saravanan CM


Viewing all articles
Browse latest Browse all 8500

Trending Articles