cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193518
Active Participant
0 Kudos

Hi,

This means that the constructor that you are calling has been replaced in the Java VM with a different way of calling it or a different set of constructor parameters.

If you continue to use this constructor then it may be completely removed in future Java VM implementations.

Take a look at the available ways of calling this constructor to find a way that is not deprecated.