| Package | mx.rpc.soap |
| Class | public dynamic class WebService |
| Inheritance | WebService AbstractService Proxy Object |
| Subclasses | WebService |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | channelSet : ChannelSet
Provides access to the ChannelSet used by the service.
| AbstractService | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
| description : String
The description of the service for the currently active port.
| WebService | ||
| destination : String
The destination of the service.
| WebService | ||
| endpointURI : String
The location of the WebService.
| WebService | ||
| headers : Array
[read-only]
Returns the array of SOAPHeaders registered for the WebService.
| WebService | ||
| makeObjectsBindable : Boolean
When this value is true, anonymous objects returned are forced to bindable objects.
| WebService | ||
![]() | operations : Object
The Operations array is usually only set by the MXML compiler if you create a service using an MXML tag.
| AbstractService | |
| port : String
Specifies the port within the WSDL document that this WebService should use
| WebService | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
![]() | requestTimeout : int
Provides access to the request timeout in seconds for sent messages.
| AbstractService | |
| rootURL : String
The URL that the WebService should use when computing relative URLs.
| WebService | ||
| service : String
Specifies the service within the WSDL document that this WebService should use.
| WebService | ||
| useProxy : Boolean
Specifies whether to use the Flex proxy service.
| WebService | ||
| wsdl : String
The location of the WSDL document for this WebService.
| WebService | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new WebService.
| WebService | ||
|
Adds a header that will be applied to all operations of this web service.
| WebService | ||
|
addSimpleHeader(qnameLocal:String, qnameNamespace:String, headerName:String, headerValue:String):void
Add a header that will be applied to all operations of this WebService.
| WebService | ||
|
Returns a Boolean value that indicates whether the WebService ready to load a WSDL (does it have a valid destination or wsdl specified).
| WebService | ||
|
Clears the headers that applied to all operations.
| WebService | ||
![]() |
Disconnects the service's network connection and removes any pending
request responders.
| AbstractService | |
|
Returns a header if a match is found based on QName localName and URI.
| WebService | ||
![]() |
Returns an Operation of the given name.
| AbstractService | |
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
|
Instructs the WebService to download the WSDL document.
| WebService | ||
![]() |
Logs the user out of the destination.
| AbstractService | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
|
Removes the header with the given QName from all operations.
| WebService | ||
![]() |
Set the credentials for the destination accessed by the service.
| AbstractService | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
|
The username and password to authenticate a user when accessing
the webservice.
| WebService | ||
|
Represents an instance of WebService as a String, describing
important properties such as the destination id and the set of
channels assigned.
| WebService | ||
![]() |
Returns the primitive value of the specified object.
| Object | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() | The fault event is dispatched when a service call fails and isn't handled by the Operation itself. | AbstractService | ||
![]() | The invoke event is dispatched when a service Operation is invoked so long as an Error is not thrown before the Channel attempts to send the message. | AbstractService | ||
The LoadEvent.LOAD is dispatched when the WSDL document
has loaded successfully. | WebService | |||
![]() | The result event is dispatched when a service call successfully returns and isn't handled by the Operation itself. | AbstractService | ||
| Constant | Defined by | ||
|---|---|---|---|
| DEFAULT_DESTINATION_HTTP : String = "DefaultHTTP" [static]
| WebService | ||
| DEFAULT_DESTINATION_HTTPS : String = "DefaultHTTPS" [static]
| WebService | ||
| description | property |
description:String [read-write]The description of the service for the currently active port.
Implementation public function get description():String
public function set description(value:String):void
| destination | property |
destination:String [read-write]The destination of the service. This value should match a destination entry in the services-config.xml file.
Implementation public function get destination():String
public function set destination(value:String):void
| endpointURI | property |
endpointURI:String [read-write]The location of the WebService. Normally, the WSDL document specifies the location of the services, but you can set this property to override that location.
Implementation public function get endpointURI():String
public function set endpointURI(value:String):void
| headers | property |
headers:Array [read-only]Returns the array of SOAPHeaders registered for the WebService.
Implementation public function get headers():Array
| makeObjectsBindable | property |
makeObjectsBindable:Boolean [read-write]When this value is true, anonymous objects returned are forced to bindable objects.
Implementation public function get makeObjectsBindable():Boolean
public function set makeObjectsBindable(value:Boolean):void
| port | property |
port:String [read-write]Specifies the port within the WSDL document that this WebService should use
Implementation public function get port():String
public function set port(value:String):void
| rootURL | property |
rootURL:String [read-write]
The URL that the WebService should use when computing relative URLs. This property is only used when going
through the proxy. When the useProxy property is set to false the relative URL is
computed automatically based on the location of the SWF running this application.
If not set explicitly rootURL is automatically set to the URL of
mx.messaging.config.LoaderConfig.url.
public function get rootURL():String
public function set rootURL(value:String):void
| service | property |
service:String [read-write]Specifies the service within the WSDL document that this WebService should use.
Implementation public function get service():String
public function set service(value:String):void
| useProxy | property |
useProxy:Boolean [read-write]
Specifies whether to use the Flex proxy service. The default value is false. If you
do not specify true to proxy requests though the Flex server, you must ensure that Flash Player
can reach the target URL. You also cannot use destinations defined in the services-config.xml file if the
useProxy property is set to false.
The default value is false.
public function get useProxy():Boolean
public function set useProxy(value:Boolean):void
| wsdl | property |
wsdl:String [read-write]
The location of the WSDL document for this WebService. If you use a relative URL, make sure that the rootURL has
been specified or that you created the WebService in MXML.
public function get wsdl():String
public function set wsdl(value:String):void
| WebService | () | constructor |
public function WebService(destination:String = null, rootURL:String = null)
Creates a new WebService. The destination, if specified, should match an entry in services-config.xml. If
unspecified, the WebService uses the DefaultHTTP destination. The rootURL is required if you intend to use a relative
URL find the WSDL document for this WebService.
destination:String (default = null) |
|
rootURL:String (default = null) |
| addHeader | () | method |
public function addHeader(header:SOAPHeader):voidAdds a header that will be applied to all operations of this web service.
Parametersheader:SOAPHeader — Actual header.
|
| addSimpleHeader | () | method |
public function addSimpleHeader(qnameLocal:String, qnameNamespace:String, headerName:String, headerValue:String):voidAdd a header that will be applied to all operations of this WebService.
ParametersqnameLocal:String — the localname for the header QName
|
|
qnameNamespace:String — the namespace for header QName
|
|
headerName:String — the name of the header
|
|
headerValue:String — the value of the header
|
| canLoadWSDL | () | method |
public function canLoadWSDL():BooleanReturns a Boolean value that indicates whether the WebService ready to load a WSDL (does it have a valid destination or wsdl specified).
ReturnsBoolean |
| clearHeaders | () | method |
public function clearHeaders():voidClears the headers that applied to all operations.
| getHeader | () | method |
public function getHeader(qname:QName, headerName:String = null):SOAPHeaderReturns a header if a match is found based on QName localName and URI.
Parametersqname:QName — QName of the SOAPHeader.
|
|
headerName:String (default = null) — Name of a header in the SOAPHeader content (Optional)
|
SOAPHeader |
| loadWSDL | () | method |
public function loadWSDL(uri:String = null):void
Instructs the WebService to download the WSDL document. The WebService calls this method automatically WebService when specified
in the WebService MXML tag, but it must be called manually if you create the WebService object in ActionScript after you have
specified the destination or wsdl property value.
uri:String (default = null) — If the wsdl hasn't been specified previously, it may be specified here.
|
| removeHeader | () | method |
public function removeHeader(qname:QName, headerName:String = null):voidRemoves the header with the given QName from all operations.
Parametersqname:QName — QName of the SOAPHeader.
|
|
headerName:String (default = null) — Name of a header in the SOAPHeader content (Optional)
|
| setRemoteCredentials | () | method |
public override function setRemoteCredentials(remoteUsername:String, remotePassword:String):voidThe username and password to authenticate a user when accessing the webservice. These will be passed as part of the HTTP Authorization header from the proxy to the endpoint. If useProxy is false this property will be ignored.
ParametersremoteUsername:String — the username to pass to the remote endpoint
|
|
remotePassword:String — the password to pass to the remote endpoint
|
| toString | () | method |
public function toString():StringRepresents an instance of WebService as a String, describing important properties such as the destination id and the set of channels assigned.
ReturnsString |
| load | event |
mx.rpc.soap.LoadEvent
mx.rpc.soap.LoadEvent.LOAD
The LoadEvent.LOAD is dispatched when the WSDL document
has loaded successfully.
The LOAD event type.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| DEFAULT_DESTINATION_HTTP | constant |
public static const DEFAULT_DESTINATION_HTTP:String = "DefaultHTTP"
| DEFAULT_DESTINATION_HTTPS | constant |
public static const DEFAULT_DESTINATION_HTTPS:String = "DefaultHTTPS"
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/2/langref/mx/rpc/soap/WebService.html