• Pradeep K Veeravalli
  • 0 Points
  • Member since 2014

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2



I need to write an Apex web service that will be invoked from an external system. To test this out, I am trying to call this webservice from another Salesforce instance.


I have a global WebService class named "BillingIntegration". I have generated its WSDL file in xml format using the WSDL link on the class name. Few code lines from the WSDL file are shown below:


<definitions targetNamespace="http://soap.sforce.com/schemas/class/Billing_Integration">
<xsd:schema elementFormDefault="qualified" targetNamespace="http://soap.sforce.com/schemas/class/Billing_Integration">
<xsd:element name="DebuggingInfo">
<xsd:element name="debugLog" type="xsd:string"/>



I have saved the xml code in a text file with .wsdl extension and then followed these steps:

* From Apex Classes, clicked on "Generate WSDL" button

* Selected the saved WSDL file.

* Clicked on "Parse WSDL" button.

Error: Failed to parse wsdl: Parse error: Found invalid XML. only whitespace content allowed before start tag and not { (position: START_DOCUMENT seen {... @1:1)


I cant figure out, how to resolve this error and generate the apex class through WSDL file, Plz help.




how many master detail relationships and lookup relationships can you have on an object.