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) <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> ************************************************
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to