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.  Content-type not setting in XML Firewall Service

    Posted 04/06/20 07:54 AM
      |   view attached
    Hi

    I am setting the Content-Type to "application/x-www-form-urlencoded; charset=iso-8859-1" which is the required content-type for backend service ,  i am sending the urlencoded message to XML firewall service.
    However when i see the transform action output , content-type is set only as application/x-www-form-urlencoded

    I have followed below basics

    1.Removed the Results action
    2.Transform is the last action with Output as Output
    3.Added the Freeze headers in the XSLT

    Is there any additional setting to enforce  Content-Type to "application/x-www-form-urlencoded; charset=iso-8859-1"

    Attached the service export

    ------------------------------
    santhosh
    ------------------------------

    Attachment(s)

    zip
    contenttype.zip   767 KB 1 version


  • 2.  RE: Content-type not setting in XML Firewall Service

    Posted 04/06/20 11:10 AM
    Did you set "" to on in "Objects->Service Configuration->XML Firewall Service" HTTP Options tab?

    ------------------------------
    Hermann Stamm-Wilbrandt
    Compiler Level 3 support & Fixpack team lead
    IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
    ------------------------------



  • 3.  RE: Content-type not setting in XML Firewall Service

    Posted 04/06/20 11:45 AM
    Hi Hermann

    It worked for XML Firewall Service .When i tested with MPGW , it is not working as expected

    1. Last node is gwtnode(used identity.js)
    2.Removed the Results action
    3.Added the Freeze headers(called from other gtw script node)
    4.Enabled Include Charset in response-type

    Attached the Screenshot for the same.

    ------------------------------
    santhosh
    ------------------------------



  • 4.  RE: Content-type not setting in XML Firewall Service

    Posted 04/06/20 11:55 AM

    Please create a support ticket to get this investigated.

    For now please either use XMLFW, or if MPGW is needed, do your backend connection through 127.0.0.1 listening XMLFW adding charset.



    ------------------------------
    Hermann Stamm-Wilbrandt
    Compiler Level 3 support & Fixpack team lead
    IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
    ------------------------------



  • 5.  RE: Content-type not setting in XML Firewall Service

    Posted 04/06/20 12:02 PM
    Hi Hermann

    yes, i have offloaded adding of content type to XML Firewall Service , just checking whether we can do the same in the MPGW.

    as suggested , will  raise the support ticket.

    ------------------------------
    santhosh
    ------------------------------



  • 6.  RE: Content-type not setting in XML Firewall Service

    Posted 04/07/20 09:27 AM
    hello
    I test your xsl into a MPG and it works fine

    ------------------------------
    David Leroux
    ------------------------------



  • 7.  RE: Content-type not setting in XML Firewall Service

    Posted 04/08/20 04:32 AM
    Got the same result as David, but it's hard to verify the behavior if you have a different firmware
    version and a different form-factor of DataPower. I have had a lot of difficulties while trying to set the 
    correct content type as different DataPower service objects behave a bit differently. Usually putting the 
    content type enforcement as the last action, even after the OUTPUT, helps.
    I hope that raising a PMR solves your issue.

    ------------------------------
    Hermanni Pernaa
    ------------------------------