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

RE: Antwort: RE: WSDL2RPG - Version 1.14 available



Thomas,

That worked.  I've now successfully generated and tested client proxies for several of our web services now.

Another question:
Do you have some recommended best practices for generating a client proxy that supports more than one operation?  When we develop our web services we group related operations into a single WSDL.  In an effort to achieve this, I'm experimenting with WSDL2RPG to combine the separate client proxies into a single one since a lot of the generated code is template.  Other than the operation-specific procedures, I noticed that SOAPMessage_Envelope must be dealt with and I'm unsure of the need to use multiple UUIDs.

Regards,
Tom

P.S.  Two years ago I implemented RPG web service clients using HTTP API when WSDL2RPG was starting to take shape.  The project has really matured and I congratulate you on the fine work you've done!

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Thomas Raddatz
Sent: Wednesday, September 07, 2011 1:55 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Antwort: RE: WSDL2RPG - Version 1.14 available

Tom,

There are no known issues for generating and compiling a test program. 
Please send the compile listing to my private email address and I will have a look at it.

The only problem I found with the "calculator" wsdl is that it uses 'parameterOrder' to specify a parameter order for the input operations. As far as I understand chapter 2.4.6 of http://www.w3.org/TR/wsdl#_parameter
'parameterOrder' is useless for non RPC encoded bindings and can be safely ignored.

Since WDL2RPG tried to use the 'parameterOrder' keyword it does not generated the 'x' and 'y' parameter e.g. of the 'add' operation. I changed
WSDL2R05 to ignore the 'parameterOrder' attribute for non RPC encoded bindings and I was able to successfully generate a stub module, a test program and eventually call the web service.

Please replace member WSDL2R05 from the zip file and update program WSDL2RPG like this:

CRTRPGMOD MODULE(WSDL2RPG/WSDL2R05) SRCFILE(WSDL2RPG/QWSDL2RPG)
   DBGVIEW(*LIST) TRUNCNBR(*NO)

UPDPGM PGM(WSDL2RPG/WSDL2RPG) MODULE(WSDL2RPG/WSDL2R05)

Regards,

Thomas.


Am 07.09.2011 18:03, schrieb Tom Hall:
> Thomas,
>
> Thanks for your response.  We have successfully installed WSDL2RPG 
> V1.14.  We are using HTTP API V1.23.  To test, we are using public web service 'http://soaptest.parasoft.com/calculator.wsdl' and having WSDL2RPG generate both the proxy and sample test client.  The client proxy compiles successfully and I'm able to generate the SRVPGM.  However, the WSDL2RPG generated sample test client fails to compile.
>
> Is there any issues with using WSDL2RPG to generate sample client programs?
>
> Thanks,
> Tom
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> thomas.raddatz@xxxxxx
> Sent: Thursday, September 01, 2011 2:16 AM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Antwort: RE: WSDL2RPG - Version 1.14 available
>
>
> Tom,
>
> There is no uninstall procedure for WSDL2RPG. But in case you installed WSDL2RPG into library WSDL2RPG (as recommended), you can just delete that library to get rid of WSDL2RPG. The installer does not create any objects outside the WSDL2RPG library.
>
> Thomas.
>
>
> ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 31.08.2011 22:29:57:
>
>> Von: Tom.Hall@xxxxxxxx
>> An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
>> Datum: 31.08.2011 22:39
>> Betreff: RE: WSDL2RPG - Version 1.14 available Gesendet von:
>> ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>>
>> Thomas,
>>
>> I want to clean install v1.14 onto our v7.1 IBm i.  Do you have a 
>> procedure for uninstalling a previous version of WSDL2RPG?
>>
>> Thanks,
>> Tom Hall
>>
>> -----Original Message-----
>> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi- 
>> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Thomas Raddatz
>> Sent: Sunday, August 28, 2011 1:29 PM
>> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
>> Subject: WSDL2RPG - Version 1.14 available
>>
>> Hi folks,
>>
>> I released WSDL2RPG V1.14. You can download WSDL2RPG from my Freeware
> page
>> at http://www.tools400.de.
>>
>> Please notice that all date/time marshallers add the local time zone 
>> to
> the
>> XML message, now:
>>
>>      Marshaller_toDateTime
>>      Marshaller_toDate
>>      Marshaller_toTime
>>      Marshaller_togDay
>>      Marshaller_togMonth
>>      Marshaller_togMonthDay
>>      Marshaller_togYear
>>      Marshaller_togYearMonth
>>
>> Further more I added parameter TGTRLS to the WSDL2RPG command. This 
>> parameter is used to specify the target release the stub or test 
>> program
> is
>> generated for. If this parameter is set to V6R1M0 or higher, the stub 
>> module and the test program will be enabled to send/receive messages
> larger
>> than 64k.
>>
>> Please press F9 to see the all the optional parameters.
>>
>> Last but not least please notice that now the installer asks whether 
>> or
> not
>> to use *LIBL at runtime. The default is 'N' which differs from 
>> previous releases where all service programs were linked with *LIBL.
>>
>> Regards,
>>
>> Thomas.
>> ---------------------------------------------------------------------
>> -
>> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> ---------------------------------------------------------------------
>> -
>> -
>> ---------------------------------------------------------------------
>> -
>> - 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
> ----------------------------------------------------------------------
> -
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------