Adobe Dreamweaver Forums



Last 10 THreads :         Re: Photoshop CS4 is a disaster (Last Post : Paulo_Skylar@adobeforums.com - Replies : 0 - Views : 1 )           »          Query question/help (Last Post : trojnfn - Replies : 2 - Views : 3 )           »          CS4 Motion Editor issues (Last Post : aaronlyon - Replies : 4 - Views : 9 )           »          Bridge No Longer Rotates Automatically (Last Post : Michael_Palumbo@adobeforums.com - Replies : 1 - Views : 2 )           »          dollarFormat / numberformat problem (Last Post : izdabye - Replies : 0 - Views : 1 )           »          Call out side flex (Last Post : Amy Blankenship - Replies : 15 - Views : 16 )           »          captions for photos (Last Post : dc111652 - Replies : 0 - Views : 1 )           »          Re: CS4 GPU Acceleration and Intel X3100 (Last Post : Paul_B_Brown@adobeforums.com - Replies : 0 - Views : 1 )           »          error 1034 (Last Post : shottogan - Replies : 0 - Views : 1 )           »          Keyboard events don't work in player or projector (Last Post : tunghoy - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:30 AM
okgivemeanickname
 
Posts: n/a
Diggs:
Default Problem about Webservice

Hallo,

I have two problems when i using web service in flex. The Web service is wrote
with Java, and deployed in JBoss, i used Webservice Explorer to test it, no
problem about Web service.

=1=

I used Flex Builder 3 to import the .wsdl, and use generated proxy classes to
access Webservice functions.

When the Java classes are in a same package, no problem. But when they are in
different package, (so they have different namespace in QName, i think), i
cannot read the data from the Object. (the values are always null)

=2=

Another Problem is, when i call call a function, and read the result with
XXX_lastResult. It can not be immediate accessed. So I must make one button to
run the webservice function, and the other button to read the result, and the
user must click them one by one. if i write them in one function (or two
functions but be called together with one click), it not work!

Thank you.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:36 AM
okgivemeanickname
 
Posts: n/a
Diggs:
Default Re: Problem about Webservice

thanks, this is my scripts:

[Bindable]
private var ws:WSInterfaceService = new WSInterfaceService();

...

public function showDocs():void
{
// Webservice function call
ws.getDocs();

//set the result to a dataProvider in runtime, its not work!
but if direct use the bindable link in <mxataGrid>, then no such problem.
//dg.dataProvider = ws.getDocs_lastResult;
}

...

<mxataGrid width="100%" id="dg" dataProvider="{ws.getDocs_lastResult}">
<mx:columns>
<mxataGridColumn dataField="name" headerText="Name"/>
<mxataGridColumn dataField="size" headerText="Size"/>
<mxataGridColumn dataField="changedDate" headerText="Changed
Date"/>
<mxataGridColumn labelFunction="showURL" headerText="URL"/>
</mx:columns>
</mxataGrid>

...

<mx:ControlBar horizontalAlign="center">
<mx:Button label="Get date from server" click="showDocs()"/>

...

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 03:47 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk