Hi again guys
I hope we are not misreading this, but please have a look at this snippet from E1 9.1 BSSV tools doc.
The issue we have the is the returnVO disappears and is not readable upon return IF any errors of type 2 were invoked in the BSFN NER. (Set Return code = 2)
SetNERReturnCode(B0100044.SetNERReturnCode)
"2" -> idErrorStatus [GENLNG]
As it throws an exception.
https://docs.oracle.com/cd/E24705_01/doc.91/e24219/create_publishedbssv.htm#EOTME00021
4.6 Handling Errors in the Published Business Service
The published business service class is the JD Edwards EnterpriseOne object that is exposed as a web service. Upon invocation, the published business service returns either a value object that contains data and warning messages, or it throws a BusinessServiceException that contains all errors and warnings that occurred during business processing. The published business service throws BusinessServiceException if any messages of the type error occur in the collection of messages that are returned from the call to the business service method. System errors and database failures are thrown as runtime exceptions. A runtime exception is not handled, but it will cause the published business service to fail and return to the original caller. Throwing an exception causes any database operations that were performed between the default transaction boundaries to roll back, and an error message is sent to the log files.
So with that in mind......how in blazes name do I let the calling program read the confirm response successfully and get the messages back out to them in a stable way if the code called threw a 2 type error along the way.
I did actually leave a note in a previous NER I'd exposed to my .NET team in that it was debatable if I should throw the COM error to 2 or not. I think it WAS causing issues.
I think by default the reponse ends up in java.message anyway.
So all that's good.
What I may need to do is do as you suggested and catch the exception and add them to E1MessageList in a loop.
Just confused as my java isn't very good and I'm learning as we type. I can write a BSSV fine, (as the wizard does most of the work) but all these little tricks are beyond me as my java is pants