× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi all,

first of all I will explain the scenario and then any suggestions are wellcome.

I'm testing WebServices on i5, V5R3. I have a table with 9 fields and I've made a service program that contains a subprocedure that inserts data on the table (I'm not using SQL). All the fields must be passed as parameter and due to PCML restrictions (only admits 7 parameters) I must construct a data structure and pass it as parameter.

After compiling the module and the service program I run the Web Services Wizard. All is ok with the wizard and the service is created successfully. Next I go to the Web perspective of WDSC and I create a dynamic project with faces. I create a new jsp and drag and drop the web service so the form, the fields and a button to submit the information is created automatically. Then I try to run the project in WAS 6.1 (the one installed in the PC as testing environment) and I get the first error. It's related with an import that the wizard "forgets" when creating the beans. Some fields are packed decimal and the wizard "forgets" to import the class 'java.math' but after importing this class in the bean the page is displayed. I write some values on the fields and when I click the button to submit I get an Error 500. Looking in the console, the error is something like this: "javax.faces.el.PropertyNotFoundException: Error testing property 'FIELD1' in bean of
type null'. FIELD1 is a subfield of the data structure.

I've tested the same program with the same method to create it but instead a data structure I passed only 4 parameters (remember PCML restrictions) and it worked fine so I think the problem is with data structures.

I've tested the application with WCDC AE v7.0 and with RBD 7.1 with the same result.

Any suggestion will be very appreciated.

Thank you very much in advance.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.