Re: Web Services, SOAP from CMS
On Tuesday, 02/27/2007 at 12:05 CST, Alan Ackerman [EMAIL PROTECTED] wrote: We're not allowed to use LDAP to access our Corporate LDAP Directory -- we have to use a Java API or web services. I don't follow this. LDAP is LDAP is LDAP. Who cares whether you use Java, C, REXX or assembler? This was the whole point of having Open protocols in the first place. (sigh) Alan Altmark z/VM Development IBM Endicott
Re: Web Services, SOAP from CMS
On 2/28/07, Alan Altmark [EMAIL PROTECTED] wrote: I don't follow this. LDAP is LDAP is LDAP. Who cares whether you use Java, C, REXX or assembler? This was the whole point of having Open protocols in the first place. (sigh) The Java API will probably slow you down enough that you don't monopolize the LDAP server ;-) I recall that just the web interface doing one request per connection slowed me down 2 orders of magnitude. On the serious side - if the powers decide to hide the LDAP server behind some web interface you have little choice. The reason for doing that may be to add more access control. Rob
Re: Web Services, SOAP from CMS
In it's simplest form, Web Services requires an HTTP client and an XML message parser. You would need to read the WSDL document (which itself is XML) in order to know where to send the request and what format the request should be in. When the data is returned, you will then need to refer back to the WSDL document to know what format the returned data is in as you are reading the it (which of course is in XML). As Rob indicated with AD, this will be ALOT easier with a Linux virtual machine and a TCP/IP connection from CMS to Linux to drive it. The tools are certainly available, I've used them to write SOAP articles and produce presentations on the topic. Alan Ackerman wrote: Has anyone had success accessing web services (SOAP, WSDL) from CMS? Stev e Gantry talked about wanting to do this from assembler in the thread below. I have no ne ed for assembler. (I prefer REXX or CMS Pipelines, but we also have a C compiler.) We're not allowed to use LDAP to access our Corporate LDAP Directory -- w e have to use a Java API or web services. No Java in CMS any more (and it performed really poo rly when we did have one). There are tools out there, but they seems to be mostly Java. SOAP i s supposed to be platform and language independent, but coding the whole thing from scratc h looks like it would take me quite a while. Basically, all I have is the WSDL documents for various web services. (WS DL is in the form of an XML document.) I found a fair amount of information on web services at h ttp:// www.w3schools.com/wsdl/default.asp -- but no examples in REXX or CMS Pip elines. On Tue, 21 Mar 2006 13:51:23 -0600, Chuck Arney [EMAIL PROTECTED] wro te: If you are going to talk to a true Web Service via a SOAP Server, you wi ll need to create the XML document containing the SOAP Envelope and the parameters defined in the services WSDL in the SOAP Body. Then use the HTTP protocol to send the request to the SOAP server and receive the response SOAP Envelope XML document. It's certainly doable in assembler but it will be a fair learning curve if you are not already very familiar with Web Services and HTTP. Chuck Arney illustro Systems International, LLC http://www.illustro.com Access 3270 data from anywhere with z/XML-Host Access 3270 apps from the web with z/Web-Host Access CMS minidisks from OS/390 or VSE with CMSACCess Voice: 972-296-6166 _ From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Steve Gentry Sent: Tuesday, March 21, 2006 1:40 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: VM, assembler and SOCKETS RXSockets: I'd say about 95% of our apps are written in assembler and D MS. The user would run a green-screen app. entering the necessary data. This data would then be sent to the WAS Intel box. The info processed and returned back to VM to be displayed on the green-screen. I don't think DMS is Rexx friendly. g. Adam Thornton [EMAIL PROTECTED] Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 03/21/2006 02:27 PM Please respond to The IBM z/VM Operating System To:IBMVM@LISTSERV.UARK.EDU cc: Subject:Re: VM, assembler and SOCKETS On Mar 21, 2006, at 1:23 PM, Steve Gentry wrote: Communicate: Well, that's the issue. That's one of the things I need guidance on. The application would run on VM and request the information from a WAS server running on Intel. That information would then be returned to the VM app. I assumed they would communicate via TCPIP I've done this using Rexx sockets but in the other direction. i.e. I have an app. running on an http server running on Linux (running on an IFL running VM) using hipersockets, etc. It requests info from VM, sends it back and displays it on a web page. But remember, I'd really like to avoid using Rexx sockets. If it is absolutely the only way to do it, then so be it. Yeah, if they're running on different boxes (it was not clear that WAS wasn't running on z/Linux on the same box or under the same VM instance in your original problem formulation) TCP is the obvious choice. I'm sure assembler interfaces to sockets exist and work just fine, but why not RXSockets? It's way, way easier than any alternative that I'm aware of. Adam -- Rich Smrcina VM Assist, Inc. Phone: 414-491-6001 Ans Service: 360-715-2467 rich.smrcina at vmassist.com Catch the WAVV! http://www.wavv.org WAVV 2007 - Green Bay, WI - May 18-22, 2007
Web Services, SOAP from CMS
Has anyone had success accessing web services (SOAP, WSDL) from CMS? Stev e Gantry talked about wanting to do this from assembler in the thread below. I have no ne ed for assembler. (I prefer REXX or CMS Pipelines, but we also have a C compiler.) We're not allowed to use LDAP to access our Corporate LDAP Directory -- w e have to use a Java API or web services. No Java in CMS any more (and it performed really poo rly when we did have one). There are tools out there, but they seems to be mostly Java. SOAP i s supposed to be platform and language independent, but coding the whole thing from scratc h looks like it would take me quite a while. Basically, all I have is the WSDL documents for various web services. (WS DL is in the form of an XML document.) I found a fair amount of information on web services at h ttp:// www.w3schools.com/wsdl/default.asp -- but no examples in REXX or CMS Pip elines. On Tue, 21 Mar 2006 13:51:23 -0600, Chuck Arney [EMAIL PROTECTED] wro te: If you are going to talk to a true Web Service via a SOAP Server, you wi ll need to create the XML document containing the SOAP Envelope and the parameters defined in the services WSDL in the SOAP Body. Then use the HTTP protocol to send the request to the SOAP server and receive the response SOAP Envelope XML document. It's certainly doable in assembler but it will be a fair learning curve if you are not already very familiar with Web Services and HTTP. Chuck Arney illustro Systems International, LLC http://www.illustro.com Access 3270 data from anywhere with z/XML-Host Access 3270 apps from the web with z/Web-Host Access CMS minidisks from OS/390 or VSE with CMSACCess Voice: 972-296-6166 _ From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Steve Gentry Sent: Tuesday, March 21, 2006 1:40 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: VM, assembler and SOCKETS RXSockets: I'd say about 95% of our apps are written in assembler and D MS. The user would run a green-screen app. entering the necessary data. This data would then be sent to the WAS Intel box. The info processed and returned back to VM to be displayed on the green-screen. I don't think DMS is Rexx friendly. g. Adam Thornton [EMAIL PROTECTED] Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 03/21/2006 02:27 PM Please respond to The IBM z/VM Operating System To:IBMVM@LISTSERV.UARK.EDU cc: Subject:Re: VM, assembler and SOCKETS On Mar 21, 2006, at 1:23 PM, Steve Gentry wrote: Communicate: Well, that's the issue. That's one of the things I need guidance on. The application would run on VM and request the information from a WAS server running on Intel. That information would then be returned to the VM app. I assumed they would communicate via TCPIP I've done this using Rexx sockets but in the other direction. i.e. I have an app. running on an http server running on Linux (running on an IFL running VM) using hipersockets, etc. It requests info from VM, sends it back and displays it on a web page. But remember, I'd really like to avoid using Rexx sockets. If it is absolutely the only way to do it, then so be it. Yeah, if they're running on different boxes (it was not clear that WAS wasn't running on z/Linux on the same box or under the same VM instance in your original problem formulation) TCP is the obvious choice. I'm sure assembler interfaces to sockets exist and work just fine, but why not RXSockets? It's way, way easier than any alternative that I'm aware of. Adam