I've tried to get an extremely simple web service to work in
Flex 3 with the AS classes that are generated via the new "Import
Web Service (WSDL)" feature and for the life of me, I can't get it
to work. I've attached both the WSDL and the tiny bit of action
script code that I use to call my web service.
I don't get any errors during the "Import Web Service"
process and nor do I get any errors during the call of my web
service. In fact, I have printlns on the server side and I'm
actually seeing that my web service method is being called. But,
it's not receiving the single argument that I'm trying to pass from
ActionScript and my ActionScript is not receiving the return value
It seems you've hot one of our known issues. From what I see
in the wsdl code pasted above you are using a document-literal
unwrapped. As per bug [
the code generator does not properly determine what type of
doc-literal wsdl you have, and sets the isWrapped and wrappedQName
on a operation's request and response messages incorrectly.
To fix this, simply go into the BaseEchoService.as class and
comment out these two lines:
requestMessage.isWrapped = true;
responseMessage.isWrapped = true;