[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: WSDL2RPG test pgm requires add'l libs in libl?



A bit closer, but still not quite there.
I confirmed that the SRVPGM WSDL2RPGRT looks as it should, and that the WSDL2RPG bnddir has explicit libraries per your reply.  I added an H-spec to my test pgm to specify BNDDIR('WSDL2RPG' : 'WEBSVC_NMS'), added those bnddir's to the H-spec in the base stub, compile new modules, and created both stub srvpgm and test pgm without the BNDSRVPGM parameter.  That got me to where WSDL2RPG was not required in the run-time libl.

It still insists that I have either LIBHTTP or LIBEXPAT at run-time.  

I noticed that the stub-generator includes the 'HTTPAPI' bnddir in the h-spec.  'HTTPAPI' binding directory uses *LIBL for both HTTPAPIR4 and EXPAT srvpgms.  Because both of those are also in the WSDL2RPG bnddir, so I figured I could remove 'HTTPAPI' from the H-specs, so long as I had the 'WSDL2RPG' bnddir there.  Compiled new modules, and created both stub srvpgm and test pgm without the BNDSRVPGM parameter.  No matter what I do, I can't get the test to run without either LIBHTTP or LIBEXPAT (either one will do).  Can't find srvpgm EXPAT without it.

-- Michael
~~~~~~~~~~~~~~~~~~~~

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of thomas.raddatz@xxxxxx
Sent: Wednesday, January 25, 2012 2:56 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: WSDL2RPG test pgm requires add'l libs in libl?


Michael,

First of all please verify that the service programs used by WSDL2RPGRT are not bound by *LIBL. "DSPSRVPGM WSDL2RPGRT" should look as shown below:

  DSPSRVPGM SRVPGM(WSDL2RPGRT) DETAIL(*SRVPGM)

  Service 
  Program     Library     Activation  Signature 
  BASICS1     WSDL1.15.0  *IMMED      E58599A289969540F14BF1F440404040
  HTTPAPIR4   LIBHTTP     *IMMED      C8E3E3D7C1D7C9E2E2D3F0F0F1404040
  EXPAT       LIBHTTP     *IMMED      C5E7D7C1E3C6D6D9C9E2C5D9C9C5E2F2
  QC2UTIL1    QSYS        *IMMED      CB1F803582C31AC25B4DCBDD1B6D0948
  QC2UTIL2    QSYS        *IMMED      A11653CED63C16950B06C44C1F6E95C2
  QC2UTIL3    QSYS        *IMMED      D8C3F2E4E3C9D3F34040404040404040
  QC2IFS      QSYS        *IMMED      6E2D63C42B8D16E74EA1DD08E3AF52EF

If that is fine please ensure that binding directory WSDL2RPG looks like
this:

  DSPBNDDIR BNDDIR(WSDL2RPG)

  Binding Directory:   WSDL2RPG       Library:   WSDL1.15.0  
 
 -------Creation--------
  Object       Type         Library      Activation   Date         Time  
  WSDL2RPGRT   *SRVPGM      WSDL1.15.0   *IMMED       25.01.12 08:47:21 
  WSDL2UTILS   *SRVPGM      WSDL1.15.0   *IMMED       25.01.12 08:47:28 
  MIME         *SRVPGM      WSDL1.15.0   *IMMED       25.01.12 08:47:38 
  HTTPMIME     *SRVPGM      WSDL1.15.0   *IMMED       25.01.12 08:47:39 
  BASICS1      *SRVPGM      WSDL1.15.0   *IMMED       25.01.12 08:46:05 
  HTTPAPIR4    *SRVPGM      LIBHTTP      *IMMED       10.10.11 09:52:38 
  EXPAT        *SRVPGM      LIBHTTP      *IMMED       10.10.11 09:52:34 
  IFS          *SRVPGM      WSDL1.15.0   *IMMED       25.01.12 08:46:09 

If that is also fine, then link your stub service program as well are your test program with parameter BNDDIR(WSDL2RPG) instead of parameter BNDSRVPGM(...).

Regards,

Thomas.


ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 25.01.2012 00:10:40:

> Von: mkoester@xxxxxxxxxxxxx
> An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Datum: 25.01.2012 00:43
> Betreff: WSDL2RPG test pgm requires add'l libs in libl?
> Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> 
> I seem to recall at the end of August a new release of WSDL2RPG that 
> would allow the programs built with the WSDL2RPG tooling would not 
> require the user's libl to have WSDL2RPG, LIBHTTP, and LIBEXPAT.  Or 
> did I misunderstand?
> 
> I had the sys admin reinstall WSDL2RPG 1.15beta4 / 08.01.2012, leaving 
> the default value "N" for "At runtime, use *LIBL to find
programs?"
> 
> I create all my stubs modules and service programs, and my test module 
> and program, into my library.  When my runtime libl lacks WSDL2RPG or 
> LIBHTTP, my test fails to find the WSDL2RPGRT and
> HTTPAPIR4 service programs.
> 
> Obviously I missed something...  Can someone please set me straight?
> 
> Thanks.
> -- Michael
> 
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -


--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------