11-17-2011 05:32 PM
RC2008.3 SP5 HTTP Adapter to call web service - Authorization error
I've designed a service calliing an external task. This task is an agent for an HTTP Adapter. I'm trying to call a web service internal to the company. This web service requires passing a userid and password. I can call this webservice successfully using SOAPUI.
i've created a XSL transformation to add the soap envelope and body. I tried adding a AuthenticationInfo tag in the soap header to pass the username and password per the manual. However I keep getting failure due to authenication. I'm doing a call to a really simple test web service passing one field.
Can anyone help?Is there some property file i need to have set in newscale to get basic authentication to work? Should i be passing this authentication information thru the HTTP Header instead?
Here's the sample external message coming out of service link:(with username/password as xxx's)
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style"><soapenv:Header><AuthenticationInfo><userName>xxx</userName><password>xxx</password></AuthenticationInfo></soapenv:Header><soapenv:Body><urn:ZTestFm><In>1</In></urn:ZTestFm></soapenv:Body></soapenv:Envelope>
11-17-2011 05:32 PM
Hi Patti,
We had the exact same issue with trying to get integration working into SAP, the HTTP Adapter provided out of the box doesn't seem to cater for basic authentication.
We also tried passing the authentication in the SOAP header with no success.
We contacted newScale who provided us with another adapter called HTTP IWA adapter that catered for authentication. With this adapter you can provide the authentication in the agent's properties. This solved our issue, it seems that the
11-17-2011 05:32 PM
thanks! We got the adapter, but haven't installed it yet. Did you have to reinstall your system to incorporate the new adapter?
11-17-2011 05:32 PM
Hi Patti,
All you need to do is perform an upgrade process on your nS installation, you can leave the default settings and then then when you get the long options screen (there are 28 options), specify the path the to the adapter archive and proceed as normal.
So you don't have to reinstall the system but it is pretty much the same process anyway.
Craig
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide