This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have proxy server set up and accessible from my Windows server(I can access the web client), but when I call the web service from Java client I get this error in the Console.
run:
===========================================
Project Name is:Test Project
Logging into the Project...
In Try Block
Have an Exception
Feb 9, 2009 11:00:03 AM ttsample.Engine Login
SEVERE: null
java.rmi.RemoteException: HTTP transport error: java.net.UnknownHostException: http; nested exception is:
HTTP transport error: java.net.UnknownHostException: http
Logged in...
at ttsample.TtsoapcgiPortType_Stub.databaseLogon(TtsoapcgiPortType_Stub.java:819)
at ttsample.Engine.Login(Engine.java:74)
at ttsample.Main.main(Main.java:30)
Caused by: HTTP transport error: java.net.UnknownHostException: http
at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:140)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:96)
at ttsample.TtsoapcgiPortType_Stub.databaseLogon(TtsoapcgiPortType_Stub.java:802)
... 2 more
BUILD SUCCESSFUL (total time: 4 seconds)
I am consuming a WSDL to invoke a web operation in my program in NetBeans6.5 . I tried the -D option to set the Proxy host and port in the Project Properties Run option in VM Options as "-Dhttp.proxyHost=10.1.104.63 -Dhttp.proxyPort=8080"
I am consuming a WSDL file using JAX-RPC in my program.
When I run my Main program I am getting the error. I used the same program with the Test Track server we use to see if its logging in or not and it worked.
When I am trying to connect to the test track server that I locally loaded on my system it is not working. So I configured Apache with my Test Track server and tested if the web client is working or not and found that it was working but when I am trying to connect to the web client through my program it is not working.
Is this a proxy settings error???When I tried to change the proxy settings and run the web client I was unable to access the web client.So I reset all of my settings back and then saw that it worked as before.
I set my proxy settings in the VM options in the properties of the project as
public Engine()
{
ttProject = "Test Project";
long ttCookie = 0;
ttUser = "syendluri";
ttPassword = "******";
try
{
//the _ttsoapcgi is what we'll use to make all the calls
_ttsoapcgi = ttsoapcgi.getTtsoapcgi();
// System.out.println(_ttsoapcgi);
}
catch(javax.xml.rpc.ServiceException ex)
{
java.util.logging.Logger.getLogger(Ttsoapcgi.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
}
public void SetProject(String strProject)
{
ttProject = strProject;
System.out.println("Project Name is:"+ttProject);
}
public String GetProject()
{
return ttProject;
}
public long GetCookie()
{
return ttCookie;
}
public boolean Login()
{
boolean result = false;
//First we need to build the project object for that we need to create the database object and set its name
CDatabase ttDatabase = new CDatabase();
ttDatabase.setName(ttProject);
//Now we can try to log in
try
{
// This code block invokes the Ttsoapcgi:databaseLogon operation on web service
System.out.println("In Try Block");
I tried to access the URL that is given in the SOAP address location but I got an error saying the requested URL is not found.
Actually under the htdocs of Apache I created a folder by name ttweb instead of TestTrack.So I tried accessing http://localhost/ttweb/ which worked but when I tried accessing http://localhost/ttweb/ttsoapcgi.exe/ I am getting an error that I dont have permission to access ttsoapcgi.exe on this server. Actually ttsoapcgi.exe is in the cgi-bin folder of Apache.
What are the further steps that I need to follow to access the web page from my program??
Thank You for the link but,I configured Apache to work with the server already with all the specifications given in the link that you provided me and I am able to log onto the web client.
My problem is I am trying to access the web client through my Java program and I am getting the "HTTP Status-Code 404:Not Found" error.
Can you guide me how I can get through this error?