Packageorg.orpheus.xml.bind
Classpublic class XMLService
InheritanceXMLService Inheritance mx.rpc.http.HTTPService
SubclassesXMLService

You use the <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

mx.rpc.http.HTTPService
org.orpheus.xml.bind.mxml.XMLService


Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Constructor detail
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).

Parameters
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)
Method detail
registerClass()method
public function registerClass(type:Object, definition:Object):void

Registers the class (type) of an object for when the object is encoded/decoded to/from XML.

Parameters
type: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):void

Unregister the class (type) of an object so that it is no longer available when encoding/decoding to/from XML.

Parameters
type:Object — The QName or String representation of the type name.
Constant detail
ERROR_MARSHALLINGconstant
public static const ERROR_MARSHALLING:String = "Client.CouldNotMarshal"

Indicates that an ActionScript Object could not be marshalled into an XML definition.

ERROR_UNMARSHALLINGconstant 
public static const ERROR_UNMARSHALLING:String = "Client.CouldNotUnmarshal"

Indicates that an XML formatted result could not be unmarshalled into an ActionScript Object.