Skip to Content
avatar image
Former Member

Xstring to proxy

I have to create an outbound proxy to a web service, this web service requires that the xml files has to be signed.

I´m able to sign the xml file in abap in a xstring, but I do not know how to send a xstring to an outbound proxy.

Does anybody know how to send the xtring directly to a proxy?

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Feb 02, 2016 at 12:12 PM

    Hello Vinicius,

    I would suggest you to sign and encode the file in SAP PI using a Java mapping. You can refer to my blog below to do this-

    Signing the request message using Certificates and Encoding the message using Base64 - Bouncy Castle API Format

    If you do not want to go for Java mapping, then you can do it using WSSE. Please find below the blog for the same -

    http://scn.sap.com//people/rajendra.badi/blog/2011/08/24/configuring-wsse-digital-signing-and-encryption-using-sap-pi-711-aae-soap-adapter

    Regards,

    Nitin

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 01, 2016 at 01:20 PM

    Hi Vinicius,

    You can use the class 'CL_HTTP_UTILITY' to encode the XSTRING in base64 or you could also do what I have done before and simply pass it as a string of hex characters and convert it back to binary downstream with a java mapping.

    Regards,

    Ryan Crosby

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 02, 2016 at 03:50 PM

    Thanks a lot, it seems that the correct is to map in java, I´ll try that.

    Add comment
    10|10000 characters needed characters exceeded