Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 788605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:23:36+00:00 2026-05-14T21:23:36+00:00

This is a pretty odd situation I have here. I have used a piece

  • 0

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!!!

UPDATE:

I have narrowed it down to this: the new project creates a header like this:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

and the one that works creates this:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

Why the difference on the exact same version of flex & flex builder? The one that works is obviously correct (xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221;) – the web service is correct to reject a request that puts everything in the request in the xsd namespace.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:23:37+00:00Added an answer on May 14, 2026 at 9:23 pm

    The reason it’s adding xmlns="http://www.w3.org/2001/XMLSchema" to the SOAP Envelope instead of xmlns:xsd="http://www.w3.org/2001/XMLSchema" is because that’s how it’s defined in rpc.xml.SchemaConstants class. At some point in the broken project, you have imported an xsd into the rpc.xml.SchemaManager class that defines xmlns="http://www.w3.org/2001/XMLSchema", which overrides the default definition in SchemaConstants.

    Try checking all of the xsds that you are using and make sure that they don’t contain xmlns="http://www.w3.org/2001/XMLSchema".

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is pretty weird. I have my Profiler open and it obviously shows that
So this seems pretty basic but I can't get it to work. I have
I think this is pretty typical, you have the same website project with an
This pretty much has me defeated. On XP and earlier versions of Windows you
This is pretty simple, I come from a swing/awt background. I'm just wondering what
This is pretty trivial, but I noticed on SO that instead of an offset
I thought this was pretty straight forward but I don't get the same results
I'm having some weird issues with Xcode, and this is pretty much impossible to
This is a pretty-much theoretical question, but.. How much of an operating system could
This is a pretty straight forward attempt. I haven't been using python for too

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.