Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
5 replies Latest Post - ‏2013-03-07T08:03:41Z by HermannSW
SystemAdmin
SystemAdmin
6772 Posts
ACCEPTED ANSWER

Pinned topic Soap Header for SAP Message

‏2013-03-06T14:55:50Z |
I can put a test message using WSDL through XML SPY, where I put User ID and Password for SAP and Response is received.
I don't have header record on the soap message. I want to put one so that I can pass through Datapower. And, I don't know the format. Can you folks provide the Header record format that SAP would be ok with? My sample message is as below:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<m:ZCS_ACCT_DATA_FOR_PYMT xmlns:m="urn:sap-com:document:sap:rfc:functions">
<ACCOUNTNUMBER>aaaaaaaaaaaaaaaaaaaa</ACCOUNTNUMBER>
<ENTITY>aaa</ENTITY>
<LASTNAME>String</LASTNAME>
<ZIPCODE>aaaaaaaaaa</ZIPCODE>
</m:ZCS_ACCT_DATA_FOR_PYMT>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Updated on 2013-03-07T08:03:41Z at 2013-03-07T08:03:41Z by HermannSW
  • kenhygh
    kenhygh
    1461 Posts
    ACCEPTED ANSWER

    Re: Soap Header for SAP Message

    ‏2013-03-06T15:33:29Z  in response to SystemAdmin
    I have no idea what SAP requires, but you can try searching this forum for 'Basic Auth' and try injecting the basic auth header.

    Ken
  • SystemAdmin
    SystemAdmin
    6772 Posts
    ACCEPTED ANSWER

    Re: Soap Header for SAP Message

    ‏2013-03-06T16:53:07Z  in response to SystemAdmin
    I am hitting SAP, but, getting SAP Logon Error, can you guys, tell, what's wrong with SAP logon credential that I supplied in the header record?

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Header>
    <MultiSpeakMsgHeader Version="string" UserID="ippxxxx" Pwd="ipxxxxx" AppName="SAP" AppVersion="string" Company="string" CSUnits="feet" CoordinateSystem="string" Datum="string" SessionID="string" PreviousSessionID="string" ObjectsRemaining="1" LastSent="string" xmlns="http://www.multispeak.org/Version_3.0" />
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <m:ZCS_ACCT_DATA_FOR_PYMT xmlns:m="urn:sap-com:document:sap:rfc:functions">
    <ACCOUNTNUMBER>aaaaaaaaaaaaaaaaaaaa</ACCOUNTNUMBER>
    <ENTITY>aaa</ENTITY>
    <LASTNAME>String</LASTNAME>
    <ZIPCODE>aaaaaaaaaa</ZIPCODE>
    </m:ZCS_ACCT_DATA_FOR_PYMT>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    • SystemAdmin
      SystemAdmin
      6772 Posts
      ACCEPTED ANSWER

      Re: Soap Header for SAP Message

      ‏2013-03-06T20:47:40Z  in response to SystemAdmin
      I searched the forum and found that to Inject header into the request as followed:

      Header Name = Authorization Value = Basic ippxxx:ippxxxxx1 base-64

      But, Still it does not connect to SAP, Can you see, what I am doing wrong?
      • SystemAdmin
        SystemAdmin
        6772 Posts
        ACCEPTED ANSWER

        Re: Soap Header for SAP Message

        ‏2013-03-06T22:48:24Z  in response to SystemAdmin
        Problem solved

        Add these values in Header/Params Tab of WSP
        Header Injection Parameters are:

        Header Name: Authorization
        Value= Basic aXBwc29mdDppcHBzb2Z0MQ==

        The characters are userid:password are converted into Hax valuses
        • HermannSW
          HermannSW
          4488 Posts
          ACCEPTED ANSWER

          Re: Soap Header for SAP Message

          ‏2013-03-07T08:03:41Z  in response to SystemAdmin
          Be aware that you did show us username/password here -- OK if only test account, otherwise please change:
          $ echo -n "aXBwc29mdDppcHBzb2Z0MQ==" | base64 -d ; echo
          ippsoft:ippsoft1
          $
          


           
          Hermann <myXsltBlog/> <myXsltTweets/> <myCE/>
          Updated on 2014-03-25T02:38:16Z at 2014-03-25T02:38:16Z by iron-man