0 Replies Latest reply on Mar 11, 2014 1:24 AM by 33471

    deleteMObject WSDL has extra parameters

      Hi Developers,

      I am using WSDL given by Marketo to construct the request for all APIs. I came across very strange issue here,

      The issue is Marketo WSDL and Documentation given on developer site doesn't match. Here is example of it.

      According to documentation deleteMobject API accepts only 2 parameters "type" and "id". 
      But if you use WSDL to construct schema, it has more than these two parameters as shown below:

             <xs:complexType name="MObject">
                   <xs:sequence>
                     <xs:element name="type" type="xs:string" minOccurs="1" maxOccurs="1" nillable="false"/>
                     <xs:element name="id" type="xs:int" minOccurs="0" maxOccurs="1" nillable="false"/>
                     <xs:element name="externalKey" type="tns:Attrib" minOccurs="0" maxOccurs="1" nillable="false"/>
                     <xs:element name="createdAt" type="xs:dateTime" minOccurs="0" maxOccurs="1" nillable="false"/>
                     <xs:element name="updatedAt" type="xs:dateTime" minOccurs="0" maxOccurs="1" nillable="false"/>
                     <xs:element name="attribList" type="tns:ArrayOfAttrib" minOccurs="0" maxOccurs="1" nillable="false"/>
                     <xs:element name="typeAttribList" type="tns:ArrayOfTypeAttrib" minOccurs="0" maxOccurs="1" nillable="false"/>
                     <xs:element name="associationList" type="tns:ArrayOfMObjAssociation" minOccurs="0" maxOccurs="1" nillable="false"/>
                   </xs:sequence>
           </xs:complexType>

           Lot of extra parameter like "externamKey", "createdAt", "attribList", these parameters are not used in deleteMobject API.

           Is this issue with Marketo documentation and WSDL mismatch? or it is designed that way?

           I also have one concern regarding WSDL, as per my understanding it provides contract for SOAP request and response. If Marketo documentation and WSDL has this mismatch then is using WSDL for generating request makes sense? Can you suggest alternative ways for generating request?