Can someone explain whats the meaning 1, 1 in the following type info? and also false meaning not required type?

private String[] type_x_type_info = new String[]{'type','urn:sobject.partner.soap.sforce.com','string','1','1','false'};



You can find these details in the source code of Wsdl2Apex. In particular, you want to look of references to TYPE_INFO_PREFIX.

Generally it will be:

  • XML Element Name
  • Namespace for base type
  • XML Type
  • minOccurs
  • maxOccurs
  • isNillable

Have a look at What are the parameters for the Salesforce WebServiceCallout.invoke method?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.