Happy Business Starts Here

Unable to create the Product catalog due to the EffectiveStartDate

Highlighted
Honor Student

Unable to create the Product catalog due to the EffectiveStartDate

I'am using the zuora wsdl 74, After generating the stub (Java) using the wsdl product creation fails. It required a Formatted Date object.

6 REPLIES 6
Highlighted
Zuora Alumni
Zuora Alumni

Re: Unable to create the Product catalog due to the EffectiveStartDate

 

 

Here is the sample code for create production:

 
<ns1:create>
  <ns1:zObjects xsi:type="ns2: Product">
    <ns2:EffectiveEndDate>2014-01-01</ns2:EffectiveEndDate>
    <ns2:EffectiveStartDate>2010-01-01</ns2:EffectiveStartDate>
    <ns2:Name>My API Product</ns2:Name>
  </ns1:zObjects>
</ns1:create>

 

For more details. you can refer the following article: https://knowledgecenter.zuora.com/DC_Developers/SOAP_API/E1_SOAP_API_Object_Reference/Product/Create...

 

If you still have any problem, you can send us SOAP request and response.



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Highlighted
Honor Student

Re: Unable to create the Product catalog due to the EffectiveStartDate

I'm having issues when creating the product using java code ( I have use the wsdl 74). After generating the stub it gives the bellow, It required a Date object as the param and if we add the fomatters to the Date object results will not be a Date. Date object cannot be as the "yyyy-mm-dd" format as for my intial reaserch.

Is there a workaround for this ?

/**
* Auto generated setter method
* @param param EffectiveStartDate
*/
public void setEffectiveStartDate(java.util.Date param){
localEffectiveStartDateTracker = true;
this.localEffectiveStartDate=param;
}

 

Highlighted
Zuora Alumni

Re: Unable to create the Product catalog due to the EffectiveStartDate

If you back off to WSDL version 68, the type generated will be "Calendar" and it will work

Highlighted
Honor Student

Re: Unable to create the Product catalog due to the EffectiveStartDate

yes, this worked in the WSDL older version (68) but is there anyother workaround other than moving to the older version ?

Highlighted
Zuora Alumni

Re: Unable to create the Product catalog due to the EffectiveStartDate

Hi @vinurid,

 

I'm happy to hear that you have version 68 of the WSDL worked for you. In order to help further, can you please explain what feature you require from the newer WSDL that version 68 does not handle? In other words, why can't you use the provided work around?

 

Thanks,


Jeff

Highlighted
Honor Student

Re: Unable to create the Product catalog due to the EffectiveStartDate

Hi Jeff ,

We have moved back to the 68 WSDL.  The reason we want to get this issue fix is in the future if there are any bug fixes or improvements we might not be able to incoperate them.