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

<mx:WebService> 태그에 의해, SOAP 에 준거한 Web 서비스의 처리에 액세스 할 수 있습니다.

MXML 문장구조법expandedMXML 문장구조법의 비표시

<mx:WebService> 태그에서는, 이하의 태그 속성을 사용할 수 있습니다.

 <mx:WebService property concurrency="multiple|single|last" destination="디폴트치 없음" id="디폴트치 없음" serviceName="디폴트치 없음" showBusyCursor="false|true" makeObjectsBindable="false|true" useProxy="false|true" wsdl="디폴트치 없음" event fault="디폴트치 없음" result="디폴트치 없음" /> 

<mx:WebService> 태그는, 이하의 태그 속성을 갖춘 복수의 <mx:operation> 태그를 가질 수가 있습니다.

 <mx:operation property concurrency="multiple|single|last" name=디폴트치 이루어, 필수 resultFormat="object|xml|e4x" makeObjectsBindable="false|true"
    
Events fault=디폴트치 없음 result=디폴트치 없음 /> 
<mx:Operation> 태그에는, <mx:request> 태그가 포함됩니다. <mx:request> 태그로 XML 구조를 지정하려면 , 태그의 format 속성의 값을 "xml" 로 설정할 필요가 있습니다. 설정하지 않는 경우, 본체가 object에 변환됩니다.

View the examples

See also

RPC 컴퍼넌트의 사용


Public property
 property정의
 InheritedchannelSet : ChannelSet
서비스가 사용하는 ChannelSet 에의 액세스를 제공합니다.
AbstractService
  concurrency : String
동일 서비스에 대한 복수의 호출의 처리 방법을 나타내는 값입니다.
WebService
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
 Inheriteddescription : String
현재 액티브한 포토에 대응하는 서비스의 설명입니다.
WebService
 Inheriteddestination : String
서비스의 행선지입니다.
WebService
 InheritedendpointURI : String
WebService 의 장소입니다.
WebService
 Inheritedheaders : Array
WebService 에 대해서 등록된 SOAPHeaders 의 배열을 돌려줍니다.
WebService
 InheritedmakeObjectsBindable : Boolean
이 값이 true 의 경우, 돌려주어진 익명 object는 강제적으로 바인드 가능 object로 됩니다.
WebService
 Inheritedoperations : Object
통상, Operations 배열은 MXML 태그를 사용해 서비스를 작성했을 경우에, MXML 컴파일러에 의해서만 설정됩니다.
AbstractService
 Inheritedport : String
이 WebService 가 사용할 필요가 있는 WSDL 문서내의 포토를 지정합니다.
WebService
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
 InheritedrequestTimeout : int
송신 메세지의 요구 타임 아웃 시간 (초단위)에 대한 액세스를 제공합니다.
AbstractService
 InheritedrootURL : String
상대 URL 를 계산할 경우에, WebService 가 사용할 필요가 있는 URL 입니다.
WebService
 Inheritedservice : String
이 WebService 가 사용할 필요가 있는 WSDL 문서내의 서비스를 지정합니다.
WebService
  serviceName : String
WebService
  showBusyCursor : Boolean
true 의 경우, 서비스의 실행중에 Busy 커서가 표시됩니다.
WebService
 InheriteduseProxy : Boolean
Flex 의 프록시 서비스를 이용할지 어떨지를 지정합니다.
WebService
 Inheritedwsdl : String
이 WebService 의 WSDL 문서의 장소입니다.
WebService
Public Methods
 Methods정의
  WebService (destination:String = null)
새로운 WebService 컴퍼넌트를 작성합니다.
WebService
 InheritedaddHeader (header:SOAPHeader ):void
이 Web 서비스의 모든 조작에 적용되는 헤더를 추가합니다.
WebService
 InheritedaddSimpleHeader (qnameLocal:String , qnameNamespace:String , headerName:String , headerValue:String ):void
이 WebService 의 모든 조작에 적용되는 헤더를 추가합니다.
WebService
 InheritedcanLoadWSDL ():Boolean
WebService 를 WSDL 를 로드할 수 있는 상태일지 어떨지 (유효한 행선지 또는 wsdl 가 지정되고 있는지 어떤지)를 나타내는 불리언 값을 돌려줍니다.
WebService
 InheritedclearHeaders ():void
모든 조작에 적용되는 헤더를 클리어 합니다.
WebService
 Inheriteddisconnect ():void
서비스의 네트워크 접속을 절단 해, 보류되고 있는 요구의 모든 응답측을 삭제합니다.
AbstractService
 InheritedgetHeader (qname:QName , headerName:String = null):SOAPHeader
QName 의 localName 와 URI 에 근거한 일치가 있었을 경우에, 헤더를 돌려줍니다.
WebService
 InheritedgetOperation (name:String ):AbstractOperation
지정된 이름의 Operation 를 돌려줍니다.
AbstractService
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
  initialized (document:Object , id:String ):void
WebService 가 태그를 사용해 설정되어 있는 경우, MXML 컴파일러에 의해 자동적으로 불려 갑니다.
WebService
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
 InheritedloadWSDL (uri:String = null):void
WebService 에 WSDL 문서를 다운로드하도록(듯이) 지시합니다.
WebService
 Inheritedlogout ():void
유저를 행선지로부터 로그아웃 합니다.
AbstractService
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
 InheritedremoveHeader (qname:QName , headerName:String = null):void
지정된 QName 를 가지는 헤더를 모든 조작으로부터 삭제합니다.
WebService
 InheritedsetCredentials (username:String , password:String ):void
서비스가 액세스 하는 행선지의 증명서를 설정합니다.
AbstractService
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
 InheritedsetRemoteCredentials (remoteUsername:String , remotePassword:String ):void
유저가 WebService 에 액세스 할 경우에, 유저를 인증하기 위한 유저명과 패스워드입니다.
WebService
 InheritedtoString ():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
 Inheritedload LoadEvent.LOAD 는, WSDL 문서가 정상적으로 로드 되면 dispatch됩니다. WebService
 Inheritedresult result 이벤트는, 서비스 호출로부터 제어가 정상적으로 되돌려졌을 경우에 dispatch됩니다. 조작 자체는, 이 이벤트를 처리하지 않습니다. AbstractService
Public 정수
 정수정의
 InheritedDEFAULT_DESTINATION_HTTP : String = "DefaultHTTP"
[static]
WebService
 InheritedDEFAULT_DESTINATION_HTTPS : String = "DefaultHTTPS"
[static]
WebService
property의 상세
concurrencyproperty
public var concurrency:String

동일 서비스에 대한 복수의 호출의 처리 방법을 나타내는 값입니다. 디폴트치는 multiple 입니다. 사용할 수 있는 값은 다음과 같습니다.

serviceNameproperty 
serviceName:String   [read-write]Implements
    public function get serviceName():String
    public function set serviceName(value:String ):void
showBusyCursorproperty 
showBusyCursor:Boolean   [read-write]

true 의 경우, 서비스의 실행중에 Busy 커서가 표시됩니다. 디폴트치는 false 입니다.

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

새로운 WebService 컴퍼넌트를 작성합니다.

Parameters
destination:String (default = null) — WebService 의 행선지. services-config.xml 파일내의 행선지명으로 일치할 필요가 있습니다.
Methods의 상세
initialized()Methods
public function initialized(document:Object , id:String ):void

WebService 가 태그를 사용해 설정되어 있는 경우, MXML 컴파일러에 의해 자동적으로 불려 갑니다. ActionScript 에 의해 WebService 를 작성하는 경우, 이 Methods는 모든 Parameters를 검증할 때에 도움이 되기 (위해)때문에, 이 Methods를 호출하는 것을 추천합니다.

Parameters
document:Object — 이 WebService 가 존재하는 MXML 문서입니다.
 
id:String — 문서 내부에서의 이 WebService 의 ID 입니다.
Examples
WebServiceExample
<? xml version="1.0"? >
<! -- Simple example to demonstrate the WebService tag.  -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<! --  Make sure the Flex Data Services proxy-config.xml file contains the following definition: 

    <destination id="DefaultHTTP">
        <properties>
            <dynamic-url>http://ws.invesbot.com/*</dynamic-url>
        </properties>
    </destination>
-->

    <mx:Script>
        <! [CDATA[
            import mx.controls.Alert;        
        ]]>    
    </mx:Script>

    <mx:WebService id="WS" wsdl="http://ws.invesbot.com/stockquotes.asmx? WSDL"
        useProxy="true"
        fault="Alert.show(event.fault.faultstring), 'Error'">

        <mx:operation name="GetQuote" resultFormat="object">
            <mx:request>
                <symbol>{stockSymbol.text}</symbol>
            </mx:request>
        </mx:operation>
    </mx:WebService>

    <mx:Panel title="WebService Example" height="75%" width="75%" 
        paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">

        <mx:Label width="100%"  color="blue"
            text="Enter a stock symbol to obtain a quote. "/>

        <mx:TextInput id="stockSymbol" text="ADBE"/>
        <mx:Button label="Get Quote" click="WS.GetQuote.send()"/>

        <mx:Text htmlText="Company: {WS.GetQuote.lastResult.GetQuoteResult.StockQuote.Company}"/>
        <mx:Text htmlText="Current price: ${WS.GetQuote.lastResult.GetQuoteResult.StockQuote.Price}"/>

    </mx:Panel>    
</mx:Application>






 

코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/rpc/soap/mxml/WebService.html