Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03BAEC1CA for ; Mon, 29 Jul 2013 06:18:27 +0000 (UTC) Received: (qmail 41968 invoked by uid 500); 29 Jul 2013 06:18:23 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 41940 invoked by uid 500); 29 Jul 2013 06:18:23 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 41929 invoked by uid 99); 29 Jul 2013 06:18:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 06:18:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of csumudu@gmail.com designates 209.85.219.49 as permitted sender) Received: from [209.85.219.49] (HELO mail-oa0-f49.google.com) (209.85.219.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 06:18:17 +0000 Received: by mail-oa0-f49.google.com with SMTP id n16so706439oag.8 for ; Sun, 28 Jul 2013 23:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wwNccn+htNGqx/EpK9Cw3VEvBRo9NRdFCReDwGAgLu8=; b=ceQvoatqkj5y7OQTdQvU4E3KvvnnqhzniwfW+YBGKN5h1LT0dmk4JruWK0Y2r7kz4E fjrH/zKpZlyLoXEkS3nS06MOM8KMNyHoVgzyzPno+7WgZDHqleoiRaBZKrW2PZM3TUAH nlnxyn5P3gRgUFe1QB3nWnfk2iYoLjZWJpAaBgjC9kDew6l+vuYUjhpI0Jf7bvo+1lUu eBNBe4uupF9+7XydDd+op2ViaY0MA5Yi963j/kPVv6LXGlPtBRn7Fu27Flcw+ezmKCmz aAZusFezQjL3/4apEcdJiOO8irqN8ZvgoyhhY43GKuVllIHJeqSjlSqS2fyk3FE+Zwdi FbcQ== MIME-Version: 1.0 X-Received: by 10.182.215.133 with SMTP id oi5mr50938921obc.83.1375078676353; Sun, 28 Jul 2013 23:17:56 -0700 (PDT) Received: by 10.76.68.133 with HTTP; Sun, 28 Jul 2013 23:17:56 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Jul 2013 11:47:56 +0530 Message-ID: Subject: Re: persist webservice object From: Sumudu Chinthaka To: users@flex.apache.org Content-Type: multipart/alternative; boundary=001a11c254340ad9b704e2a074b7 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c254340ad9b704e2a074b7 Content-Type: text/plain; charset=ISO-8859-1 thanks manish, i suppose in this way you dont have to load wsdl ? let me try it and update u Best Regards Sumudu On Mon, Jul 29, 2013 at 11:30 AM, Manish Sharma wrote: > Hi Sumudu, > > Below if the wsdl code working perfectly fines for me:- > > Var webService = new WebService(); // webService > Instance. > var oprt:AbstractOperation = new > AbstractOperation(); > oprt = > webService.getOperation(appConfigProxy.getUrl(AppConfigConstant.GETLAYOUT)); > // operation name which you want to execute > oprt.addEventListener(ResultEvent.RESULT, result); > // result handler > oprt.addEventListener(FaultEvent.FAULT, fault); // > fault handler > var instructObj:Object = new Object(); // object > if you want to pass something. > instructObj.ImAppid = appConfigProxy.appID; > instructObj.ImSessid = appConfigProxy.sessID; > oprt.arguments = instructObj; > oprt.send(); // finally send. > > Regards, > Manish Sharma > > -----Original Message----- > From: Sumudu Chinthaka [mailto:csumudu@gmail.com] > Sent: Monday, July 29, 2013 11:22 AM > To: users@flex.apache.org > Subject: persist webservice object > > hi > > im creating a webservice object from action script and when application > starts it calls loadWSDL function to load the webservice wsdl file > > this process takes time and i have manage to minimize it by locally > providing wsdl file as a assets > > what i was thinking is to persist the webservice object once it created > for the first time and then use the persisted copy > > i have tried to use the following code to save the ws object > > use namespace mx_internal; > > registerClassAlias("mx.rpc.soap.WebService",WebService); > var WebService:ws = WebServiceProvider.getWebSeriveInstance(); > pm = new PersistenceManager(); > pm.setProperty('WSDL',ws); > > > > but when im retrieving im not getting it insted it returns the Object > > var persistedWS:WebService = pm.getProperty('WSDL') as WebService; > > is there any way to cast this to webservice or is there any othere way to > cache loadWsdl result in application > > best regards > Sumudu > > > ::DISCLAIMER:: > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. > E-mail transmission is not guaranteed to be secure or error-free as > information could be intercepted, corrupted, > lost, destroyed, arrive late or incomplete, or may contain viruses in > transmission. The e mail and its contents > (with or without referred errors) shall therefore not attach any liability > on the originator or HCL or its affiliates. > Views or opinions, if any, presented in this email are solely those of the > author and may not necessarily reflect the > views or opinions of HCL or its affiliates. Any form of reproduction, > dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior > written consent of authorized representative of > HCL is strictly prohibited. If you have received this email in error > please delete it and notify the sender immediately. > Before opening any email and/or attachments, please check them for viruses > and other defects. > > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > --001a11c254340ad9b704e2a074b7--