Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

How should be a structure to be returned by PB SOAP PB Web Service

$
0
0

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

 

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=10&cad=rja&uact=8&ved=0ahUKEwjcu5Pb5ovLAhXBpR4KHSSNDF0QFgh…

 

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


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>