This page was saved using jaction on 2006-09-04 8:34:13.
Address: http://flexdocs.kr/docs/flex2/langref/mx/rpc/soap/WebService.html
Title: mx.rpc.soap.WebService (Flex™ 2 레퍼런스 가이드)  •  Size: 67319
Packagemx.rpc.soap
Classpublic dynamic class WebService
InheritanceWebService Inheritance AbstractService Inheritance Proxy Inheritance Object
SubclassesWebService

WebService 클래스는, 리모트 서버-위의 SOAP 베이스의 Web 서비스에의 액세스를 제공합니다.

See also

RPC 컴퍼넌트의 사용


Public property
 property정의
 InheritedchannelSet : ChannelSet
서비스가 사용하는 ChannelSet 에의 액세스를 제공합니다.
AbstractService
 Inheritedconstructor : 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
 Inheritedoperations : Object
통상, Operations 배열은 MXML 태그를 사용해 서비스를 작성했을 경우에, MXML 컴파일러에 의해서만 설정됩니다.
AbstractService
  port : String
이 WebService 가 사용할 필요가 있는 WSDL 문서내의 포토를 지정합니다.
WebService
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
 InheritedrequestTimeout : int
송신 메세지의 요구 타임 아웃 시간 (초단위)에 대한 액세스를 제공합니다.
AbstractService
  rootURL : String
상대 URL 를 계산할 경우에, WebService 가 사용할 필요가 있는 URL 입니다.
WebService
  service : String
이 WebService 가 사용할 필요가 있는 WSDL 문서내의 서비스를 지정합니다.
WebService
  useProxy : Boolean
Flex 의 프록시 서비스를 이용할지 어떨지를 지정합니다.
WebService
  wsdl : String
이 WebService 의 WSDL 문서의 장소입니다.
WebService
Public Methods
 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
 Inheriteddisconnect ():void
서비스의 네트워크 접속을 절단 해, 보류되고 있는 요구의 모든 응답측을 삭제합니다.
AbstractService
  getHeader (qname:QName , headerName:String = null):SOAPHeader
QName 의 localName 와 URI 에 근거한 일치가 있었을 경우에, 헤더를 돌려줍니다.
WebService
 InheritedgetOperation (name:String ):AbstractOperation
지정된 이름의 Operation 를 돌려줍니다.
AbstractService
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
  loadWSDL (uri:String = null):void
WebService 에 WSDL 문서를 다운로드하도록(듯이) 지시합니다.
WebService
 Inheritedlogout ():void
유저를 행선지로부터 로그아웃 합니다.
AbstractService
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
  removeHeader (qname:QName , headerName:String = null):void
지정된 QName 를 가지는 헤더를 모든 조작으로부터 삭제합니다.
WebService
 InheritedsetCredentials (username:String , password:String ):void
서비스가 액세스 하는 행선지의 증명서를 설정합니다.
AbstractService
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
  setRemoteCredentials (remoteUsername:String , remotePassword:String ):void
유저가 WebService 에 액세스 할 경우에, 유저를 인증하기 위한 유저명과 패스워드입니다.
WebService
  toString ():String
WebService 의 인스턴스를, 행선지 ID 나 할당할 수 있었던 채널세트등이 중요한 property를 기술하는 string로서 나타냅니다.
WebService
 InheritedvalueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
Object
Protected Methods
 Methods정의
 InheritedcallProperty (name:* , ... rest):*
함수로서 호출해 가능한 object property의 동작을 덧쓰기합니다.
Proxy
 InheriteddeleteProperty (name:* ):Boolean
property를 삭제하는 요구를 덧쓰기합니다.
Proxy
 InheritedgetDescendants (name:* ):*
descendant 연산자의 사용을 재정의(override) 합니다.
Proxy
 InheritedgetProperty (name:* ):*
property의 값에 대한 요구를 덧쓰기합니다.
Proxy
 InheritedhasProperty (name:* ):Boolean
object가 특정의 property를 가지고 있을지 어떨지를 이름 마다 체크하는 요구를 덧쓰기합니다.
Proxy
 InheritedisAttribute (name:* ):Boolean
지정된 QName 가 속성으로서 마크 되고 있는지 어떤지를 확인합니다.
Proxy
 InheritednextName (index:int ):String
인덱스 번호를 사용해, 프록시가 되는 object의 property를 열거해 property명을 취득할 수 있습니다.
Proxy
 InheritednextNameIndex (index:int ):int
인덱스 번호를 사용해, 프록시가 되는 object의 property를 열거할 수 있습니다.
Proxy
 InheritednextValue (index:int ):*
인덱스 번호를 사용해, 프록시가 되는 object의 property를 열거해 property치를 취득할 수 있습니다.
Proxy
 InheritedsetProperty (name:* , value:* ):void
property의 값을 변경하는 호출을 덧쓰기합니다.
Proxy
이벤트
 이벤트일람정의
 Inheritedfault fault 이벤트는, 서비스 호출이 실패했을 경우에 dispatch됩니다. 조작 자체는, 이 이벤트를 처리하지 않습니다. AbstractService
 Inheritedinvoke 채널이 메세지의 송신을 시행하기 전에 에러가 슬로우 되지 않는 이상 서비스의 조작이 불려 갔을 때에, invoke 이벤트가 dispatch됩니다. AbstractService
  load LoadEvent.LOAD 는, WSDL 문서가 정상적으로 로드 되면 dispatch됩니다. WebService
 Inheritedresult result 이벤트는, 서비스 호출로부터 제어가 정상적으로 되돌려졌을 경우에 dispatch됩니다. 조작 자체는, 이 이벤트를 처리하지 않습니다. AbstractService
Public 정수
 정수정의
  DEFAULT_DESTINATION_HTTP : String = "DefaultHTTP"
[static]
WebService
  DEFAULT_DESTINATION_HTTPS : String = "DefaultHTTPS"
[static]
WebService
property의 상세
descriptionproperty
description:String   [read-write]

현재 액티브한 포토에 대응하는 서비스의 설명입니다.

Implements
    public function get description():String
    public function set description(value:String ):void
destinationproperty 
destination:String   [read-write]

서비스의 행선지입니다. 이 값은, services-config.xml 파일내의 행선지 엔트리와 일치하고 있을 필요가 있습니다.

Implements
    public function get destination():String
    public function set destination(value:String ):void
endpointURIproperty 
endpointURI:String   [read-write]

WebService 의 장소입니다. 통상, 서비스의 장소는 WSDL 문서로 지정됩니다만, 이 property를 설정해 그 자리소를 재정의(override) 할 수도 있습니다.

Implements
    public function get endpointURI():String
    public function set endpointURI(value:String ):void
headersproperty 
headers:Array   [read-only]

WebService 에 대해서 등록된 SOAPHeaders 의 배열을 돌려줍니다.

Implements
    public function get headers():Array
makeObjectsBindableproperty 
makeObjectsBindable:Boolean   [read-write]

이 값이 true 의 경우, 돌려주어진 익명 object는 강제적으로 바인드 가능 object로 됩니다.

Implements
    public function get makeObjectsBindable():Boolean
    public function set makeObjectsBindable(value:Boolean ):void
portproperty 
port:String   [read-write]

이 WebService 가 사용할 필요가 있는 WSDL 문서내의 포토를 지정합니다.

Implements
    public function get port():String
    public function set port(value:String ):void
rootURLproperty 
rootURL:String   [read-write]

상대 URL 를 계산할 경우에, WebService 가 사용할 필요가 있는 URL 입니다. 이 property는, 프록시를 개입시킬 때만 사용됩니다. useProxy property가 to false 로 설정되어 있는 경우, 상대 URL 는 이 어플리케이션을 실행하는 SWF 의 장소에 근거해 자동적으로 계산됩니다. 명시적으로 설정되어 있지 않은 경우,rootURL 는 자동적으로 mx.messaging.config.LoaderConfig.url 의 URL 로 설정됩니다.

Implements
    public function get rootURL():String
    public function set rootURL(value:String ):void
serviceproperty 
service:String   [read-write]

이 WebService 가 사용할 필요가 있는 WSDL 문서내의 서비스를 지정합니다.

Implements
    public function get service():String
    public function set service(value:String ):void
useProxyproperty 
useProxy:Boolean   [read-write]

Flex 의 프록시 서비스를 이용할지 어떨지를 지정합니다. 디폴트치는 false 입니다. true 를 Flex 서버를 개입시킨 프록시 요구로 설정하지 않는 경우는, Flash Player 가 타겟 URL 에 확실히 도달할 수 있도록(듯이) 할 필요가 있습니다. 또,useProxy property가 false 로 설정되어 있는 경우, services-config.xml 파일로 정의된 행선지를 사용할 수 없습니다.

디폴트치false.

Implements
    public function get useProxy():Boolean
    public function set useProxy(value:Boolean ):void
wsdlproperty 
wsdl:String   [read-write]

이 WebService 의 WSDL 문서의 장소입니다. 상대 URL 를 사용하는 경우는,rootURL 가 지정되고 있는지, MXML 에 WebService 가 작성되고 있는 것을 확인합니다.

Implements
    public function get wsdl():String
    public function set wsdl(value:String ):void
constructor    의 상세
WebService()constructor   
public 함수 WebService(destination:String = null, rootURL:String = null)

새로운 WebService 를 작성합니다. 행선지를 지정하는 경우, 그 행선지는 services-config.xml 내의 엔트리와 일치하고 있을 필요가 있습니다. 행선지를 지정하지 않는 경우, WebService 에서는 DefaultHTTP 행선지가 사용됩니다. 상대 URL 를 사용해 이 WebService 의 WSDL 문서를 검색하는 것을 전제로 하고 있는 경우는,rootURL 가 필요합니다.

Parameters
destination:String (default = null)
 
rootURL:String (default = null)
Methods의 상세
addHeader()Methods
public function addHeader(header:SOAPHeader ):void

이 Web 서비스의 모든 조작에 적용되는 헤더를 추가합니다.

Parameters
header:SOAPHeader — 실제의 헤더입니다.
addSimpleHeader()Methods 
public function addSimpleHeader(qnameLocal:String , qnameNamespace:String , headerName:String , headerValue:String ):void

이 WebService 의 모든 조작에 적용되는 헤더를 추가합니다.

Parameters
qnameLocal: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 에 근거한 일치가 있었을 경우에, 헤더를 돌려줍니다.

Parameters
qname: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를 작성하는 경우는, 수동으로 호출할 필요가 있습니다.

Parameters
uri:String (default = null) — wsdl 가 아직 지정되어 있지 않은 경우는, 여기로 지정할 수 있습니다.
removeHeader()Methods 
public function removeHeader(qname:QName , headerName:String = null):void

지정된 QName 를 가지는 헤더를 모든 조작으로부터 삭제합니다.

Parameters
qname:QName — SOAPHeader 의 QName.
 
headerName:String (default = null) — SOAPHeader 컨텐츠내의 헤더의 이름 (옵션).
setRemoteCredentials()Methods 
public override function setRemoteCredentials(remoteUsername:String , remotePassword:String ):void

유저가 WebService 에 액세스 할 경우에, 유저를 인증하기 위한 유저명과 패스워드입니다. 이것들은, HTTP 인증헤더의 일부로서 프록시로부터 엔드 포인트에게 건네집니다. useProxy 가 false 의 경우, 이 property는 무시됩니다.

Parameters
remoteUsername:String — 리모트 엔드 포인트에 건네주는 유저명입니다.
 
remotePassword:String — 리모트 엔드 포인트에 건네주는 패스워드입니다.
toString()Methods 
public function toString():String

WebService 의 인스턴스를, 행선지 ID 나 할당할 수 있었던 채널세트등이 중요한 property를 기술하는 string로서 나타냅니다.

반환값
String
이벤트의 상세
loadevent 
Event object type: mx.rpc.soap.LoadEvent
LoadEvent.type property = mx.rpc.soap.LoadEvent.LOAD

LoadEvent.LOAD 는, WSDL 문서가 정상적으로 로드 되면 dispatch됩니다.

LOAD 이벤트형.

event object의 각 property에는 다음의 값이 설정됩니다.

PropertyValue
bubblesfalse
cancelablefalse
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