cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy Authentication required for Accessing External Webservices

Former Member
0 Kudos

Hi,

I was trying to access an external WebService from my Portal Component, but it is always throwing the following exception.

Portal Runtime Error

An exception occurred while processing a request for :

iView : WeatherForecast.getWeather

Component Name : WeatherForecast.getWeather

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

Exception id: 11:02_20/07/05_0157_4066350

See the details for the exception ID in the log file

I have done the required proxy settigs in the Proxy service but of no use.

Has anyone come across a situation like this? any solution for this?

Thanks in advance

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kiran,

You can set your proxy authentication in your code itself.

Write following code before calling Webservice.

wdcontext.current<node>element().modelobject()._setUsername("<user>");

wdcontext.current<node>element().modelobject()._setpassword("<password>");

Also, specify proxy hostname and port in logical ports file under your model.

Regards,

Bhavik

Former Member
0 Kudos

Hi Kiran,

If you have solved your problem then please close this thread. Also don't forget to reward points if its helpful.

Regards,

Bhavik

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

Hello Kiran,

perhaps the Proxy Server is a Windows ISA Server and needs NTLM Authentication? Then you should ask the Proxy administrator to provide free access to the Internet for the IP of the Portal Server.

Regards

Gregor