+ Start a Discussion
newbie101newbie101 

WSDL parser error. What WSDL standards are supported ?

 

I was trying to consume an apache axis 1.4  WSDL, that interops great with many other toolkits.

 

Now, when I try and import it to generate an Apex class, I get an error :- Failed to parse wsdl: attribute name can not be null at: xxx:xx

 

Instead of posting the WSDL, what I would like to know, is what kinds of WSDL's are supported ?

 

   Eg, are there any standars in the WSDL that I should be looking for ?

          (My knowledge of terms like WS-I etc is limited.)

 

         Are WSDL's that are generated from only certain toolkits /versions supported ? (Eg.Axis 1.x etc)

 

Thanks

 

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

The apex language ref docs details exactly whats supported by WSDL2Apex. In this case you have an rpc/encoded type WSDL/Service, which isn't supported.

All Answers

Manoj.tManoj.t

Sales force supported all WSDL but you have to remove ServiceSaop12  or soap12 element from your WSDL File.I think thacan help you.

newbie101newbie101

Thanks, but I dont seem to have Soap 12 in my wsdl.

 

The line where it seems to complain is in bold in the snippit below. Is it becuase it has issues with complex types,

with arrays ?

 

Thanks

 

 

   <complexType name="ArrayOf_tns1_PType">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:PType[]"/>
     </restriction>
    </complexContent>
   </complexType>

SuperfellSuperfell

The apex language ref docs details exactly whats supported by WSDL2Apex. In this case you have an rpc/encoded type WSDL/Service, which isn't supported.

This was selected as the best answer