Why would same SOAP request work in one Flex project and not another?
This is a pretty odd situation I have here. I have used a piece of code to interact with a backend SOAP service for several months - it works fine. I tried it out in a different project (first as an swc library and then just by cutting and pasting) and it just doesnt work.

If I try the exact same code in the original flex project, connecting to the same backend service, everything works fine. In the new project, I can call operations that take simple document-literal wrappers as params (they have no real parameters) - but if the operation has a complex parameter inside the document literal wrapper - fail on this new project. Here is a sample that would fail:

    var service:WebService = new WebService();
    service.wsdl = wsdlURL;
    var operation:AbstractOperation = service.getOperation( "addNewUser" );

    var param:XML = <AddNewUserRequest/>
    param.setNamespace( myNameSpace );
    
    param.user.username( username );
    param.user.email( email );
 
    operation.send( param );

And here is a sample that would work in the new project:

    var service:WebService = new WebService();
    service.wsdl = wsdlURL;
    var operation:AbstractOperation = service.getOperation( "getUsers" );

    var param:XML = <GetUsersRequest/>
    param.setNamespace( myNameSpace );
    
    operation.send( param );

Here are some things that I have done to try an track this one down:

-Examined the posts in firebug from both projects and can not see a difference (meaning that the code appears to generate the exact same SOAP request in both projects (as one expects)
-I have verified that the requests should work using SOAPui to directly query the web service

The back end service is an Apache CXF webservice and here is a sample of the error it generates:

> org.apache.cxf.interceptor.Fault: Found element {http://www.w3.org/2001/XMLSchema}user but could not find matching RPC/Literal part

Everything I know leads me to believe that user should be in the http://www.w3.org/2001/XMLSchema namespace - and honestly - I believe the key here is that the code works in one project but not in the other. Could it be an XML setting? One of the static ones like ignoreWhitespace? I have played with changing those around - with no luck.

Any ideas at all? This is driving me crazy!!!
Why would same SOAP request work in one Flex project and not another?
===

This is a pretty odd situation I have here. I have used a piece of code to interact with a backend SOAP service for several months - it works fine. I tried it out in a different project (first as an swc library and then just by cutting and pasting) and it just doesnt work.

If I try the exact same code in the original flex project, connecting to the same backend service, everything works fine. In the new project, I can call operations that take simple document-literal wrappers as params (they have no real parameters) - but if the operation has a complex parameter inside the document literal wrapper - fail on this new project. Here is a sample that would fail:

    var service:WebService = new WebService();
    service.wsdl = wsdlURL;
    var operation:AbstractOperation = service.getOperation( "addNewUser" );

    var param:XML = <AddNewUserRequest/>
    param.setNamespace( myNameSpace );
    
    param.user.username( username );
    param.user.email( email );
 
    operation.send( param );

And here is a sample that would work in the new project:

    var service:WebService = new WebService();
    service.wsdl = wsdlURL;
    var operation:AbstractOperation = service.getOperation( "getUsers" );

    var param:XML = <GetUsersRequest/>
    param.setNamespace( myNameSpace );
    
    operation.send( param );

Here are some things that I have done to try an track this one down:

-Examined the posts in firebug from both projects and can not see a difference (meaning that the code appears to generate the exact same SOAP request in both projects (as one expects)
-I have verified that the requests should work using SOAPui to directly query the web service

The back end service is an Apache CXF webservice and here is a sample of the error it generates:

> org.apache.cxf.interceptor.Fault: Found element {http://www.w3.org/2001/XMLSchema}user but could not find matching RPC/Literal part

Everything I know leads me to believe that user should be in the http://www.w3.org/2001/XMLSchema namespace - and honestly - I believe the key here is that the code works in one project but not in the other. Could it be an XML setting? One of the static ones like ignoreWhitespace? I have played with changing those around - with no luck.

Any ideas at all? This is driving me crazy!!!