You need to sign in to do that
Don't have an account?

wsdl2apex converter
Hi all-
I'm trying to convert another WSDL and i'm getting the following error. What is the supported type for a byte?
Error: Unsupported schema type: {http://www.w3.org/2001/XMLSchema}byte
Byte is not a supported schema type. Here is the full list.
You could try to manually edit the WDSL to include a supported type - but it really depends on how that changes impacts your web service.
If you ultimately can't use the WSDL2Apex functionality, you could use the HTTP, HTTPRequest, and HTTPResponse classes as an alternative. Those classes are documented here.
Well, a "short" gets converted into an Apex "int". So you can try "int" I guess....
But an "int" isn't necessarily a "byte" so it really depends on how that field is used and its possible values if this is a valid approach.
savvyboarder,
I just went down this journey recently, and yes there are lots of "clean up" items.
I have done a large post on the subject. Please review and comment on as appropriate.
1. WSDL - I would highly suggest using a WSDL/XML tool like Atlova XMLSpy (free trial) to examine the Types that are imported. It will allow you to trim down, and integrate the imported (manually - wish they had a merge - going to post that feature request at Atlova) xsd types, etc. I normally work with Visual Studio or Eclipse and they just couldn't get there. It will show you what is in the namespace and what is imported in the WDSL tab visually by color coding.
a. WSDL Apex Class creation Limitations
-No multipe bindings (which most do 1 and 12)
2. Be prepared to spend some time (read as parse, fix error, rise and repeat) many times
3. Best SF reference I found was Link:
4. In the end, you may find to get it working that the HTTP request and manual soap xml codeup to be the quickest solution to get it running, Twitter and Facebook integrations work this way. It was really faster in the end for me.
5. The post covers both WSDL2APEX and Direct Soap calls via HTTP Request and examples
Best Regards,
Web: http://www.grigsbyconsultingllc.com