V
vertigo
Hello
I have soap as webservice server, and java class deployed:
package sr;
import java.io.*;
import java.lang.*;
import java.net.*;
import org.omg.CORBA.*;
import baseMod.*;
public class Client {
public static String url="http://10.0.3.244/SR/CORBA/base.ior";
public int Realize()
{
base b = Connect();
if (b==null)
return -1;
return b.Realize();
}
public base Connect()
{
try
{
String args[]={"a1","a2"};
ORB orb = ORB.init(args, null);
URL u = new URL(url);
BufferedReader in = new BufferedReader(new
InputStreamReader(u.openStream()));
String ior = in.readLine();
in.close();
org.omg.CORBA.Object obj = orb.string_to_object(ior);
base b = baseHelper.narrow(obj); /*EXCEPTION OCCUR HERE*/
return b;
}
catch (Exception e)
{
e.printStackTrace(System.out);
}
return null;
}
}
normal webservices work's ok, but when i want to call CORBA from
webservice i receive Exception, when calling baseHelper.narrow(obj):
When i revrite this java class as java application with main() which
call's CORBA, and when i launch it everything works fine.
So the problem must be in webservice (or soap server).
Maybe soap can not call CORBA ?
Is it possible that this could work on AXIS ?
What can i do ?
Thanx for any help.
Michal
I have soap as webservice server, and java class deployed:
package sr;
import java.io.*;
import java.lang.*;
import java.net.*;
import org.omg.CORBA.*;
import baseMod.*;
public class Client {
public static String url="http://10.0.3.244/SR/CORBA/base.ior";
public int Realize()
{
base b = Connect();
if (b==null)
return -1;
return b.Realize();
}
public base Connect()
{
try
{
String args[]={"a1","a2"};
ORB orb = ORB.init(args, null);
URL u = new URL(url);
BufferedReader in = new BufferedReader(new
InputStreamReader(u.openStream()));
String ior = in.readLine();
in.close();
org.omg.CORBA.Object obj = orb.string_to_object(ior);
base b = baseHelper.narrow(obj); /*EXCEPTION OCCUR HERE*/
return b;
}
catch (Exception e)
{
e.printStackTrace(System.out);
}
return null;
}
}
normal webservices work's ok, but when i want to call CORBA from
webservice i receive Exception, when calling baseHelper.narrow(obj):
When i revrite this java class as java application with main() which
call's CORBA, and when i launch it everything works fine.
So the problem must be in webservice (or soap server).
Maybe soap can not call CORBA ?
Is it possible that this could work on AXIS ?
What can i do ?
Thanx for any help.
Michal