Help - cannot access web service outside web proxy

I'm trying to access a public web service - and web proxy stops me from doing it.
Here is my code:
package test;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import net.webservicex.www.WeatherForecastLocator;
import net.webservicex.www.WeatherForecastSoap;
import net.webservicex.www.WeatherForecastSoapStub;
import net.webservicex.www.WeatherForecasts;
import java.net.*;
import java.io.*;
public class TestOutput {
public static void main(String[] args) {
  initialiseConfiguration();
  printForecast();
public static void initialiseConfiguration() {
  System.setProperty("http.proxySet", "true");
  System.setProperty("http.proxyHost", "proxyserver");
  System.setProperty("http.proxyPort", "8080");
  System.setProperty("http.proxyUser", "userid");
  System.setProperty("http.proxyPassword", "password");
public static void printForecast() {
  try {
   WeatherForecastLocator wfl = new WeatherForecastLocator();
   WeatherForecastSoap wfs = wfl.getWeatherForecastSoap();
   WeatherForecasts forecasts = wfs.GetWeatherByZipCode("90210");
  } catch (Exception e) {
   e.printStackTrace();
}Here, I was using the test web service located in www.webservicex.net/WeatherForecast.asmx
I've created stubs using Eclipse (package net.webservicex.www) in another project, compiled into a jar, and imported into the test project.
The test is working beautifully from my home. It's failing in the office with the error:
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (407)Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
faultActor:
faultNode:
faultDetail:
{}:return code: 407
It's failing when it's trying to execute
WeatherForecasts forecasts = wfs.GetWeatherByZipCode("90210");
The "initialiseConfiguration" function is doing its job OK - it's actually helping me to go through the proxy - if I'm doing simple stuff like accessing internet sites. I've tested it - I can get to any external site and read from it. The moment I disable "initialiseConfiguration", I can't get through the proxy.
So, probably, the problem lies in the web services client classes generated by Eclipse and based on axis. Maybe, the code gets through the proxy, but then starts to do something without authentication??? (I'm not sure if it's possible at all, but who knows...)
I've read a lot of postings on this subject and couldn't find a solution that would work for me. I'm very surprised, because my situation is very common - there are more and more public web services, and most organisations have firewalls. Obviously, I'm making some very elementary mistake.
Please help

We have the same problem, not with SOAP but with XML-RPC (err 407). We're still stumped, and i agree that the problem should be common, but i don't see the mistake, so it's not that obvious.
Hypothesis: the proxy is spying on the requests content , and filtering out xml. Can you check that ?
Message was edited by:
idiallo

Similar Messages

  • NAC GUEST SERVER CANNOT ACCESS WEB CONSOLE

    Hello,
    I have a NAC guest server. I can access CLI but cannot access web console. I used both the https:// ip address/admin and http://ip address/admin. Please what could be the solution of this issue?
    thank you and best regards.
    Edwin

    Edwin,
    Are the various necessary services running on that server? Post the output of following commands:
    ps auwwwx
    chkconfig --list
    service httpd status
    service postgresql status
    Faisal

  • How do i solve - cannot access web server - error message when creating a project in 4.5 with PHP

    How do i solve - cannot access web server - error message when creating a project in 4.5 with PHP

    Screenshot of how it looks when i try to show a ms access form inside a iframe:
    http://oi58.tinypic.com/2vj4ish.jpg

  • SPA122 cannot access web configuration utility

    The new SPA122 device connected to router through DHCP.
    I can see IP-address on router's web page, can ping it, and receive it with ****110# IVR command.
    But I cannot access web configuration utility in the browser: the page is unavailible. I tried to allow WAN access with ****7932#1#1 IVR action - the problrem still on.
    Can You give me any advice what to do.

    You can also connect to the lan/ethernet side of the device, do an ipconfig /renew
    You should get an address on the 192.168.15 network, the default for the router in the ATA is 192.168.15.1
    Then you can set up the non default password, enable the wan web server (administration tab I think).
    dlm...

  • Suddenly on my iPad I cannot access web links  via emails but can on my iphone

    Suddenly I Cannot access web links via emails on my iPad but can on my iPhone. Is there something in my settings I need to change?

    Restart
    https://www.apple.com/support/iphone/assistant/phone/#section_1

  • Cannot access web. Network diagnostics says my internet connection appears to be working correctly

    Am running Lion on MacBook. Suddenly cannot access web with Safari or Firefox. Email OK and Network diagnostics says my internet connection appears to be working correctly". No problems with my iMac on same network.

    What exactly happens when you try to load a web page?

  • Cannot Access the Service Partition after installing Lenovo Driver and Application Installation

    I recently upgraded my Lenovo 3000 H210, M/T 5355-2NU from Windows Vista Home Premium (64-bit) to Windows 7 Home Premium (64-bit) with the media received through the Windows 7 Home Premium Upgrade Fulfillment Program.
    I installed the 64-bit version of the Common Components Installation v1.0.0.8 and restarted the computer and then installed the 64-bit version of the Lenovo Driver and Application Installation program, v5.1.0.0900.  After
    restarting the computer, I receive a message box stating "Cannot access the Service Partition".  If I click on
    Lenovo Driver and Application Installation on the Start Menu, I receive an error that the installation has not
    completed.  Restart to complete the installation.  If I restart the computer, I am back to the first error.
    Any idea how to resolve this situation?
    Any help is greatly appreciated.  Thanks in advance.
    -Larry

    I am having the exact same problem. It's driving me nuts. I also downloaded and attempted to reinstall the factory software from Lenovo's site. It installs but will not launch, giving me the following error message: "This software is for intallation on a Lenovo computer." Or words to that effect.
    Hopefully someone knows the answer. Tried tech support twice. Ugh... Thanks in advance.
    Lenovo 3000 H210 Desktop, 64-bit, Intel E5200 Duo Core, 4GB RAM, 320 GB Hard Drive

  • Deskjet3915 cannot access device service

    I just downloaded the new software and driver for the deskjet3915.  Everything appeared to run normally.  I cannot access device services.  I get an error "The application could not be started.  Try reinstalling this printer driver.  I redownloaded the driver and reran it.  Still get the same error.  I am running Windows XP with all microsoft updates.  Does anyone have a possible fix?

    the Curve does not allow you to access to the Device Memory using Windows Explorer and "USB Mass Storage" Mode. You can only access the memory card (aka Media Memory).
    to access the Device Memory, you have to use the Media Manager. You need to download the "Desktop Manager + Media Manager" for that.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Cannot access Portal Service from Web dynpro DC

    Hi all,
    I cannot access the portal service from my web dynpro dc.
    1. I created a Portal Service (say xxxservice) in a DC (say the DC name is testservice and the vendor is xx.com)
    2. Created a public part under the testservice DC and added my classes to it.
    3. Built and deployed the testservice DC.
    Now,
    4. I created a web dynpro DC.
    5. In the used DC section added the public part of the testservice DC and also the epbc.prtapi._api.jar for build time and runtime with strong qualifier.
    6. In the web dynpro "Sharing Reference", I added PORTAL:xx.com/testservice
    7. In the component controller, I am calling a method from the Portal Service.
    8. Built the web dynpro DC and deployed it.
    9. But at the run time it gives, NoClassDefFoundError on the xxxservice.
    I looked at many forum threads and tried everything. For eg: changed the Sharing Reference to PORTAL:sap.com/testservice but nothing works.
    Please do suggest me if I am missing something
    Thanks

    Hi Laxmi,
    I am sure something wrong at Portal Service DC creation. On webdynpro part you done fine .. by putting PORTAL:sap.com/testservice
    Check the below steps:
    1. Create DC Portal Applicaiton Stand alone (SDA)
    2. Add portal Service for the newly created portal service dc
    3. build and activate
    4. by default you should be get public part by name API which is compilation dependency
    5. here you dont need to do anything else
    6. on webdynpro just add the used dc to this API public part of portal service dc
    7. add PORTAL:sap.com/testservice  sharing reference
    If u go by this you shouldnt get any error..
    Now, u are saying something like ur own classes .. i think u are trying to put u r own classes to service.. but remeber portal service is to have only IYourService class and YourService class.. other classes should be made to be jar.. and add that jar to External library DC and create PPs compile & Assemble and add that DC to current service dc.
    Hope it is clear.. if not pls let me know..
    Thanks,
    Raags

  • Cannot access web-streaming site

    Windows 7 Home Premium 64-bit/SP1 OS...cannot access ANY cahnnels on "FreedoCast" web-streaming site (http://www.freedocast.com)...despite having latest Flash installed (version 11,6,602,180 installed).  Probably not a browser issue as this occurs on IE9, Firefox 19 & Safari 5--of which is a screenshot attached--as you can see No Video--just a Black Screen & No Audio--Basically the same display on all 3 browsers---COULD this be a "Flash" issue or more likely  the actual site (http://www.freedocast.com)--or perhaps something ELSE, I might not be familiar with?? 

    Hi,
    You can check the port you bind for the website in IIS and make sure you have created endpoint with the correct port. You can also install Telnet client on your local computer and run "telnet xxx.cloudapp.net public_port_in_endpoint" at the command
    prompt to see it works.
    Have you enable SSL on the website hosted on Azure VM? If yes, please also create an endpoint with port 443 and open that port in Windows Firewall on the VM.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Cannot access web page anymore

    I can no longer access my banks web page anymore.  I was able to get to the page and sign in up to a few days ago.
    When I try to get to the page I get a message that says "Safari can’t open the page “https://www.essabank.com/index.cfm?” because the server where this page is located isn’t responding."
    I never had this issue before.
    I have Firefox and it does not work on that browser either.
    I have also tried RockMelt and Opera, again without any luck.
    I have searched on the web on several forums and the advice I saw there for similar issues did not work.
    I called my bank and they were not having any problems and told me the problem was on my end.
    I called Verizon and they tried to help, even took over the computer and they could not get the page to come up.
    I can access the page if I use Kproxy, but, I cannot access the bill pay feature that has a totally different error message.
    Does anybody know how I can fix this issue and gain access to my bank's page as I did before.
    This is extremely important as I need to get to the page and to my bill pay feature without any issues.
    As I said, this had been working fine up to about 2 or 3 days ago.
    I am using Safari Version 5.0.5 (6533.21.1)
    When I go to my bookmarks and previews, the preview for my bank is blank or black with the Safari logo and a lock on it, if this helps...
    Any help is greatly appreciated as we really need access to our banks page and features that we use all the time....
    Thank you in advance for any help with this problem.....

    Greetings,
    As you've tried multiple web browsers, try creating a new user account, log out of your current account, log in to the new account and try from the new user to see what happens: http://docs.info.apple.com/article.html?path=Mac/10.6/en/8235.html
    Cheers.

  • Cannot access web server internally with ea6200

    I have the same problem as found in these posts:
    http://community.linksys.com/t5/Wireless-Routers/Cannot-access-server-internally/m-p/743969/highligh...
    http://community.linksys.com/t5/Wired-Routers/Accessing-Internal-Web-Servers-External-OK-Internal-No...
    http://community.linksys.com/t5/Wireless-Routers/EA6500-NAT-Redirection-Bug/td-p/583820/highlight/fa...
    Basically, I can't access my local http http server.  Like the other posters, this is a new router and I've never had this problem before.  I know very little about networking, but I am a developer and need my server to be accessible on my LAN.
    The only things I’ve done since setting up the router are:
    Setup the wifi security
    Enable the media prioritization as a user suggested in the last link I posted.
    Forward ports 80 and 8080 – I did this knowing that it made no sense because I only care about local access, but since nothing else with this stupid router makes any sense, I figured, “what the hell!”
    I really appreciate any help I can get.  I’m thinking about just ordering a new router and sending this PoS back to newegg.

    Hi jerred121, I've done a bit of a research about this feature. There is what we call DNS Rebinding Attacks, certain actions will not work from behind the router, this is for your own protection. I know it worked before with older routers.
    If you need to access your server locally, you can use the private IP of that device rather than the public IP.

  • Cannot access web using hostname

    Hi,
    I am not able to access web in hotjava webbrowser using hostname like www.sun.com. But it is possible to access using IP address. I am using solaris 2.6, hotjava 1.0 . I am new to unix. I do not know what to be configured to get it right.
    Your help is welcome.

    You need to configure some nameing service, like nis,
    nisplus or dns. In some networks a nis/nisplus server
    can provide name->ip translation; but for a small
    standalone system you'll probably need straight dns.
    Setup /etc/resolv.conf (see "man resolv.conf"), add your
    domainname and some dns servers. Test name lookups using
    the nslookup utility.
    Then copy /etc/nsswitch.dns to /etc/nsswitch.conf (see "man
    nsswitch.conf"). Test name lookups via nsswitch using
    getent ("getent hosts www.sun.com").

  • Cannot access web site hosted on Azure VM

    I have created Windows Server 2012R2 VM and after creating VM I have installed IIS and hosted my site and found it is working fine inside the VM.
    Then I have added HTTP end point to my VM from azure portal. After creating http end point I cannot access my web site using MyHostName.cloudapp.net.
    Can you help me why http end point is not working?
    Then I have crated VM with template and there I have defined HTTP endpoint before creating VM.
    Finally I found that if I create end point before creating VM then it works fine and if I create endpoint after creating VM then it doesn’t work.
    Can you kindly help me to solve this issue (so that end point works properly after creating VM)?
    Hasibul Haque,MCC2011,MCPD hasibulhaque.com

    Hi,
    You can check the port you bind for the website in IIS and make sure you have created endpoint with the correct port. You can also install Telnet client on your local computer and run "telnet xxx.cloudapp.net public_port_in_endpoint" at the command
    prompt to see it works.
    Have you enable SSL on the website hosted on Azure VM? If yes, please also create an endpoint with port 443 and open that port in Windows Firewall on the VM.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Cannot access web console after install.

    Hi all.
    The last day has been my first encounter with Oracle VM and it seemed to go fine until I finished. I have installed the latest VM and management tools on a bare bones machine (spec below) but cannot access the console via http://machine:8888/OVA.
    I have tried installing using https and without and can gain access to neither the https 4443 or the http 8888 yet I can ssh into it quite easily. The dmesg only really complains that there are no ipv6 routers (understandable) but the xend.log in /var/log/xen does show something strange at the bottom:
    [2011-07-13 16:04:45 3011] DEBUG (XendDomain:452) Adding Domain: 0
    [2011-07-13 16:04:45 3011] DEBUG (XendDomain:386) number of vcpus to use is 0
    [2011-07-13 16:04:45 3011] INFO (SrvServer:177) unix path=/var/lib/xend/xend-socket
    [2011-07-13 16:04:45 3011] DEBUG (XendDomainInfo:1727) XendDomainInfo.handleShutdownWatch
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: VBD.set_device not found
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: VBD.set_type not found
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: session.get_all_records not found
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: event.get_record not found
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: event.get_all not found
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: VIF.get_network not found <------ ?????
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: VIF.set_device not found
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: VIF.set_MAC not found
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: VIF.set_MTU not found
    [2011-07-13 16:04:45 3011] WARNING (XendAPI:695) API call: debug.get_all not found
    The spec of the machine started out as:
    Athlon 64 x2 3600+
    4Gb Ram
    2 Nics (1 built in Broadcom & 1 Intel MT)
    1 NVidia super duper gt9500
    3 Hard Disk, (1 IDE 150gb , 1 SATA 80 & 1 SATA 150 - the IDE is master boot with system on it)
    After a few attempts, I removed Video and the Intel card.
    The install was done via CD and never complained and in this last install, it only had 1 NIC to choose for the management console.
    On this last install I also chose top use none https and therefore the system says I should gain access via http://machine:8888/OVA
    I do notice though that in some tutorials, it states alternatives to OVA like OVS etc, all of which I have tried.
    Oh and if I netstat -an, it shows it's listening on port 8888.
    many thanks, I'm guessing it's some a bit silly that I've over looked but from the way I read the install instructions, you only need the VM and the management Disks to install and you should be able to access via web console?
    BTW, systems I'm using as clients to access range from, opera, firefox (Soalris), ie 6,7,8 & 9 from Windows and Windows server. All I get is Internet Explorer Cannot Display This Page.
    many Thanks, Mark

    Did you install the VM Manager software as a VM hosted by OVS? Make sure the VM is running. It is probably named something like OVM_EL5U4_X86_OVM_MANAGER_PVM. Use "xm list" on the OVS server to see which VMs are running.
    If it's not running, then run "xm create /path/to/vm.cfg" the path is probably something like /OVS/running_pool/OVM_EL5U4_X86_OVM_MANAGER_PVM/vm.cfg
    Jim

Maybe you are looking for