silkperformer 2009 silkperformer.net explorer samples
TRANSCRIPT
SilkPerformer 2009
SilkPerformer .NET Explorer SamplesSilkPerformer .NET Explorer Samples
2 04/19/23
.NET Remoting
RemotingLib implements one remotable object (MarshalByRefObject) and defines an interface \SampleApps\RemotingSamples\RemotingLib
RemServConsole is the server application that hosts the remotable object and implements one object that implements the defined interface of RemotingLib \SampleApps\RemotingSamples\RemServConsole
All Source Code is available Code is already compiled as debug version
3 04/19/23
.NET Remoting Testing
Start the remoting server application Menu „Help\Start Remoting Sample“
in .NET Explorer Main Menu Manually start application
\SampleApps\RemotingSamples\RemServConsole\bin\debug\RemServConsole.exe
Load the remoting lib in .NET Explorer \SampleApps\RemotingSamples\RemotingLib\bin\debug\RemtingLib.dll
Create an instance of class RemoteObject Context Menu on RemoteObject – Create Remote Object
You will be prompted for the Activation URL (tcp://localhost:2000) Connect to the remoted interface
Invoke a Method of the RemoteInterface interfaceYou will be prompted (the first time) for the Activation URLeither „tcp://localhost:2000/RemoteInterface.rem“ or „tcp://localhost:2000/RemoteInterfaceSCall.rem“ (single call object)
4 04/19/23
.NET Component Testing
Netexptestdll implements some base classes that can be tested Load from \SampleApps\netexptestdll\bin\debug\netexptestdll.dll Instantiate one of the loaded objects
Context menu on the class or invoking a constructor Store the created object in a variable Call methods on the created object
5 04/19/23
Web Service Testing
demo.borland.com This site hosts several web services that can be used for testing Demo Web Service (BorlandSampleService.asmx)
Simple method calls
Testing ASP.NET Data Types (DataTypes.asmx) Sample Web Service from Microsoft Allows you to test different data types provided by the ASP.NET Framework
Ordering Web Service (OrderService.asmx) Web Service that allows you to order Books/DVDs A description can be found on the next slide
Other Free accessible Web Services http://www.xmethods.net http://www.mssoapinterop.org
6 04/19/23
Order Web Service
http://demo.borland.com/OrderWebService/OrderService.asmx Following methods are available
SearchArticles: Search for articles by a name pattern GetArticleByName: Search for an article by the full name GetArticleById: Search for an article by its id CreateUser: Creates a new user in the database Login: LogIn with an existing user. The return value is the user id which is
needed for other method calls – store this return value in a global variable Logout: Logs you out of the system CreateOrder: Creates a new order for the currently logged in user AddOrderItem: Adds an item to the order. GetOrder*: Returns information about an order All order related methods take the userid as header parameter. Thats the reason
why you should store the user id returned by the Login method in a variable and use this variable as input for all the order related methods.
Some of the methods might throw a SOAP Excepetion, e.g.: when you are not logged in and try to create an order
7 04/19/23
Web References
Borland contact Borland Homepage: http://www.borland.com
References to online WebServices http://demo.borland.com http://www.mssoapinterop.org/asmx/simple.asmx http://www.mssoapinterop.org/asmx/simpleB.asmx
.NET Ressources http://msdn.microsoft.com/net http://www.gotdotnet.com