error while calling corba from webservice

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top