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

WSDL2RPG - Version 1.16beta1



Hi folks,

I released WSDL2RPG V1.16beta1. You can download WSDL2RPG from my Freeware
page at http://www.tools400.de.

WSDL2RPG v1.16 has been enhanced to upload attachments to the server.

I called this version "alpha1" because I am not sure whether or not the procedure interface of e.g. PortName_OperationName_Attachments_addFile() is what you really need. So far you specify:

  path              - path to the stream file that is uploaded

  contentType       - e.g. text/plain, text/xml, image/jpeg

  transferEncoding  - Optional. The transfer encoding of the
                      MIME message part:
                         WSDL_MIME_BINARY - Default. No encoding.
                         WSDL_MIME_BASE64 - Base64 encoded.

                      The encoding is done by WSDL2RPG.

  fileName          - Optional. Suggested file name that goes
                      into the "Content-Disposition" header.
                      The value of the Content-Disposition header
                      is always "attachment".

Returns: ID of the attachment which usually goes
         into the request message.

Example:

   // Different ways to call "addFile()"
   DownloadAttachment12_setAttachment_Attachments_addFile(
         i_file: 'text/plain');

   DownloadAttachment12_setAttachment_Attachments_addFile(
         i_file: 'text/plain': *omit: 'foobaa.txt');

   DownloadAttachment12_setAttachment_Attachments_addFile(
         i_file: 'text/plain': WSDL_MIME_BASE64: 'foobaa.txt');

   DownloadAttachment12_setAttachment_Attachments_addFile(
         i_file: 'text/plain': WSDL_MIME_BINARY: 'foobaa.txt');

   // Call web service
   setAttachmentResponse =
      DownloadAttachment_setAttachment(setAttachmentRequest: wsMsg);


Today the number of attachments is limited to 64 but could be easily increased.

Your feedback is greatly appreciated. Let me know if something needs to be changed or enhanced.

The total list of changes is:

Fixed:   Fixed File_getName() to return the file name without a
         leading slash.
Fixed:   Fixed problem that the memory buffer of the
         ManagedMemoryDataSource was not correctly written to disk
         under certain conditions.
Fixed:   Fixed problem that WSDL2RPG got into an infinite loop
         when two or more imported schemas reference each other.
Fixed:   Fixed problem that 'any' and 'schema' delegation was not
         properly generated under certain conditions.
Fixed:   Fixed problem that the asterix of a comment statement got
         lost, when the statement spread multiple lines.
Fixed:   Fixed a problem when renaming types. Now renaming 'types'
         is prefered over renaming 'elements' to not accidentally
         rename an element that is referenced by a part.
Added:   Added Uploading of attachments for binary and Base64
         transfer encodings.
Added:   Added ManagedMemoryDataSource_setBuffer() to create data
         sources from large buffers.
Added:   Now a status message is displayed when loading a schema
         does take longer than expected.
Changed: Improved performance of loading external schemas.
Changed: Added option to use separate heaps for each dynamic array.
         See: MemoryManager_attachService(.. : i_useSeparateHeaps)
Changed: Significantly changed the format of the generated stub modul.
         Now dedicated 'Serializer' procedures are generated for each
         complex type (= data structure).

Regards,

Thomas.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------