IDL wrapper with JAVA and multiple levels and arrays

Hi


:DArrays in the IDL file are mapped to Java arrays. Groups (structures) in the IDL file are mapped to inner classes, the group members (structure fields) are implemented as public fields of the inner class.
The above comes from the manual.

This seems to indicate as though it is supported. But it doesn’t work. :mad:


On the natural side I use Object-browse and Object-browse-static with a little driver program. :smiley:

Here is the example of my IDL.

Program ‘ZMAT001D’ Is
Define Data Parameter
1 ZMAT0KEY
2 LANGUAGE-CD (A5)
2 UNIQUE-ID (P10)
1 ZMAT0ROW
2 ROW (/1:25)
3 LANGUAGE-CD (A5)
3 DESCRIPTION (A50)
1 ZMAT0PRI
2 FIRST-TIME (A3)
2 PREV-REQ (A50)
2 KEY-DATA (B1/1:32)
1 CDBRPDA
2 INPUTS
3 METHOD (N1)
3 SORT-KEY (A32)
3 HISTOGRAM (L)
3 ROWS-REQUESTED (N4)
3 RANGE-OPTION (N2)
3 LEADING-FIXED-COMPONENTS (N2)
3 USE-UNIQUE-ID (L)
2 INPUT-OUTPUTS
3 RESTART (L)
2 OUTPUTS
3 ACTUAL-ROWS-RETURNED(N4)
3 END-OF-DATA (L)
3 RESTARTED (I1)
1 MSG-INFO
2 ##MSG (A79)
2 ##MSG-NR (N4)
2 ##MSG-DATA (A32/1:3)
2 ##RETURN-CODE (A1)
2 ##ERROR-FIELD (A32)
2 ##ERROR-FIELD-INDEX1 (P3)
2 ##ERROR-FIELD-INDEX2 (P3)
2 ##ERROR-FIELD-INDEX3 (P3)
End-Define


Can anyone please help me ?

I have done the above IDL with the dcom wrapper and got it working in VB.

Now the challenge is to get it working in JAVA and I am only a beginner in JAVA.

Thanks for any help. :cool:

Miklos Hagymassy

Hi Miklos,

could you please specify what you mean with “But it doesn’t work.”.
What error message do you get ?

And which version of EntireX are you using ?

Kind regards,
Rolf

Hi

I am using Entire X 6.2.1.0.

The teset and generate doesn’t work. It doesn’t like the levels because I have moved everything to level 1. Now it works.

But now I am stuck with JSP pages. How do I pass over the information from the keys to the next instance.

I am browsing a file and want to see the next 25 records. Data is hold in the pri* fields.

But some of them is binary fields. Converting it to string and back doesn’t work because I get errors (954) in the natural side.

?

Miklos

Miklos Hagymassy

Hi Miklos,

would it be possible for you to send the IDL file, Natural code and JSP and/or Servlet pages to the forum? Would you please expand your explanation and describe the flow of information between the various components? It would also be a great help if you could be more specific to the nature of the errors you are getting.

Regards
Theo