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

Re: Sending Attachment in WSDL2RPG



I have no idea, why it should not work for you. I tested MTOM support
again and I could switch MTOM on and off by the debugger. Please find
the example logs attached.

Just to make sure: Did you properly compile the "WS_OPER" module and
link the stub service program? Maybe you should try to debug procedure
MessageContext_new() of moduleWSDL2R85 of service program WSDL2RPGRT and
change "isMTOM" there.

I also do not understand why MTOM should be the default. For sure it is
not the default value.

Maybe you should send to me the source members that you generated with
WSDL2RPG and the zip file of your version of WSDL2RPG.

PM: thomas dot raddatz at tools400 dot de

Thomas.

Am 14.10.2016 um 17:41 schrieb Jim Franz:
>    Thanks for the info - file got there, but they could not handle
>    using� MTOM - the 1.16.5beta3 seems to default it� and I can't see how
>    to not use it. They asked I not use MTOM..
>    Jim
> 
>    On Fri, Oct 14, 2016 at 4:41 AM, Thomas Raddatz
>    <[1]thomas.raddatz@xxxxxx> wrote:
> 
>      Jim,
>      Actually WSDL2RPG should automatically create a MIME message, as
>      soon as you called * _Attachments_addFile() to add a file as an
>      attachment to the soap request message.
>      For example:
>      // Attach file to request message.
>      DownloadAttachment12_setAttachment_Attachments_addFile(
>      �  � path: 'text/plain': WSDL_MIME_BINARY);
>      // Set the parameter values of the request message
>      // of the web service.
>      //�  �  assign values here
>      requestMessage.fileName = path;
>      // Now let's call the web service.
>      setAttachmentResponse =
>      �  � DownloadAttachment12_setAttachment(
>      �  �  �  � requestMessage:
>      �  �  �  � errText);
>      Please check the debug log, whether or not WSDL2RPG created a MIME
>      message. A MIME starts with:
>      MIME-Version: 1.0
>      Content-Type: multipart/related;
>      �  �  �  �  type="application/soap+xml";
>      �  �  �  �  boundary="MIMEBoundary_20161014102651910000_791705";
>      �  �  �  �  start="<[2]C1648006CDC119E1A5DC00
>      04AC1AF51A.2@xxxxxxxxxxx>"
>      Each attachment is separte by a "mime boundary", which looks like
>      this:
>      sendraw(): entered
>      --MIMEBoundary_20161014102651910000_791705
>      Content-Type: application/soap+xml; action="[3]http://tools400.de/
>      wsdl2rpg/webservice/sample/downloadattachment/service/setAttachment"
>      Content-Transfer-Encoding: binary
>      Content-ID: <[4]C1648006CDC119E1A5DC0004AC1AF51A.2@xxxxxxxxxxx>
>      <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
>      xmlns:soapenv="[5]http://www.w3.org/2003/05/soap-envelope";
>      xmlns:tns="[6]http://tools400.de/wsdl2rpg/webservice/sample/
>      downloadattachment/service"><soapenv:Body><tns:
>      setAttachmentRequest><fileName>Hello World.txt</fileName></tns:
>      setAttachmentRequest></soapenv:Body></soapenv:Envelope>
>      --MIMEBoundary_20161014102651910000_791705
>      Content-Type: text/plain;
>      �  �  �  �  name="Hello World.txt"
>      Content-Transfer-Encoding: binary
>      Content-ID: <[7]C1099006CDC119E1A5DC0004AC1AF51A.1@xxxxxxxxxxx>
>      Hello World!
>      --MIMEBoundary_20161014102651910000_791705--
>      Thomas

Attachment: WSDL2RPG_MTOM_Logs.zip
Description: Zip compressed data

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