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
vfDeveloper.ax341vfDeveloper.ax341 

enums from .net Generated by wsdl2apex

I use couple of enums in my .net web service
For example
    public enum ResponseCode {
        Success,
        Fail,
        ServerError,
        AuthenticationFail
    }

When i import my wsdl, apex code creates  empty class
public class ResponseCode {
}


instead of enumeration. However when i create web reference in other .net project (to test web service calls) everything works just fine.

How can i solve this? Or may there is some workaround for enums?

Thanks


cheenathcheenath
In summer 08, simple types extension (enumeration) get mapped to xsd:string.
wsdl2apex will not generate the empty apex class. So if your instance is updated
to summer 08, please regenerate the stub.

HTHs,