| Package | mx.rpc.soap.mxml |
| Class | public dynamic class WebService |
| Inheritance | WebService WebService AbstractService Proxy Object |
| Implements | IMXMLObject , IMXMLSupport |
MXML 문장구조법의 비표시
<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에 변환됩니다.
See also
| property | 정의 | ||
|---|---|---|---|
![]() | channelSet : ChannelSet
서비스가 사용하는 ChannelSet 에의 액세스를 제공합니다.
| AbstractService | |
| concurrency : String
동일 서비스에 대한 복수의 호출의 처리 방법을 나타내는 값입니다.
| WebService | ||
![]() | constructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor 함수에의 참조입니다.
| Object | |
![]() | description : String
현재 액티브한 포토에 대응하는 서비스의 설명입니다.
| WebService | |
![]() | destination : String
서비스의 행선지입니다.
| WebService | |
![]() | endpointURI : String
WebService 의 장소입니다.
| WebService | |
![]() | headers : Array
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 | |
| serviceName : String | WebService | ||
showBusyCursor : Boolean
true 의 경우, 서비스의 실행중에 Busy 커서가 표시됩니다. | WebService | ||
![]() | useProxy : Boolean
Flex 의 프록시 서비스를 이용할지 어떨지를 지정합니다.
| WebService | |
![]() | wsdl : String
이 WebService 의 WSDL 문서의 장소입니다.
| WebService | |
| Methods | 정의 | ||
|---|---|---|---|
| WebService (destination: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 | |
| initialized (document:Object , id:String ):void
WebService 가 태그를 사용해 설정되어 있는 경우, MXML 컴파일러에 의해 자동적으로 불려 갑니다.
| WebService | ||
![]() | 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 | |
| concurrency | property |
public var concurrency:String
동일 서비스에 대한 복수의 호출의 처리 방법을 나타내는 값입니다. 디폴트치는 multiple 입니다. 사용할 수 있는 값은 다음과 같습니다.
| serviceName | property |
serviceName:String [read-write]Implements
public function get serviceName():String
public function set serviceName(value:String ):void
| showBusyCursor | property |
showBusyCursor:Boolean [read-write]
true 의 경우, 서비스의 실행중에 Busy 커서가 표시됩니다. 디폴트치는 false 입니다.
public function get showBusyCursor():Boolean
public function set showBusyCursor(value:Boolean ):void
| WebService | () | constructor |
public 함수 WebService(destination:String = null)새로운 WebService 컴퍼넌트를 작성합니다.
Parametersdestination:String (default = null) — WebService 의 행선지. services-config.xml 파일내의 행선지명으로 일치할 필요가 있습니다.
|
| initialized | () | Methods |
public function initialized(document:Object , id:String ):void WebService 가 태그를 사용해 설정되어 있는 경우, MXML 컴파일러에 의해 자동적으로 불려 갑니다. ActionScript 에 의해 WebService 를 작성하는 경우, 이 Methods는 모든 Parameters를 검증할 때에 도움이 되기 (위해)때문에, 이 Methods를 호출하는 것을 추천합니다.
Parametersdocument:Object — 이 WebService 가 존재하는 MXML 문서입니다.
|
|
id:String — 문서 내부에서의 이 WebService 의 ID 입니다.
|
<? 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