You need to sign in to do that
Don't have an account?
DaveH
How wsdl2apex handles the <any> element in the XML schema
I am trying to generate a class from a WSDL but the WSDL uses the <any> element. Wsdl2apex doesn't handle these tags and I get a Callout exception when I try to test the service because of it. Are there any known workarounds for this? I put a piece of the WSDL below as an example.
<s:element name="GetInfoByZIPResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetInfoByZIPResult">
<s:complexType mixed="true">
<s:sequence>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
Try replacing any with String ...
I hope this works for you.
I ended up going with a RESTful service instead of SOAP in order to get around this issue. I believe the reason that the WSDL specified an <any/> element is because the resulting class should have had one property with a type Object. I am not sure whether changing that to a String would have worked but I was able to do it another way. Thanks for the reply!