Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

PayPal integration using SOAP messages

Hello,

for a integration scenario we want to call a PayPal SOAP API as described in

<a href="https://www.x.com/docs/DOC-1244 ">https://www.x.com/docs/DOC-1244</a>
.

The PayPal safety requirements are fullfilled by giving a Username, Password and Signature in the SOAP Header:

<SOAP-ENV:Header>      
  <RequesterCredentials xmlns=u201Durn:ebay:api:PayPalAPIu201D xsi:type=u201Debl:CustomSecurityHeaderTypeu201D>           
   <Credentials xmlns=u201Durn:ebay:apis:eBLBaseComponentsu201D xsi:type=u201Debl:UserIdPasswordTypeu201D>                        
    <Username>api_username</Username>                
    <Password>api_password</Password>               
    <Signature>api_signature</Signature>                
    <Subject>authorizing_account_emailaddress</Subject>          
   </Credentials>     
  </RequesterCredentials> 
</SOAP-ENV:Header>

I have given the three values as Adapter-Specific Message Attributes filled by UDF in Message Mapping.

The filled values are also visible in monitoring in section DynamicConfiguration.

SOAP Adapter: http://s3.directupload.net/file/d/2127/r8y4aywt_jpg.htm

Monitoring: http://s5.directupload.net/file/d/2127/cqvfds35_jpg.htm

But PayPal responded:

Authentication/Authorization Failed

You do not have permissions to make this API call

My credentials are ok. I have tested it within the PayPal NVP API Tester: http://www.shopsandbox.de/PayPal/Refund/ .

How do I have to manipulate the SOAP header for a successful SOAP API call?

Is it necessary also to insert the nodes ?

If yes, how?

Thanks in advance,

André

Former Member
Former Member replied

When I have implemented a similar thing, I just created the whole input XMLfor the SOAP request "manually" in the Java mapping.

That should give you all freedom. You do not need to use the WSDL.

CSY

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question