Hi,
We are using PB 12.6 Classic.
The Corporation has a large web application with front end in Java Server Pages in JBOSS and NVO components deployed to EAS. Since EAS will be discontinued/out of maintenance this year, I have to find the best way to revamp the NVOs and deploy them as .NET web services into IIS.
The trouble is that the EAS target has a bunch of NVOs passing back and forth a structure with elements as arrays, not an array of structures, which causes a non compatible data type when compiled in the web target. The structure that causes the error is kind of:
Structure ERROR_EAS:
string error_msg[]
string error_code[]
etc, etc
I found an example in one of Bruce Armstrong articles that may work in my situation causing less changes in the NVOs code
Power Point file "webservices.pptx" and URL
However, there is no mention in the article about the definition of the structures "s_employee" and "s_employees" and the code is still giving a invalid data type compiler error. I tried several combinations between the structures but I still get a compiler error.
So my questions are:
1. Since a web service method cannot return an array of structures, how should be a structure definition to be returned by the method containing a result set, as in Bruce's Power Point file?
2. Pass a structure by reference to a method that has an argument as an array of structures compiles in the web target but gives an compiler error in the PB Client to consume the service: function with mismatch arguments
Another option could be to create .NET assemblies from the NVOs and consume them from the JSP front end, but at this point I did not try it yet.
Any help will be very appreciated.
Thank you,
Paulo