I am consuming webservices in Flex,
When I call a service that is defined in mxml I am returned all necessary data, but if I call the webservice that is defined via actionscript I am not returned the entire result set. For example the avatar service returns data with out the owner, and when calling UserService I get an error HTTP request error.
I don't know if this is a bug with the Apache Axis converter modified by Adobe or a problem with my code
Here is my ActionScript some code
import com.profile.GetProfile;
import com.profile.GetProfileImage;
import com.profile.GetProfileImageResultEvent;
import com.profile.GetProfileResultEvent;
import com.profile.ProfileService;
import com.user.GetUser;
import com.user.GetUserResultEvent;
import com.user.UserService;
//The following userservice returns a HTTP request error
//Define the service
var userService:UserService = new UserService();
//Add listeners
userService.addgetUserEventListener(resultUser);
userService.addUserServiceFaultEventListener(faultUser);
//set request variables
var userReq:GetUser = new GetUser();
userReq.userID = userid
//send the request
userService.getUser(userReq);
//The following execute and returns the data with problem
//Define the service
var profileService:ProfileService = new ProfileService();
//Add listeners
profileService.addgetProfileImageEventListener(resultProfileImage);
profileService.addgetProfileEventListener(resultProfile);
profileService.addProfileServiceFaultEventListener(faultProfile);
//set request varaible
var profileReq:GetProfile = new GetProfile();
profileReq.userID = userid;
//send the request
profileService.getProfile(profileReq)
//set request varaible
var profileImageReq:GetProfileImage = new GetProfileImage();
profileImageReq.userID = userid;
//send the request
profileService.getProfileImage(profileImageReq)
Here is a snippet from my mxml that works
<mx:WebService id="userService" wsdl="/clearspace/rpc/soap/UserService?wsdl" fault="faultService(event)">
<mx:operation name="getUser" fault="faultOperation(event)" result="resultUserHandler(event)">
<mx:request>
<userID>
{reqID}
</userID>
</mx:request>
</mx:operation>
</mx:WebService>
Hi Donald,
Unfortunately I don't think I can offer much help on this issue, since the ActionScript code lies outside our realm of support here at Jive.
Regards,
Karl
Jive combines the most powerful features of collaboration software, community software,
social networking software & social media monitoring into the leading SBS solution.
© Copyright 2000–2010 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205
Sales: 877-495-3700 | General: 503-295-3700
Privacy Policy | Sitemap | Jobs | Contact Us