Return to Jive Software

201 Views 2 Replies Last post: Oct 16, 2008 1:24 PM by Karl Cyr RSS
Donald Parker II Novice 27 posts since
May 21, 2008
Currently Being Moderated

Oct 9, 2008 11:46 AM

Consuming Webservices in Flex

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)

Karl Cyr Jive Employee 3,927 posts since
Mar 12, 2008
Currently Being Moderated
Oct 16, 2008 1:24 PM in response to: Donald Parker II
Re: Consuming Webservices in Flex

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

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.