Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Prism ASP.NET Webservice (https://www.delphipraxis.net/108007-asp-net-webservice.html)

christio 6. Feb 2008 10:45


ASP.NET Webservice
 
Hallo,

Ich möchte folgende Klasse als Ergebnis einer Web-Methode ausgeben:

Delphi-Quellcode:
  TEmployee = class
  private
    fLastName: string;
    fFirstName: string;
    fID: integer;
  published
  public
    property lastname: string read fLastName write fLastName;
    property firstname: string read fFirstName write fFirstName;
    property id: integer read fID write fID;
  end;

  [WebMethod]
  function getEmployee: TEmployee;
Dabei soll "id" aber auf ein Attribut abgebildet werden.
In Delphi Win32 kann man das mit "stored AS_ATTRIBUTE" machen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:57 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz