on 07-05-2006 4:16 AM
Hi,
I have a weather web dynpro application, which fetchs weather data from yahoo weather site in xml format. The application is working fine in development environment(where proxy is not enabled), but the same is not working in client environment where proxy setting are enabled.
How can we enable proxy setting for web dynpro applications????
Thanks for help.
Thanx,
Dheeram
Hi,
Proxy settings for WD applications in the Developer Studio can be made under Window ->Preferences -> Workbench -> Proxy Settings.
Hope this helps.
Srinivasan T
PS: Reward helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maksim,
Please help me.
The logic is as follows:
URL url = new URL("http://xml.weather.yahoo.com/forecastrss?p=USPA0656");
URLConnection urlConn = url.openConnection();
BufferedReader br = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
I'm getting the following error:
Server returned HTTP response code: 403 for URL: http://xml.weather.yahoo.com/forecastrss?p=USPA0656
Thanks in advance.
Dheeram
Hi Dheeram,
I don`t think that System proerties will work in this case. Article is talking about "JVM`s proxy setting". I think you should use URL construcor like public URL(String protocol, String host, int port, String file);
or try to set properties
System.getProperties().put("proxySet", "true");
System.getProperties().put("proxyHost", "proxy.domain.com");
System.getProperties().put("proxyPort", "3128");
Best regards, Maksim Rashchynski.
Hi Maksim,
When I use the URL constructor by passing the protocol, host, port and file like:
URL url = new URL("http","abc",80,"http://xml.weather.yahoo.com/forecastrss?p=USPA0656");
It is generating url as http://abc:80/http://xml.weather.yahoo.com/forecastrss?p=USPA0656
I used the code of setting the proxy
like
System.getProperties().put("proxySet", "true");
System.getProperties().put("proxyHost", "abc");
System.getProperties().put("proxyPort", "80");
Thanx,
Dheeram
Hi,
have you tried table HTTPURLLOC, see http://help.sap.com/saphelp_nw2004s/helpdata/en/59/31ae42e0fac911e10000000a1550b0/frameset.htm
Regards, Heidi
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.