Normally, you would register the appropriate DeserializerFactory using the
<typeMapping> element in your WSDD.  Since you're using JWS that is not an
option (someone correct me if I'm wrong here).

I suspect deserialization is failing because Membership is not a valid
JavaBean.  If Membership is under your control, you could try converting it
to a JavaBean:

package com.rossgroupinc.memberz.webservice;

import com.rossgroupinc.errorhandling.*;
import java.io.Serializable;
import java.util.Calendar;

public class Membership implements Serializable {
     // keep fields public for backwards compatibility
     public String MembershipID;
     public int MembershipKey;
     public Calendar ExpirtionDate;
     public String BillingCategoryCode;

     public Membership() {
     }

     public String getMembershipID() {
          return MembershipID;
     }

     public void setMembershipID(String id) {
          this.MembershipID = id;
     }

     public int getMembershipKey() {
          return MembershipKey;
     }

     public void setMembershipKey(String key) {
          this.MembershipKey = key;
     }

     public Calendar getExpirationDate() {
          return ExpirationDate;
     }

     public void setExpirationDate(Calendar date) {
          this.ExpirationDate = date;
     }

     public String getBillingCategoryCode() {
          return BillingCategoryCode;
     }

     public void setBillingCategoryCode(String code) {
          this.BillingCategoryCode = code;
     }
}

If it is not, you will need to deploy your web service(s) using WSDD and
setup your serialization/deserialization processes using the <typeMapping>
element.  If you need to go that route, check the archives for recent
message traffic on custom serialization/deserialization.


HTH,
Ian





                                                                                       
                                      
                    "Mike Samaras"                                                     
                                      
                    <[EMAIL PROTECTED]       To:     <[EMAIL PROTECTED]>               
                          
                    upinc.com>                     cc:                                 
                                      
                                                   Subject:     Cannot Deserialize 
object.                                   
                    01/27/2004 04:21 PM                                                
                                      
                    Please respond to                                                  
                                      
                    axis-user                                                          
                                      
                                                                                       
                                      
                                                                                       
                                      




I'v been stuck on a simple problem for a long time here.  I need some help
please.  The documentation isn't very solid


On what to do in this situation, and the search previous bug list is
throwing errors on the website.





My Error:  Cannot find deserializer for object Membership





What is the easiest way of getting rid of this error?





My Jws


import com.rossgroupinc.memberz.webservice.*;





public class MemberzPlusService {





            public boolean UpdateMembershipDemographics(Membership
membershipinjava){


                        boolean success = false;


                        if (membershipinjava.ClubCode.equals("007"))
success = true;


                        return success;


            }


}








My Membership Class


package com.rossgroupinc.memberz.webservice;


import com.rossgroupinc.errorhandling.*;





public class Membership implements java.io.Serializable {


                        public String MembershipID;


                        public int MembershipKey;


                        public java.util.Calendar ExpirationDate;


                        public String BillingCategoryCode;


}









This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.

Reply via email to