Download presentation
Presentation is loading. Please wait.
Published byCody Cannon Modified over 9 years ago
1
SilkPerformer 2009 SilkPerformer.NET Explorer Samples
2
28/14/2015.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
38/14/2015.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 interface You will be prompted (the first time) for the Activation URL either „tcp://localhost:2000/RemoteInterface.rem“ or „tcp://localhost:2000/RemoteInterfaceSCall.rem“ (single call object)
4
48/14/2015.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
58/14/2015 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.xmethods.net http://www.mssoapinterop.org http://www.mssoapinterop.org
6
68/14/2015 Order Web Service http://demo.borland.com/OrderWebService/OrderService.asmx 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
78/14/2015 Web References Borland contact Borland Homepage: http://www.borland.comhttp://www.borland.com References to online WebServices http://demo.borland.com http://demo.borland.com http://www.mssoapinterop.org/asmx/simple.asmx http://www.mssoapinterop.org/asmx/simple.asmx http://www.mssoapinterop.org/asmx/simpleB.asmx http://www.mssoapinterop.org/asmx/simpleB.asmx .NET Ressources http://msdn.microsoft.com/net http://msdn.microsoft.com/net http://www.gotdotnet.com http://www.gotdotnet.com
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.