Skip to Content
0
Former Member
Dec 02, 2005 at 12:43 PM

Calling web service with basic authentication from EP "unauthorized"

93 Views

Hello,

I need to call a .NET web service with basic authentication on the IIS from my portal application (no http proxy between portal and IIS). But always I get the following exception:

<b>com.sap.engine. services.webservices.jaxm.soap.accessor. NestedSOAPException:

Problem in server response: [Unauthorized].</b>

I'm using the following code for calling the .NET web service:

<b>...</b><i>Licence_GetList lParameter = new Licence_GetList();

lParameter.setStatus(CEnvironment.TransformStatus_WebService(search));

ILicenceManager lLicMan = (ILicenceManager) PortalRuntime.getRuntimeResources().getService("LicenceManager");

ILicenceManager lLicManSecure = lLicMan.getSecurisedServiceConnection(request.getUser());

Licence_GetListResponse lGetListResponse = lLicManSecure.Licence_GetList(lParameter);</i><b>...</b>

I've also configured a http system in the portal system landscape using the following parameters:

<i>Authentication Method : Basic Authentication

Authentication Type : Server

User Mapping Type : admin,user</i>

The user mapping is also personalized for this system!

What's wrong? Please help! This is really urgent!

Kind Regards

Joerg Loechner