Mario, Thare is not much that you can try out without having the patch that I have on our system. All you can to is comparing the messages. But if you really want to try out something, you can replace module WSDL2R85 with the one attached. In order to anable MTOM, you need to pass TRUE to MessageContext_new() in procedure getMessageContext() of the WS_OPER module like this: if (MessageContext_isNull(g_hMsgCtx)); g_hMsgCtx = MessageContext_new(cTrue); endif; I do not yet know what happens, when WSDL2RPG receives an MTOM messages, because I do not have a server sending MTOM messages. I need to fake something with soapUI. Thomas. -----Ursprüngliche Nachricht----- Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von Mario Martoriello Gesendet: Montag, 1. Februar 2016 19:43 An: HTTPAPI and FTPAPI Projects Betreff: Re: use WSDL2RPG and standard MTOM Thomas thank you for your kind answer. Following your tips I'll try and let you know. Best regards Mario -----Messaggio originale----- From: Thomas Raddatz Sent: Monday, February 1, 2016 9:31 AM To: HTTPAPI and FTPAPI Projects Subject: Re: use WSDL2RPG and standard MTOM Hi Mario, I do not know much about MTOM, but it seems that it is very close to standard MIME format. Please compare the example below with a MTOM example on your side and try to figure out if it would go through. I followed the example given at "http://www.mkyong.com/webservices/jax-ws/jax-ws-attachment-with-mtom/" to modify my MessageContext "object" to create the message. Thomas. POST http://10.115.12.243:8080/PMR/services/AddressContainerService HTTP/1.1 Host: 10.115.12.243:8080 User-Agent: http-api/1.29 Content-Length: 1039 MIME-Version: 1.0 Content-Type: multipart/related; type="application/xop+xml"; boundary="MIMEBoundary_20160201092629572000_163261"; start="<0C31F006AFE919CDA5DC0004AC1AF51A.1@xxxxxxxxxxx>" SOAPAction: sendraw(): entered --MIMEBoundary_20160201092629572000_163261 Content-Type: application/xop+xml;text/xml; charset=utf-8 Content-Transfer-Encoding: binary Content-ID: <0C31F006AFE919CDA5DC0004AC1AF51A.1@xxxxxxxxxxx> <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="http://addresses.multiref.webservice.wsdl2rpg.tools400.de" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <impl:getAddressContainer soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <address xsi:type="impl:Address"> <city xsi:type="xsd:string">Duckburg</city> <firstname xsi:type="xsd:string">Donald</firstname> <lastname xsi:type="xsd:string">Duck</lastname> <street xsi:type="xsd:string">Wet Foot Street</street> <zipcode xsi:type="xsd:int">1313</zipcode> </address> </impl:getAddressContainer> </soapenv:Body> </soapenv:Envelope> --MIMEBoundary_20160201092629572000_163261-- recvresp(): entered HTTP/1.1 200 OK -----Ursprüngliche Nachricht----- Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von Mario Martoriello Gesendet: Freitag, 29. Januar 2016 11:34 An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx Betreff: use WSDL2RPG and standard MTOM Hi all Some time ago I did some project using HTTPAPI and WSDL2RPG . Now I have to do a new project in which I have to send a File using a webservice and the protocol MTOM . I saw in the archive some messages about this protocol but I am wondering if I can use the WSDL2RPG for defining the Ds interface for this protocol. However has anyone used HTTPAPI and MTOM protocol and suggest me any problem that I can find? Thank you for the help regards Mario -- 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 ----------------------------------------------------------------------- -- 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.
Attachment:
PWSDL2R85.rpgle
Description: PWSDL2R85.rpgle
Attachment:
WSDL2R85.rpgle
Description: WSDL2R85.rpgle
----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubscribe, please go to: http://www.scottklement.com/mailman/listinfo/ftpapi -----------------------------------------------------------------------