Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

EXEC CICS INVOKE WEB SERVICE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: EXEC CICS INVOKE WEB SERVICE
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7230

PostPosted: Mon Sep 12, 2011 12:51 pm    Post subject: Reply to: EXEC CICS INVOKE WEB SERVICE
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Sep 12, 2011 1:10 pm    Post subject: Reply to: EXEC CICS INVOKE WEB SERVICE
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
http://whois.arin.net/rest/net/NET-173-201-0-0-1/pft
and
http://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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Sep 12, 2011 2:40 pm    Post subject: Reply to: EXEC CICS INVOKE WEB SERVICE
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Sep 12, 2011 4:13 pm    Post subject: Reply to: EXEC CICS INVOKE WEB SERVICE
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Sep 12, 2011 4:18 pm    Post subject: Reply to: EXEC CICS INVOKE WEB SERVICE
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: 7913
Location: Bellevue, IA

PostPosted: Mon Sep 12, 2011 4:42 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Sep 12, 2011 10:53 pm    Post subject:
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: 72
Location: Chennai

PostPosted: Fri Jul 29, 2016 1:12 pm    Post subject: Re: EXEC CICS INVOKE WEB SERVICE
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

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

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

http://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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us