[ 
https://issues.apache.org/jira/browse/CXF-3267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp resolved CXF-3267.
------------------------------

       Resolution: Not A Problem
    Fix Version/s: Invalid



This is not a bug in CXF.   It would be a bug in FlashBuilder.    If the 
namespace is set to "http://soma.com";, then that is what should be sent, not 
"http://soma.com/";.   CXF is properly faulting for invalid content.

> org.apache.cxf.interceptor.Fault: Unexpected wrapper element 
> -------------------------------------------------------------
>
>                 Key: CXF-3267
>                 URL: https://issues.apache.org/jira/browse/CXF-3267
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.2
>         Environment: Flash 4.0 builder, Windows
>            Reporter: Soma Natarajan
>            Priority: Minor
>             Fix For: Invalid
>
>
> 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.
> @WebService(targetNamespace="http://soma.com";)
> public interface HelloWorld {
>     @WebResult(name="return")
>     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 
> {http://soma.com/}sayHi found.   Expected {http://soma.com}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:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:q0="http://soma.com/";>
> <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 "http://soma.com/";.  
> Whereas, I declared the namespace in the interface definition as 
> "http://soma.com";. It looks like the extra "/" at the end of namespace caused 
> this fault.
> I modified the namespace as "http://soma.com/"; 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.

Reply via email to