Skip to Content

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

The constructor HttpRequestSender(URL, String, String) is deprecated

Dear All,

I have just written a small program using NWDS (Netweaver developer Studio). The code includes the following line:-

HttpRequestSender requestSender = new HttpRequestSender(url,"user1","abc");

The program has the following imports:-

import com.sap.lcr.api.cimclient.CIMClient;

import com.sap.lcr.api.cimclient.CIMOMClient;

import com.sap.lcr.api.cimclient.ClientFactory;

import com.sap.lcr.api.cimclient.HttpRequestSender;

import com.sap.lcr.api.sapmodel.SAP_AppServJCODestination;

import com.sap.lcr.api.sapmodel.SAP_JCODestination;

import com.sap.lcr.api.sapmodel.SAP_JCODestinationAccessor;

import com.sap.lcr.api.sapmodel.SAP_MsgServJCODestination;

import com.sap.mw.jco.JCO;

import com.tssap.dtr.client.lib.protocol.URL;

I get the following error when I build the project:-

The constructor HttpRequestSender(URL, String, String) is deprecated

Can anyone kindly tell me why I am getting this message and how to resolve it?

Kind Regards

Chris Jackson

Former Member
Not what you were looking for? View more on this topic or Ask a question