function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CamaleonCamaleon 

WSDL extension apex class.

Hi team,

I have a problem with wsdl generate in salesforce class, the complextype has a extension and in my class generate i do not have this "conversation", how can i do this in wsdl class in apex?

structure wsdl:
 
<s:complexType name="PairOfProdutosKeyListaProdutos">
<s:complexContent>
<s:extension base="s0:ListaProdutos"> -- here my problem
<s:attribute name="ProdutosKey" type="s:string" use="required"/>
</s:extension>
</s:complexContent>
</s:complexType>
<s:complexType name="ListaProdutos">
<s:sequence>
<s:element minOccurs="0" name="CodigoProduto" type="s:long"/>
<s:element minOccurs="0" name="NomeProduto" type="s:string"/>
<s:element minOccurs="0" name="Prazo" type="s:long"/>
<s:element minOccurs="0" name="Embalagem" type="s:string"/>
<s:element minOccurs="0" name="PrecoEntrega" type="s:decimal"/>
<s:element minOccurs="0" name="PrecoRetira" type="s:decimal"/>
</s:sequence>
</s:complexType>

 
Best Answer chosen by Camaleon
Alain CabonAlain Cabon
Hi,

suresh_india found a workaround.

wsdl2apex generated two different classes: try to mix them

https://developer.salesforce.com/forums/?id=906F000000091SrIAI

Does this workaround still work?

Best regards
Alain