cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Response Code: (407) Proxy Authentication Required

former_member214651
Active Contributor
0 Kudos

Hi All,

I am getting an error in WD project which consumes a WS model. I created a CAF project in which I have imported the BAPI_FLIGHT_GETLIST RFC and a custom operation to get the result from the BAPI execution.

After exposing as a WebService, i tested the operation from WSNavigator and both BAPI and the custom operation is working fine.

I imported this WS in my WD project successfully and done with the bindings also. The parameters for BAPI are set and execute statement written in the controller. But when I deploy and run my application, I get the following Error:

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required. The requested URL was:"Connect to http://<hostname>:<port>/inspection.wsil/, using http proxy:

Also in NWA, I have created 2 Logical destinations required during WS Model Import (WS_METADATA_DEST & WS_EXECUTION_DEST) pointing to the URL http://<hostname>:<port>/inspection.wsil/.

I am using CE 7.2 NWDS.

Please let me know the reason for this and the fix.

Regards,

Poojith MV

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Poojit,

Try maintianing the same destiantions in the Visual administrator:

1.Log into Visual admin.

2.Expand the server->services->and select web service security

3.In the Runtime tab->expalnd Webservice Clients ->sap.com->DynamicWSproxies->create a new destination and maintian the

basic authentication for logondata.

Ref link:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f070c401-59aa-2a10-5f8f-b9b43c87a...

Regards,

Lavanya.G

former_member214651
Active Contributor
0 Kudos

Thanks for the Information. But we have NWA in place of Visual Admin in CE. In which section of NWA do we set the proxy?

Regards,

Poojith MV

Answers (1)

Answers (1)

former_member185086
Active Contributor
0 Kudos

Hi

I hope you defined the basic crendiatial for the access type during the definition of the JCO/destination.Check whether SOAP adapter is active and running?

Further help

/people/riyaz.sayyad/blog/2006/05/10/consuming-xi-web-services-using-web-dynpro-150-ui-design-part-iii

http://wiki.sdn.sap.com/wiki/display/VC/WebServiceInvalid+URL

BR

Satish Kumar

former_member214651
Active Contributor
0 Kudos

Hi Satish,

Thanks for the information. I just observed one thing now. The URL of my WS in WSNavigator is:

http://wipro:50000/demo.wipro.com_flightgetlistdc_FlightGetList_WS?wsdl=binding&mode=ws_policy

when i paste this URL in the browser and try to execute this I get a message "Internet cannot display this page"

But when I replace the wipro by the actual IP and run it, I don't get a prompt for user id / pwd but the xml file is displayed.

is there any way to edit the URL in NWA?

Regards,

Poojith MV

former_member185086
Active Contributor
0 Kudos

Ok

Try one more option before editing

go to C:\WINDOWS\system32\drivers\etc open the hosts file and put the IP address there

example : <IP address> <complete name >

10.154.181.131 sr1ay1.xyzd.org rtyu1

in yur case it could be

<IP> <space> wipro

Save the file and try.

BR

Satish Kumar

former_member214651
Active Contributor
0 Kudos

Hi,

Even if this works, should we do it on every machine from where the application is run or on the server itself?

Regards,

Poojith MV

former_member185086
Active Contributor
0 Kudos

The Hosts file is like an address book. When you type an address like www.yahoo.com into your browser, the Hosts file is consulted to see if you have the IP address that site. If you do, then your computer will "call it" and the site will open. If not, your computer will ask your ISP's (internet service provider) computer before it can "call" that site. Most of the time, you do not have addresses in your "address book," because you have not put any there. Therefore, most of the time your computer asks for the IP address from your ISP to find sites.

So we have to define it at system level, not at server level.

BR

Satish Kumar