IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

EXEC CICS INVOKE WEB SERVICE


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Mon Sep 12, 2011 12:10 pm
Reply with quote

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
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Sep 12, 2011 12:51 pm
Reply with quote

Perhaps one of the moderators could mask that IP address for you.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 12, 2011 1:10 pm
Reply with quote

I took the time to check icon_cool.gif
both url and ip address posted is not sensitive information ( nor is any URL/IP address IMHO )

as per
whois.arin.net/rest/net/NET-173-201-0-0-1/pft
and
173.201.44.188/ws/default.aspx
Quote:
Web services enable to quickly integrate applications across multiple platforms, systems and even across businesses. Emerging web services standards such as SOAP, WSDL and UDDI will enable system-to-system communication that is easier and cheaper than ever before.

WebserviceX.NET provides programmable business logic components and standing data that serve as "black boxes " to provide access to functionality and data via web services

so no need to mask !

add on
a whois WebserviceX.NET

returned
Quote:
Registrant:
Generic Objects Technologies Ltd
Finchley House,707 High Road
London N12 0BT
United Kingdom
Back to top
View user's profile Send private message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Mon Sep 12, 2011 2:36 pm
Reply with quote

WebServicesX.net is a open site which hosts free web services for the testing your web application by establishing the connectivity. By the way any fruitful response other than masking.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 12, 2011 2:40 pm
Reply with quote

Quote:
By the way any fruitful response other than masking.


You might get better answers by refraining from making stupid/condescending comments on the replies given icon_evil.gif

and before complaining learn to post consistent info ...

'http://www.webservicex.net/CurrencyConvertor.asmx'
VS.
'http://173.201.44.188:80/ConvertTemperature.asmx'

the issue is that You are invoking two different URIs
check better next time

You should know that changing two things at the same time when testing is just a waste of time for everybody
Back to top
View user's profile Send private message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Mon Sep 12, 2011 3:24 pm
Reply with quote

Sorry there is a typo. The correct URL and IP is given below:

'http://www.webservicex.net/ConvertTemperatur.asmx'
VS.
'http://173.201.44.188:80/ConvertTemperature.asmx'
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 12, 2011 4:13 pm
Reply with quote

Quote:
'http://www.webservicex.net/ConvertTemperatur.asmx'

another typo...
Quote:
'http://173.201.44.188:80/ConvertTemperature.asmx'


typoloop icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 12, 2011 4:18 pm
Reply with quote

very little we can do from here...

You will have just to recheck all the definitions!

are there any other ones working ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Sep 12, 2011 4:42 pm
Reply with quote

Quote:
So the DNS resolve is not working here and not able to fix this issue. Need some suggestion / guidelines for resolving this issue.
This would be an issue AT YOUR SITE with the way your site has defined its TCP/IP configuration on the mainframe and the DNS resolution on your internal network.

So why do you think a forum can answer a question about the specific way your site is set up? Don't you think, perhaps, it would be a good idea to consult your site support group for questions about your site? Since we don't work at your site, there's absolutely no chance we have any idea about your site configuration.
Back to top
View user's profile Send private message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Mon Sep 12, 2011 4:42 pm
Reply with quote

I verified everything and all the resource definitons are correct. Not sure the DNS Resolve alone is not working. Do we need to install any other services (like Name Server) to enable DNS resolve?

Pls suggest.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 12, 2011 10:53 pm
Reply with quote

Hello,

Quote:
Do we need to install any other services (like Name Server) to enable DNS resolve?
You need to work with your local network support people to see what needs to be done to correct this.
Back to top
View user's profile Send private message
cmsmoon

New User


Joined: 17 Jun 2010
Posts: 75
Location: Chennai

PostPosted: Fri Jul 29, 2016 1:12 pm
Reply with quote

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?
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Fri Jul 29, 2016 4:28 pm
Reply with quote

ibmmainframes.com/viewtopic.php?p=336281#336281
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top