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

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



I had sys admin re-install HTTPAPI (from Scott's latest & greatest), and brought in the latest & greatest (v1.15beta7) WSDL2RPG as well.  I re-created the stubs and test pgm, and the test now runs with no extra libraries needed! 

Many thanks, Thomas!
I'd like to echo the praise from recent posts by Craig Strong.  Support of this tooling is tremendous, and greatly appreciated.

-- Michael Koester
~~~~~~~~~~~~~~~~~~~~~

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Thomas Raddatz
Sent: Wednesday, January 25, 2012 2:30 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: WSDL2RPG test pgm requires add'l libs in libl?

Michael,

The key is to figure out which program still uses *LIBL to bind its required service programs. But since you mentioned that the HTTPAPI binding directory uses *LIBL I strongly assume that it is HTTPAPIR4 which cannot bind to EXPAT. If that is true you need to re-install HTTPAPI.

Attached you find the sample programs WS0001 and WS000101TG which runs without libraries WSDL2RPG and LIBHTTP. Feel free to look at the ">>PRE-COMPILER<<" sections and verify the CRTSRVPGM and CRTPGM commands with your object create commands. Module WS000101 has been left unchanged.

Replace &LI with 'WSDL2RPG' and &OB with the name of the source member to avoid confusion. The ">>PRE-COMPILER<<" section is what my STRPREPRC utility uses to create objects for me.

Regards,

Thomas.

Am 25.01.2012 19:02, schrieb Koester, Michael:
> 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
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------