DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Datapower is converting MIME into SOAP automatically

    Posted 10/28/20 06:54 PM

    Hi ,

    I have a usecase where client is sending MTOM messages to the backend though Datapower . I have an mpgw which has to authenticate this transaction , allowing the MTOM message to the backend.

    I have few action in the request rule for implementing the security functions. What i am noticing is when the request comes to the processing rule , Datapower is removing all the mime data and transforming the content into SOAP/XML. I tried accessing the content using gatewayscript but still the content is coming as SOAP when accessed using readASBuffer.

    Please advice how we can get the raw mime data in the processing policy using gateway script

    Regards,

    Arun



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: Datapower is converting MIME into SOAP automatically

    Posted 10/28/20 06:57 PM

    I am seeing the below error in the System logs while processing processing using the GatewayScript :

    12:34:48 PM mpgw error 130771184 error 10.189.35.20 0x00630001 mpgw (testFSH): Internal error

    12:34:48 PM mime error 130771184 request 10.189.35.20 0x80e003e2 mpgw (testFSH): Invalid MIME package: no end boundary

    Gateway Script :

    session.input.readAsBuffer(function(err,buffer){

    if(err){

    session.output.write("err:" +err);

    }else{

    let doc ={};

    let buffers= new Buffer(buffer);

    //console.debug(hexdata);

    // doc.data= hexdata;

    session.output.write(buffers);

    }

    })



    #DataPower
    #Support
    #SupportMigration


  • 3.  RE: Datapower is converting MIME into SOAP automatically

    Posted 10/29/20 08:52 AM

    Hi,

    did you check that attachments are allowed? What have you selected for Objects -> Service Configuration -> Multi-Protocol Gateway -> Proxy Settings -> Request attachment processing mode?

    --HP



    #DataPower
    #Support
    #SupportMigration


  • 4.  RE: Datapower is converting MIME into SOAP automatically

    Posted 10/29/20 12:22 PM

    The Request Processing mode is set to "allow" and Front Side Mime processing is On.


    The request works when If i change the processing rule to "unprocessed".



    #DataPower
    #Support
    #SupportMigration


  • 5.  RE: Datapower is converting MIME into SOAP automatically

    Posted 10/29/20 12:31 PM

    Ok. Is there a need to process the attachment? Your first description just said that there is a need to authenticate the transaction... How about changing Request attachment processing to "Unprocessed" and request type to something else than passthrough?


    --HP



    #DataPower
    #Support
    #SupportMigration


  • 6.  RE: Datapower is converting MIME into SOAP automatically

    Posted 10/29/20 09:20 PM

    it works when you modify the processing rule to unprocessed. But i have to perform other actions in the rule

    When I am adding other action which has NULL context , i see datapower is changing the MIME payload to SOAP/XML.



    #DataPower
    #Support
    #SupportMigration


  • 7.  RE: Datapower is converting MIME into SOAP automatically

    Posted 10/29/20 11:17 PM

    , Do you think I need to open the pmr ?



    #DataPower
    #Support
    #SupportMigration


  • 8.  RE: Datapower is converting MIME into SOAP automatically

    Posted 10/30/20 06:47 AM

    Can you clarify what does it mean when you say that MIME payload is changed to SOAP/XML? If you are using MTOM and you have request processing attachment processing set to Allow, DataPower automatically separates the parts and shows only SOAP payload in Probe Content tab. Attachment part is visible through Attachment tab of Probe. If you want to extract the attachment part in GWscript then you have to read the attachment itself (https://www.ibm.com/support/knowledgecenter/en/SS9H2Y_7.7.0/com.ibm.dp.doc/context_js.html)


    --HP



    #DataPower
    #Support
    #SupportMigration