Hello,

Here is an example:

#pragma prefix "my.namespace"

module foo
{
     interface Foo_I
     {
           void bar();
     };
};

Thanks in advance.

BR,
Marcin

2008/2/29, Eranga Jayasundera (එරංග) <[EMAIL PROTECTED]>:
>
> Hello,
>
> Can you please send an example IDL?
>
> - Eranga
>
> On Mon, Feb 25, 2008 at 6:07 PM, Marcin Malinowski <
> [EMAIL PROTECTED]> wrote:
>
> > Hello,
> >
> > I'm going to use Axis2 module in order to allow using CORBA via WSDL
> > interface.
> > Everything works fine if I have a simple idl interface.
> >
> > For example:
> >
> > module session
> > {
> >     interface Session_I
> >     {
> >         void ping();
> >         void endSession();
> >     };
> > };
> >
> > However, if I try to include other module via #include statement, for
> > example:
> >
> > #include "tmp.idl"
> >
> > module session
> > {
> >     interface Session_I
> >     {
> >         void ping();
> >         void endSession();
> >     };
> >     ...
> > };
> >
> > I got following error:
> >
> > java.lang.NullPointerException
> >         at org.apache.axis2.corba.deployer.SchemaGenerator.generateSchema(
> > SchemaGenerator.java:134)
> >         at
> > org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(
> > CorbaDeployer.java:433)
> >         at org.apache.axis2.corba.deployer.CorbaDeployer.populateService
> > (CorbaDeployer.java:269)
> >         at org.apache.axis2.corba.deployer.CorbaDeployer.processService(
> > CorbaDeployer.java:97)
> >         at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(
> > CorbaDeployer.java:67)
> >         at
> > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
> > DeploymentFileData.java:136)
> >         at org.apache.axis2.deployment.DeploymentEngine.doDeploy(
> > DeploymentEngine.java:584)
> >         at org.apache.axis2.deployment.repository.util.WSInfoList.update
> > (WSInfoList.java:141)
> >         at org.apache.axis2.deployment.RepositoryListener.update(
> > RepositoryListener.java:330)
> >         at org.apache.axis2.deployment.RepositoryListener.checkServices(
> > RepositoryListener.java:227)
> >         at org.apache.axis2.deployment.DeploymentEngine.loadServices(
> > DeploymentEngine.java:118)
> >         at
> > org.apache.axis2.deployment.FileSystemConfigurator.loadServices(
> > FileSystemConfigurator.java:146)
> >         at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> > (ConfigurationContextFactory.java:78)
> >         at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> > (ConfigurationContextFactory.java:180)
> >         at org.apache.axis2.transport.SimpleAxis2Server.<init>(
> > SimpleAxis2Server.java:50)
> >         at org.apache.axis2.transport.SimpleAxis2Server.main(
> > SimpleAxis2Server.java:101)
> >
> > Is it a well known bug? Am I do something wrong? I'm using Nightly
> > builds... Any help will be appreciated.
> > Thanks.
> >
> > Best regards,
> > Marcin
> >
>
>
>
> --
> එරංග ජයසුන්දර෴
> http://www.eranga.info

Reply via email to