| //////////////////////////////////////////////////////////////////////////////// |
| // |
| // Licensed to the Apache Software Foundation (ASF) under one or more |
| // contributor license agreements. See the NOTICE file distributed with |
| // this work for additional information regarding copyright ownership. |
| // The ASF licenses this file to You under the Apache License, Version 2.0 |
| // (the "License"); you may not use this file except in compliance with |
| // the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| // |
| //////////////////////////////////////////////////////////////////////////////// |
| /**
|
| * This is a generated class and is not intended for modification. To customize behavior
|
| * of this service wrapper you may modify the generated sub-class of this class - Ex2_09.as.
|
| */
|
| package services.ex2_09
|
| {
|
| import com.adobe.fiber.core.model_internal;
|
| import com.adobe.fiber.services.wrapper.WebServiceWrapper;
|
| import com.adobe.serializers.utility.TypeUtility;
|
| import mx.collections.ArrayCollection;
|
| import mx.rpc.AbstractOperation;
|
| import mx.rpc.AsyncToken;
|
| import mx.rpc.soap.mxml.Operation;
|
| import mx.rpc.soap.mxml.WebService;
|
| import mx.rpc.xml.SchemaTypeRegistry;
|
| import valueObjects.EMPLOYEES;
|
|
|
| [ExcludeClass]
|
| internal class _Super_Ex2_09 extends com.adobe.fiber.services.wrapper.WebServiceWrapper
|
| {
|
|
|
| // Constructor
|
| public function _Super_Ex2_09()
|
| {
|
| // initialize service control
|
| _serviceControl = new mx.rpc.soap.mxml.WebService();
|
| mx.rpc.xml.SchemaTypeRegistry.getInstance().registerCollectionClass(new QName("http://remotedata.f45iaw100", "ArrayOfArrayOf_xsd_anyType"), ArrayCollection);
|
| var operations:Object = new Object();
|
| var operation:mx.rpc.soap.mxml.Operation;
|
|
|
| operation = new mx.rpc.soap.mxml.Operation(null, "getAllEMPLOYEES");
|
| operation.resultType = Object;
|
| operations["getAllEMPLOYEES"] = operation;
|
|
|
| operation = new mx.rpc.soap.mxml.Operation(null, "updateEMPLOYEES");
|
| operations["updateEMPLOYEES"] = operation;
|
|
|
| _serviceControl.operations = operations;
|
| try
|
| {
|
| _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;
|
| }
|
| catch (e: Error)
|
| { /* Flex 3.4 and earlier does not support the convertResultHandler functionality. */ }
|
|
|
|
|
| preInitializeService();
|
| model_internal::initialize();
|
| }
|
|
|
| //init initialization routine here, child class to override
|
| protected function preInitializeService():void
|
| {
|
|
|
|
|
| _serviceControl.service = "Ex2_09Service";
|
| _serviceControl.port = "ex2_09.cfc";
|
| wsdl = "http://www.adobetes.com/f45iaw100/remoteData/ex2_09.cfc?wsdl";
|
| model_internal::loadWSDLIfNecessary();
|
| }
|
|
|
|
|
| /**
|
| * This method is a generated wrapper used to call the 'getAllEMPLOYEES' operation. It returns an mx.rpc.AsyncToken whose
|
| * result property will be populated with the result of the operation when the server response is received.
|
| * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
|
| * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
|
| *
|
| * @see mx.rpc.AsyncToken
|
| * @see mx.rpc.CallResponder
|
| *
|
| * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
|
| */
|
| public function getAllEMPLOYEES() : mx.rpc.AsyncToken
|
| {
|
| model_internal::loadWSDLIfNecessary();
|
| var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllEMPLOYEES");
|
| var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
|
| return _internal_token;
|
| }
|
|
|
| /**
|
| * This method is a generated wrapper used to call the 'updateEMPLOYEES' operation. It returns an mx.rpc.AsyncToken whose
|
| * result property will be populated with the result of the operation when the server response is received.
|
| * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
|
| * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
|
| *
|
| * @see mx.rpc.AsyncToken
|
| * @see mx.rpc.CallResponder
|
| *
|
| * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
|
| */
|
| public function updateEMPLOYEES(item:valueObjects.EMPLOYEES) : mx.rpc.AsyncToken
|
| {
|
| model_internal::loadWSDLIfNecessary();
|
| var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("updateEMPLOYEES");
|
| var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(item) ;
|
| return _internal_token;
|
| }
|
|
|
| }
|
|
|
| }
|