Uniface 9.7 UHTTP and MTOM
Author: dammie@seznam.cz (dammie)
Hello, is there any posibility how to call SOAP Web Service with MTOM https://en.wikipedia.org/wiki/Message_Transmission_Optimization_Mechanism and get Binary data (PDF file ) in it? I ve tried UHTTP.SEND ... it worked ( "HTTP/1.1 200 OK" ) but after I ve tried read whole content: https://unifaceinfo.com/docs/0907/uniface/_reference/componentAPIs/httpExecutionOperations/READ_CONTENT.htm I got : "ERROR=-59·;MNEM=<UACTERR_NO_OPERATION>·;DESCRIPTION=No definition found for operation.... It seems there is problem to get binary data of MTOM... ? So is there any way? Can I get SOAP content with MTOM via e.g. DUMP_FILE_CONTENTS same way using example below?
variables handle vUhttp string vUrl, vHeaders, vResp endvariables
newinstance “UHTTP”, vUhttp vUrl = “http://unifaceinfo.com/download/4262/” vUhttp->SET_FLAGS(8) ; GET send headers vUhttp->DUMP_FILE_CONTENTS(“PAM96.pdf”, “”) vUhttp->SEND(vUrl, “GET”, “”, “”, vHeaders, “”, vResp) vUhttp->DUMP_FILE_CONTENTS(“”, “”) Thanks for hints..