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

PB.Net 12.5 : Inherit Problem with WCF-Services

$
0
0

I try to build a simple Webservice in a WCF target of powerbuilder.net 12.5

 

Scenario:

  • I create a simple baseclass (nvo) with 2 simple public variables of type string ("Hello") and integer (123)
  • Then I build a second class named childclass inherited of baseclass (childclass : baseclass).
  • In the childclass I create a simple public string element ("world")

 

Then I create a simple webservice (publisher) with a public function named "Test" which returns an object of type childclass.

...

childclass obj

obj = create childclass

return obj

...

 

After deploying on IIS 7:
I tested the webservice with WCFTestClient.Exe.
I got only the the Variable(s) declared in the childclass. The variables in the baseclass are not published.

By the way ... there is no problem to create an object of type childclass and set or read the variables inherit from the baseclass.

 

My simple question: How can I use a derived class (nvo) as a webservice that will publish all public variable included the variable of the parentclass.


Viewing all articles
Browse latest Browse all 2935

Trending Articles



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