cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan Min Sheng (JIRA)" <>
Subject [jira] [Created] (CXF-4869) CXF will throw exception if impl clall and interface targetNameSpace is different
Date Mon, 04 Mar 2013 05:25:14 GMT
Yan Min Sheng created CXF-4869:

             Summary: CXF will throw exception if impl clall and interface targetNameSpace
is different
                 Key: CXF-4869
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.6.2
            Reporter: Yan Min Sheng
package annotations.webservice_g2.interfaces.server;
import javax.jws.*;
//@WebResult needed due to beta limitation, may go away later.            
public interface SimonTestOne {
	public String bareIfMethod(String s);

package annotations.webservice_g2.interfaces.server;
import javax.jws.*;
// note that the implements statement is missing, indeed it's not required. 		
public class SimonTestOneImpl {

	// implemented from interface
	public String bareIfMethod(String s){return  s;}


Note the taragetNameSpace of WebService annotation is different.
When accessing the interface, CXF will report error at org.apache.cxf.interceptor.DocLiteralInInterceptor
Line 99:
                    if (!msgInfo.getMessageParts().get(0).getConcreteName().equals(startQName))
                        throw new Fault("UNEXPECTED_WRAPPER_ELEMENT", LOG, null, startQName,

It seems taht the concreteName should be the one in SEI, not the one in impl class. I think
it is a defect and I am debugging it. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message