• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

NetConnection.getService( ) Method > NetConnection.getService( ) Method

Name

NetConnection.getService( ) Method

Synopsis

                     myNetConnectionObject.getService(serviceName, defaultResponder)

Arguments

serviceName

The name of the remote service whose methods you want to access. This varies according to the server model and the type of service you are accessing, as documented in earlier chapters.

defaultResponder

An optional responder object that handles the responses and errors with defined onResult( ) and onStatus( ) methods. If you don’t specify the defaultResponder, you must specify responders in your method calls.

Returns

A NetServiceProxy object.

Description

The getService( ) method is used to create a proxy to a remote service and is one of the most frequently used NetConnection methods. The call to getService( ) returns a NetServiceProxy object, which dispatches responses from the service to the client, as discussed in Chapter 4.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint