You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Shayne Yuan(Ai92)" <yu...@gmail.com> on 2008/06/17 10:16:31 UTC

Axis2 corba idl parsing problem

Hi All
I want to bridge CORBA and Web Services, allowing Web service clients to
invoke CORBA services, using the CORBA module of Axis2.

I have read the article at http://wso2.org/library/2807, and the example in
the article worked very well.
But when I want generate wsdl file automatically according to my old IDL
files, exceptions occured.

The IDL code is like this:
//File: DAFIdentifiers.idl

#ifndef _DAF_IDENTIFIERS_IDL_
#define _DAF_IDENTIFIERS_IDL_

module DAFIdentifiers
{
    typedef string URI;
    typedef sequence< URI > URISequence;
    // the resource identifier
    struct ResourceID
    {
        unsigned long long container;
        unsigned long long fragment;
    };

    typedef sequence < ResourceID > ResourceIDSequence;

    // service for translating and managing resource identifiers
    exception LookupError {    string reason; };

    interface ResourceIDService
    {
        ResourceIDSequence get_resource_ids( in URISequence uris )
            raises( LookupError );
        URISequence get_uris(in ResourceIDSequence ids )
            raises( LookupError );
        void set_uri_byid(in ResourceID id , in string resource_uri)
            raises( LookupError );
    };
};
#endif // _DAF_IDENTIFIERS_IDL_


I guess the corba module can't support corba structs and sequences very
well.

Would greatly appreciate if any of you could help me to get rid of this
issue.

Thanks in advance.

BTW: There is no problem using idl2wsdl command of CXF.

-- 

************************************************
Shayne Yuan

Email: yuanyk@gmail.com
************************************************

Re: Axis2 corba idl parsing problem

Posted by Deepal Jayasinghe <de...@opensource.lk>.
> Hi,
>
> There was an issue in 'unsigned' key word and 'long long' data type.
> The issue is now fixed.
>   
I fixed that , seems like I have forgotten to add you to the jira.

Thank you!
Deepal


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Axis2 corba idl parsing problem

Posted by "Eranga Jayasundera (එරංග)" <er...@gmail.com>.
Hi,

There was an issue in 'unsigned' key word and 'long long' data type.
The issue is now fixed.

Thank you pointing this out.

-Eranga

On Tue, Jun 17, 2008 at 1:46 PM, Shayne Yuan(Ai92) <yu...@gmail.com> wrote:
> Hi All
> I want to bridge CORBA and Web Services, allowing Web service clients to
> invoke CORBA services, using the CORBA module of Axis2.
>
> I have read the article at http://wso2.org/library/2807, and the example in
> the article worked very well.
> But when I want generate wsdl file automatically according to my old IDL
> files, exceptions occured.
>
> The IDL code is like this:
> //File: DAFIdentifiers.idl
>
> #ifndef _DAF_IDENTIFIERS_IDL_
> #define _DAF_IDENTIFIERS_IDL_
>
> module DAFIdentifiers
> {
>     typedef string URI;
>     typedef sequence< URI > URISequence;
>     // the resource identifier
>     struct ResourceID
>     {
>         unsigned long long container;
>         unsigned long long fragment;
>     };
>
>     typedef sequence < ResourceID > ResourceIDSequence;
>
>     // service for translating and managing resource identifiers
>     exception LookupError {    string reason; };
>
>     interface ResourceIDService
>     {
>         ResourceIDSequence get_resource_ids( in URISequence uris )
>             raises( LookupError );
>         URISequence get_uris(in ResourceIDSequence ids )
>             raises( LookupError );
>         void set_uri_byid(in ResourceID id , in string resource_uri)
>             raises( LookupError );
>     };
> };
> #endif // _DAF_IDENTIFIERS_IDL_
>
>
> I guess the corba module can't support corba structs and sequences very
> well.
>
> Would greatly appreciate if any of you could help me to get rid of this
> issue.
>
> Thanks in advance.
>
> BTW: There is no problem using idl2wsdl command of CXF.
>
> --
>
> ************************************************
> Shayne Yuan
>
> Email: yuanyk@gmail.com
> ************************************************
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Axis2 corba idl parsing problem

Posted by "Eranga Jayasundera (එරංග)" <er...@gmail.com>.
Hi All,

The CORBA module supports the following preprocessor definitions.
Other preprocessor definitions will ignore by the module.

#includes
#define
#undef
#ifdef
#ifndef
#else
#endif

Regards,
Eranga


On Wed, Jun 18, 2008 at 12:04 AM, Juergen Weber <we...@gmail.com> wrote:
> Hi,
>
> I believe the Corba module is a bit     ticklish with some IDL
> expressions. First, I am not sure that preprocessor definitions work.
> This is no problem, just run it through gcc -E
> long long is probably not supported, either.
> Sequences and structs work, but some combinations of both don't, no
> idea which ones.
> See also https://issues.apache.org/jira/browse/AXIS2-3856
>
> Still, the Corba module is a quite ingenious peace of code, it only
> needs a bit more fine tuning.
>
> On Tue, Jun 17, 2008 at 10:16 AM, Shayne Yuan(Ai92) <yu...@gmail.com> wrote:
>> Hi All
>> I want to bridge CORBA and Web Services, allowing Web service clients to
>> invoke CORBA services, using the CORBA module of Axis2.
>>
>> I have read the article at http://wso2.org/library/2807, and the example in
>> the article worked very well.
>> But when I want generate wsdl file automatically according to my old IDL
>> files, exceptions occured.
>>
>> The IDL code is like this:
>> //File: DAFIdentifiers.idl
>>
>> #ifndef _DAF_IDENTIFIERS_IDL_
>> #define _DAF_IDENTIFIERS_IDL_
>>
>> module DAFIdentifiers
>> {
>>     typedef string URI;
>>     typedef sequence< URI > URISequence;
>>     // the resource identifier
>>     struct ResourceID
>>     {
>>         unsigned long long container;
>>         unsigned long long fragment;
>>     };
>>
>>     typedef sequence < ResourceID > ResourceIDSequence;
>>
>>     // service for translating and managing resource identifiers
>>     exception LookupError {    string reason; };
>>
>>     interface ResourceIDService
>>     {
>>         ResourceIDSequence get_resource_ids( in URISequence uris )
>>             raises( LookupError );
>>         URISequence get_uris(in ResourceIDSequence ids )
>>             raises( LookupError );
>>         void set_uri_byid(in ResourceID id , in string resource_uri)
>>             raises( LookupError );
>>     };
>> };
>> #endif // _DAF_IDENTIFIERS_IDL_
>>
>>
>> I guess the corba module can't support corba structs and sequences very
>> well.
>>
>> Would greatly appreciate if any of you could help me to get rid of this
>> issue.
>>
>> Thanks in advance.
>>
>> BTW: There is no problem using idl2wsdl command of CXF.
>>
>> --
>>
>> ************************************************
>> Shayne Yuan
>>
>> Email: yuanyk@gmail.com
>> ************************************************
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Axis2 corba idl parsing problem

Posted by Juergen Weber <we...@gmail.com>.
Hi,

I believe the Corba module is a bit 	ticklish with some IDL
expressions. First, I am not sure that preprocessor definitions work.
This is no problem, just run it through gcc -E
long long is probably not supported, either.
Sequences and structs work, but some combinations of both don't, no
idea which ones.
See also https://issues.apache.org/jira/browse/AXIS2-3856

Still, the Corba module is a quite ingenious peace of code, it only
needs a bit more fine tuning.

On Tue, Jun 17, 2008 at 10:16 AM, Shayne Yuan(Ai92) <yu...@gmail.com> wrote:
> Hi All
> I want to bridge CORBA and Web Services, allowing Web service clients to
> invoke CORBA services, using the CORBA module of Axis2.
>
> I have read the article at http://wso2.org/library/2807, and the example in
> the article worked very well.
> But when I want generate wsdl file automatically according to my old IDL
> files, exceptions occured.
>
> The IDL code is like this:
> //File: DAFIdentifiers.idl
>
> #ifndef _DAF_IDENTIFIERS_IDL_
> #define _DAF_IDENTIFIERS_IDL_
>
> module DAFIdentifiers
> {
>     typedef string URI;
>     typedef sequence< URI > URISequence;
>     // the resource identifier
>     struct ResourceID
>     {
>         unsigned long long container;
>         unsigned long long fragment;
>     };
>
>     typedef sequence < ResourceID > ResourceIDSequence;
>
>     // service for translating and managing resource identifiers
>     exception LookupError {    string reason; };
>
>     interface ResourceIDService
>     {
>         ResourceIDSequence get_resource_ids( in URISequence uris )
>             raises( LookupError );
>         URISequence get_uris(in ResourceIDSequence ids )
>             raises( LookupError );
>         void set_uri_byid(in ResourceID id , in string resource_uri)
>             raises( LookupError );
>     };
> };
> #endif // _DAF_IDENTIFIERS_IDL_
>
>
> I guess the corba module can't support corba structs and sequences very
> well.
>
> Would greatly appreciate if any of you could help me to get rid of this
> issue.
>
> Thanks in advance.
>
> BTW: There is no problem using idl2wsdl command of CXF.
>
> --
>
> ************************************************
> Shayne Yuan
>
> Email: yuanyk@gmail.com
> ************************************************
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org