| Package | org.orpheus.xml.bind |
| Class | public class XMLService |
| Inheritance | XMLService mx.rpc.http.HTTPService |
| Subclasses | XMLService |
<mxml:XMLService> tag to represent an
XMLService object in an MXML file. When you call the XMLService object's
send() method, it makes an HTTP request to the
specified URL, and an HTTP response is returned. Optionally, you can pass
parameters to the specified URL. When you do not go through the server-based
proxy service, you can use only HTTP GET or POST methods. However, when you set
the useProxy property to true and you use the server-based proxy service, you
can also use the HTTP HEAD, OPTIONS, TRACE, and DELETE methods.
Note: Due to a software limitation, XMLService does not generate user-friendly error messages when using GET.
Author: Andrew Lewisohn
Version: $Revision: 31 $, $Date: 2009-02-12 17:01:41 -0500 (Thu, 12 Feb 2009) $, $Author: alewisohn $
Since: 0.1
See also
| Method | Defined by | ||
|---|---|---|---|
|
XMLService(context:IEvaluationContext = null, rootURL:String = null, destination:String = null)
Creates a new XMLService.
| XMLService | ||
|
registerClass(type:Object, definition:Object):void
Registers the class (type) of an object for when the object is encoded/decoded
to/from XML.
| XMLService | ||
|
unregisterClass(type:Object):void
Unregister the class (type) of an object so that it is no longer available
when encoding/decoding to/from XML.
| XMLService | ||
| Constant | Defined by | ||
|---|---|---|---|
| ERROR_MARSHALLING : String = "Client.CouldNotMarshal" [static]
Indicates that an ActionScript Object could not be marshalled into an XML
definition.
| XMLService | ||
| ERROR_UNMARSHALLING : String = "Client.CouldNotUnmarshal" [static]
Indicates that an XML formatted result could not be unmarshalled into an
ActionScript Object.
| XMLService | ||
| XMLService | () | constructor |
public function XMLService(context:IEvaluationContext = null, rootURL:String = null, destination:String = null)
Creates a new XMLService. If you expect the service to send using relative
URLs you may wish to specify the rootURL that will be the
basis for determining the full URL (one example would be
Application.application.url).
context:IEvaluationContext (default = null) — The URL the XMLService should use when computing relative URLS.
|
|
rootURL:String (default = null) — An XMLService destination name in the service-config.xml file.
|
|
destination:String (default = null) |
| registerClass | () | method |
public function registerClass(type:Object, definition:Object):voidRegisters the class (type) of an object for when the object is encoded/decoded to/from XML.
Parameterstype:Object — The QName or String representation of the type name.
|
|
definition:Object — The Class itself or class name as a String.
|
| unregisterClass | () | method |
public function unregisterClass(type:Object):voidUnregister the class (type) of an object so that it is no longer available when encoding/decoding to/from XML.
Parameterstype:Object — The QName or String representation of the type name.
|
| ERROR_MARSHALLING | constant |
public static const ERROR_MARSHALLING:String = "Client.CouldNotMarshal"Indicates that an ActionScript Object could not be marshalled into an XML definition.
| ERROR_UNMARSHALLING | constant |
public static const ERROR_UNMARSHALLING:String = "Client.CouldNotUnmarshal"Indicates that an XML formatted result could not be unmarshalled into an ActionScript Object.