cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Soma Natarajan (JIRA)" <>
Subject [jira] Created: (CXF-3267) org.apache.cxf.interceptor.Fault: Unexpected wrapper element
Date Fri, 21 Jan 2011 21:13:43 GMT
org.apache.cxf.interceptor.Fault: Unexpected wrapper element 

                 Key: CXF-3267
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.3.2
         Environment: Flash 4.0 builder, Windows
            Reporter: Soma Natarajan
            Priority: Minor

I created a test web service to try Apache-CXF framework. I found the web service  behaved
differently when it was used from two different clients (.NET and Flash builder).

Here is my service contract.

public interface HelloWorld {
    String sayHi(@WebParam(name="text")String text) throws Exception;

When I call sayHi method from Flash builder, I get the following error.
org.apache.cxf.interceptor.Fault: Unexpected wrapper element {}sayHi found.
  Expected {}sayHi.

However, the same method works fine, if I call from a .NET client. 

Soap envelope sent from Flash builder.

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Body><q0:sayHi><q0:text>This is test</q0:text></q0:sayHi></soapenv:Body></soapenv:Envelope>

The generated SOAP envelope has the namespace as "".  Whereas, I declared
the namespace in the interface definition as "". It looks like the extra "/"
at the end of namespace caused this fault.

I modified the namespace as "" and the change works for both .NET client and
Flash builder. I am not sure whether this a bug or not. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message