Skip to Content
0
Former Member
Jul 18, 2008 at 09:51 AM

Runtime error wihle calling a webservice

32 Views

Hi all,

I am trying a portal application which uses an external webservice . I have created a portal service from the webservice and then used it in a portal component after excuting i am getting the following exception at run time .

com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.

I have given the proxy settings in the com.sap.portal.ivs.httpservice in the portal and also

defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server

I am calling service in the following manner.

IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
IServiceservice = runtime.getService(IWS_P_Service.KEY);
   IWS_P_Service ws_service = (IWS_P_Service)service;
  
    Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
    Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
    ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
    // working upto here
	response.write("working");
	ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
	double result = cvu_res.getChangeVolumeUnitResult();
     response.write(result+"");

The program is executing till "Working"

If any body has any solutions please post.

Thank

Bhavyasri.M