| Package | mx.rpc.soap |
| Class | public dynamic class WebService |
| Inheritance | WebService AbstractService Proxy Object |
| Subclasses | WebService |
See also
| property | 정의 | ||
|---|---|---|---|
![]() | channelSet : ChannelSet
서비스가 사용하는 ChannelSet 에의 액세스를 제공합니다.
| AbstractService | |
![]() | constructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor 함수에의 참조입니다.
| Object | |
| description : String
현재 액티브한 포토에 대응하는 서비스의 설명입니다.
| WebService | ||
| destination : String
서비스의 행선지입니다.
| WebService | ||
| endpointURI : String
WebService 의 장소입니다.
| WebService | ||
| headers : Array
[read-only]
WebService 에 대해서 등록된 SOAPHeaders 의 배열을 돌려줍니다.
| WebService | ||
| makeObjectsBindable : Boolean
이 값이 true 의 경우, 돌려주어진 익명 object는 강제적으로 바인드 가능 object로 됩니다.
| WebService | ||
![]() | operations : Object
통상, Operations 배열은 MXML 태그를 사용해 서비스를 작성했을 경우에, MXML 컴파일러에 의해서만 설정됩니다.
| AbstractService | |
| port : String
이 WebService 가 사용할 필요가 있는 WSDL 문서내의 포토를 지정합니다.
| WebService | ||
![]() | prototype : Object
[static]
클래스 또는 함수 object의 prototype object에의 참조입니다.
| Object | |
![]() | requestTimeout : int
송신 메세지의 요구 타임 아웃 시간 (초단위)에 대한 액세스를 제공합니다.
| AbstractService | |
| rootURL : String
상대 URL 를 계산할 경우에, WebService 가 사용할 필요가 있는 URL 입니다.
| WebService | ||
| service : String
이 WebService 가 사용할 필요가 있는 WSDL 문서내의 서비스를 지정합니다.
| WebService | ||
| useProxy : Boolean
Flex 의 프록시 서비스를 이용할지 어떨지를 지정합니다.
| WebService | ||
| wsdl : String
이 WebService 의 WSDL 문서의 장소입니다.
| WebService | ||
| Methods | 정의 | ||
|---|---|---|---|
| WebService (destination:String = null, rootURL:String = null)
새로운 WebService 를 작성합니다.
| WebService | ||
| addHeader (header:SOAPHeader ):void
이 Web 서비스의 모든 조작에 적용되는 헤더를 추가합니다.
| WebService | ||
| addSimpleHeader (qnameLocal:String , qnameNamespace:String , headerName:String , headerValue:String ):void
이 WebService 의 모든 조작에 적용되는 헤더를 추가합니다.
| WebService | ||
| canLoadWSDL ():Boolean
WebService 를 WSDL 를 로드할 수 있는 상태일지 어떨지 (유효한 행선지 또는 wsdl 가 지정되고 있는지 어떤지)를 나타내는 불리언 값을 돌려줍니다.
| WebService | ||
| clearHeaders ():void
모든 조작에 적용되는 헤더를 클리어 합니다.
| WebService | ||
![]() | disconnect ():void
서비스의 네트워크 접속을 절단 해, 보류되고 있는 요구의 모든 응답측을 삭제합니다.
| AbstractService | |
| getHeader (qname:QName , headerName:String = null):SOAPHeader
QName 의 localName 와 URI 에 근거한 일치가 있었을 경우에, 헤더를 돌려줍니다.
| WebService | ||
![]() | getOperation (name:String ):AbstractOperation
지정된 이름의 Operation 를 돌려줍니다.
| AbstractService | |
![]() | hasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
| Object | |
![]() | isPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
| Object | |
| loadWSDL (uri:String = null):void
WebService 에 WSDL 문서를 다운로드하도록(듯이) 지시합니다.
| WebService | ||
![]() | logout ():void
유저를 행선지로부터 로그아웃 합니다.
| AbstractService | |
![]() | propertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
| Object | |
| removeHeader (qname:QName , headerName:String = null):void
지정된 QName 를 가지는 헤더를 모든 조작으로부터 삭제합니다.
| WebService | ||
![]() | setCredentials (username:String , password:String ):void
서비스가 액세스 하는 행선지의 증명서를 설정합니다.
| AbstractService | |
![]() | setPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
| Object | |
| setRemoteCredentials (remoteUsername:String , remotePassword:String ):void
유저가 WebService 에 액세스 할 경우에, 유저를 인증하기 위한 유저명과 패스워드입니다.
| WebService | ||
| toString ():String
WebService 의 인스턴스를, 행선지 ID 나 할당할 수 있었던 채널세트등이 중요한 property를 기술하는 string로서 나타냅니다.
| WebService | ||
![]() | valueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
| Object | |
| 이벤트 | 일람 | 정의 | ||
|---|---|---|---|---|
![]() | fault | fault 이벤트는, 서비스 호출이 실패했을 경우에 dispatch됩니다. 조작 자체는, 이 이벤트를 처리하지 않습니다. | AbstractService | |
![]() | invoke | 채널이 메세지의 송신을 시행하기 전에 에러가 슬로우 되지 않는 이상 서비스의 조작이 불려 갔을 때에, invoke 이벤트가 dispatch됩니다. | AbstractService | |
| load |
LoadEvent.LOAD 는, WSDL 문서가 정상적으로 로드 되면 dispatch됩니다. | WebService | ||
![]() | result | result 이벤트는, 서비스 호출로부터 제어가 정상적으로 되돌려졌을 경우에 dispatch됩니다. 조작 자체는, 이 이벤트를 처리하지 않습니다. | AbstractService | |
| 정수 | 정의 | ||
|---|---|---|---|
| DEFAULT_DESTINATION_HTTP : String = "DefaultHTTP" [static]
| WebService | ||
| DEFAULT_DESTINATION_HTTPS : String = "DefaultHTTPS" [static]
| WebService | ||
| description | property |
description:String [read-write]현재 액티브한 포토에 대응하는 서비스의 설명입니다.
Implements public function get description():String
public function set description(value:String ):void
| destination | property |
destination:String [read-write]서비스의 행선지입니다. 이 값은, services-config.xml 파일내의 행선지 엔트리와 일치하고 있을 필요가 있습니다.
Implements public function get destination():String
public function set destination(value:String ):void
| endpointURI | property |
endpointURI:String [read-write]WebService 의 장소입니다. 통상, 서비스의 장소는 WSDL 문서로 지정됩니다만, 이 property를 설정해 그 자리소를 재정의(override) 할 수도 있습니다.
Implements public function get endpointURI():String
public function set endpointURI(value:String ):void
| headers | property |
headers:Array [read-only]WebService 에 대해서 등록된 SOAPHeaders 의 배열을 돌려줍니다.
Implements public function get headers():Array
| makeObjectsBindable | property |
makeObjectsBindable:Boolean [read-write]이 값이 true 의 경우, 돌려주어진 익명 object는 강제적으로 바인드 가능 object로 됩니다.
Implements public function get makeObjectsBindable():Boolean
public function set makeObjectsBindable(value:Boolean ):void
| port | property |
port:String [read-write]이 WebService 가 사용할 필요가 있는 WSDL 문서내의 포토를 지정합니다.
Implements public function get port():String
public function set port(value:String ):void
| rootURL | property |
rootURL:String [read-write]
상대 URL 를 계산할 경우에, WebService 가 사용할 필요가 있는 URL 입니다. 이 property는, 프록시를 개입시킬 때만 사용됩니다. useProxy property가 to false 로 설정되어 있는 경우, 상대 URL 는 이 어플리케이션을 실행하는 SWF 의 장소에 근거해 자동적으로 계산됩니다. 명시적으로 설정되어 있지 않은 경우,rootURL 는 자동적으로 mx.messaging.config.LoaderConfig.url 의 URL 로 설정됩니다.
public function get rootURL():String
public function set rootURL(value:String ):void
| service | property |
service:String [read-write]이 WebService 가 사용할 필요가 있는 WSDL 문서내의 서비스를 지정합니다.
Implements public function get service():String
public function set service(value:String ):void
| useProxy | property |
useProxy:Boolean [read-write]
Flex 의 프록시 서비스를 이용할지 어떨지를 지정합니다. 디폴트치는 false 입니다. true 를 Flex 서버를 개입시킨 프록시 요구로 설정하지 않는 경우는, Flash Player 가 타겟 URL 에 확실히 도달할 수 있도록(듯이) 할 필요가 있습니다. 또,useProxy property가 false 로 설정되어 있는 경우, services-config.xml 파일로 정의된 행선지를 사용할 수 없습니다.
디폴트치false.
public function get useProxy():Boolean
public function set useProxy(value:Boolean ):void
| wsdl | property |
wsdl:String [read-write]
이 WebService 의 WSDL 문서의 장소입니다. 상대 URL 를 사용하는 경우는,rootURL 가 지정되고 있는지, MXML 에 WebService 가 작성되고 있는 것을 확인합니다.
public function get wsdl():String
public function set wsdl(value:String ):void
| WebService | () | constructor |
public 함수 WebService(destination:String = null, rootURL:String = null)
새로운 WebService 를 작성합니다. 행선지를 지정하는 경우, 그 행선지는 services-config.xml 내의 엔트리와 일치하고 있을 필요가 있습니다. 행선지를 지정하지 않는 경우, WebService 에서는 DefaultHTTP 행선지가 사용됩니다. 상대 URL 를 사용해 이 WebService 의 WSDL 문서를 검색하는 것을 전제로 하고 있는 경우는,rootURL 가 필요합니다.
destination:String (default = null) |
|
rootURL:String (default = null) |
| addHeader | () | Methods |
public function addHeader(header:SOAPHeader ):void 이 Web 서비스의 모든 조작에 적용되는 헤더를 추가합니다.
Parametersheader:SOAPHeader — 실제의 헤더입니다.
|
| addSimpleHeader | () | Methods |
public function addSimpleHeader(qnameLocal:String , qnameNamespace:String , headerName:String , headerValue:String ):void 이 WebService 의 모든 조작에 적용되는 헤더를 추가합니다.
ParametersqnameLocal:String — 헤더 QName 의 로컬명입니다.
|
|
qnameNamespace:String — 헤더 QName 의 namespace입니다.
|
|
headerName:String — 헤더의 이름입니다.
|
|
headerValue:String — 헤더의 값입니다.
|
| canLoadWSDL | () | Methods |
public function canLoadWSDL():Boolean WebService 를 WSDL 를 로드할 수 있는 상태일지 어떨지 (유효한 행선지 또는 wsdl 가 지정되고 있는지 어떤지)를 나타내는 불리언 값을 돌려줍니다.
반환값Boolean |
| clearHeaders | () | Methods |
public function clearHeaders():void 모든 조작에 적용되는 헤더를 클리어 합니다.
| getHeader | () | Methods |
public function getHeader(qname:QName , headerName:String = null):SOAPHeader QName 의 localName 와 URI 에 근거한 일치가 있었을 경우에, 헤더를 돌려줍니다.
Parametersqname:QName — SOAPHeader 의 QName.
|
|
headerName:String (default = null) — SOAPHeader 컨텐츠내의 헤더의 이름 (옵션).
|
SOAPHeader |
| loadWSDL | () | Methods |
public function loadWSDL(uri:String = null):void
WebService 에 WSDL 문서를 다운로드하도록(듯이) 지시합니다. WebService MXML 태그로 지정되고 있는 경우, WebService 는 이 Methods를 자동적으로 호출합니다. 다만,destination 또는 wsdl property의 값을 지정한 다음에, ActionScript 에 WebService object를 작성하는 경우는, 수동으로 호출할 필요가 있습니다.
uri:String (default = null) — wsdl 가 아직 지정되어 있지 않은 경우는, 여기로 지정할 수 있습니다.
|
| removeHeader | () | Methods |
public function removeHeader(qname:QName , headerName:String = null):void 지정된 QName 를 가지는 헤더를 모든 조작으로부터 삭제합니다.
Parametersqname:QName — SOAPHeader 의 QName.
|
|
headerName:String (default = null) — SOAPHeader 컨텐츠내의 헤더의 이름 (옵션).
|
| setRemoteCredentials | () | Methods |
public override function setRemoteCredentials(remoteUsername:String , remotePassword:String ):void 유저가 WebService 에 액세스 할 경우에, 유저를 인증하기 위한 유저명과 패스워드입니다. 이것들은, HTTP 인증헤더의 일부로서 프록시로부터 엔드 포인트에게 건네집니다. useProxy 가 false 의 경우, 이 property는 무시됩니다.
ParametersremoteUsername:String — 리모트 엔드 포인트에 건네주는 유저명입니다.
|
|
remotePassword:String — 리모트 엔드 포인트에 건네주는 패스워드입니다.
|
| toString | () | Methods |
public function toString():String WebService 의 인스턴스를, 행선지 ID 나 할당할 수 있었던 채널세트등이 중요한 property를 기술하는 string로서 나타냅니다.
반환값String |
| load | event |
mx.rpc.soap.LoadEvent
mx.rpc.soap.LoadEvent.LOAD
LoadEvent.LOAD 는, WSDL 문서가 정상적으로 로드 되면 dispatch됩니다.
LOAD 이벤트형.
event object의 각 property에는 다음의 값이 설정됩니다.
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | 이벤트를 처리하는 event listener를 정의하는 object. 예를 들어, event listener의 등록에 myButton.addEventListener() 를 사용하면,currentTarget 의 값은 "myButton" 가 됩니다. |
target | 이벤트를 dispatch한 object를 나타냅니다. 이 object는 반드시 이벤트를 받는 object라고는 할 수 없습니다. 이벤트를 받는 object에 항상 액세스 하려면 ,currentTarget property를 사용해 주세요. |
| DEFAULT_DESTINATION_HTTP | 정수 |
public static const DEFAULT_DESTINATION_HTTP:String = "DefaultHTTP"
| DEFAULT_DESTINATION_HTTPS | 정수 |
public static const DEFAULT_DESTINATION_HTTPS:String = "DefaultHTTPS"
코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트
현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/rpc/soap/WebService.html