cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Response Code: (401)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi, im traying to execute a WebDynpro from my mobile. when i execute it i facing this error.

Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"XXXX"

in the webdynpro i have this configuration

public void executeRequest_WebListsSoap_getActiveTasksByUser0( )

{

//@@begin executeRequest_WebListsSoap_getActiveTasksByUser0()

//$$begin Service Controller(-1174862248)

IWDMessageManager manager = wdComponentAPI.getMessageManager();

try

{

wdContext.currentRequest_WebListsSoap_getActiveTasksByUser0Element().modelObject()._setUser("XXX");

wdContext.currentRequest_WebListsSoap_getActiveTasksByUser0Element().modelObject()._setPassword("XXX");

wdContext.currentRequest_WebListsSoap_getActiveTasksByUser0Element().modelObject().execute();

wdContext.nodeResponse().invalidate();

wdContext.nodeResult().invalidate();

}

catch(Exception e)

{

manager.reportException(e.getMessage(), false);

}

//$$end

//@@end

}

but i cannot authenticate with the service. anyone can help me?

Accepted Solutions (0)

Answers (1)

Answers (1)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

the error was related to authorization access