• Prashant Inamdar
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi,
I am trying to update zuora subscription from apex code.
I have imported zuora api WSDL and got the classes created.
Getting below error.
System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: invalid type: zObjects faultcode=fns:INVALID_TYPE faultactor=
apiZuoraCom.LoginResult zresult;
            List<apiZuoraCom.SaveResult> RetResult= new List<apiZuoraCom.SaveResult>();
            List<objectApiZuoraCom.zObject> ParaSub= new List<objectApiZuoraCom.zObject>();
            objectApiZuoraCom.zObject zobj= new objectApiZuoraCom.zObject();
            objectApiZuoraCom.subscription zsub= new objectApiZuoraCom.subscription();
            apiZuoraCom.Soap apiZuoraComsoapobj = New apiZuoraCom.Soap();
            apiZuoraComsoapobj.SessionHeader = new apiZuoraCom.SessionHeader_element();
                        
            zobj.id = '2c92c0f856300a60015630f641217d71';
            ParaSub.add(zobj);
            
            zresult = apiZuoraComsoapobj.login('user_name', 'password');
                       
            apiZuoraComsoapobj.SessionHeader.session= zresult.Session; 
            
            System.debug(apiZuoraComsoapobj.SessionHeader.session );

            RetResult = apiZuoraComsoapobj.update_x(ParaSub);