Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B96691D7 for ; Mon, 2 Apr 2012 06:05:11 +0000 (UTC) Received: (qmail 2553 invoked by uid 500); 2 Apr 2012 06:05:10 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 2455 invoked by uid 500); 2 Apr 2012 06:05:08 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 2419 invoked by uid 99); 2 Apr 2012 06:05:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 06:05:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 06:05:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DAF9F353F10 for ; Mon, 2 Apr 2012 06:04:40 +0000 (UTC) Date: Mon, 2 Apr 2012 06:04:40 +0000 (UTC) From: "Petr Udalau (Commented) (JIRA)" To: issues@cxf.apache.org Message-ID: <1699536559.4497.1333346680974.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CXF-1772) Generated WSDL has a char MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243989#comment-13243989 ] Petr Udalau commented on CXF-1772: ---------------------------------- There is one problem with char type in wsdl. org.apache.cxf.aegis.type.basic.CharacterAsStringType has wrong QName("http://cxf.apache.org/aegisTypes", "char"). When we try to add wsdl with "char" type in SoapUI for example we will get the message that type "char@http://cxf.apache.org/aegisTypes" is undefined in wsdl. As the characters mapped to integer types there should be CHARACTER_AS_STRING_TYPE_QNAME = XMLSchemaQNames.XSD_INT; instead of CHARACTER_AS_STRING_TYPE_QNAME = new QName("http://cxf.apache.org/aegisTypes", "char"). Am I right? > Generated WSDL has a char > ------------------------- > > Key: CXF-1772 > URL: https://issues.apache.org/jira/browse/CXF-1772 > Project: CXF > Issue Type: Bug > Components: Aegis Databinding > Affects Versions: 2.1.1 > Reporter: Nathan Deckard > Assignee: Benson Margulies > Fix For: 2.2 > > > My .aegis.xml mappings are not overriding a char that is showing up in the generated WSDL. The char is causing SOAPUI to error out because char does not exist in the http://schemas.xmlsoap.org/soap/encoding/ schema. > NathansCharImpl.aegis.xml: > > > xmlns:aegis="http://cwiki.apache.org/CXF20DOC/aegis-databinding.data/aegis" > schemaLocation="http://cwiki.apache.org/CXF20DOC/aegis-databinding.data/aegis.xsd"> > > > componentType="org.apache.cxf.aegis.type.basic.CharacterType" > typeName="xsd:string"/> > > > > > > > @WebService > @Features(features = "org.apache.cxf.feature.LoggingFeature") > public interface NathansCharacter { > public abstract Character getMyCharacter(); > public abstract void setMyCharacter(Character myCharacter); > } > @WebService (endpointInterface = "com.clearingcorp.riskmanagement.ws.NathansCharacter") > @Features(features = "org.apache.cxf.feature.LoggingFeature") > public class NathansCharacterImpl implements NathansCharacter { > private Character myCharacter; > > public Character getMyCharacter() { > return myCharacter; > } > > public void setMyCharacter(Character myCharacter) { > this.myCharacter = myCharacter; > } > } > > > > > implementorClass="com.clearingcorp.riskmanagement.ws.NathansCharacterImpl" > implementor="#nathansCharacterServiceImpl" > address="/myCharacterService"> > > > > > > > class="org.apache.cxf.aegis.databinding.AegisDatabinding" > scope="prototype"/> > class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean" > scope="prototype"> > > > > > > > > > > > > The error from SOAPUI: > Fri Aug 29 14:55:49 CDT 2008:ERROR:org.apache.xmlbeans.XmlException: http://localhost:7003/riskmanagement-wsserver/myCharacterService?wsdl:0: error: src-resolve: type 'char@http://schemas.xmlsoap.org/soap/encoding/' not found. > org.apache.xmlbeans.XmlException: http://localhost:7003/riskmanagement-wsserver/myCharacterService?wsdl:0: error: src-resolve: type 'char@http://schemas.xmlsoap.org/soap/encoding/' not found. > at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667) > at org.apache.xmlbeans.XmlBeans.compileXsd(XmlBeans.java:553) > at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.buildSchemaTypes(SchemaUtils.java:266) > at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.loadSchemaTypes(SchemaUtils.java:179) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinitions(WsdlContext.java:264) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.access$500(WsdlContext.java:53) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:218) > at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45) > at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111) > at java.lang.Thread.run(Unknown Source) > Fri Aug 29 14:55:49 CDT 2008:ERROR:com.eviware.soapui.impl.wsdl.support.xsd.SchemaException > com.eviware.soapui.impl.wsdl.support.xsd.SchemaException > at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.buildSchemaTypes(SchemaUtils.java:273) > at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.loadSchemaTypes(SchemaUtils.java:179) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinitions(WsdlContext.java:264) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.access$500(WsdlContext.java:53) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:218) > at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45) > at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111) > at java.lang.Thread.run(Unknown Source) > Fri Aug 29 14:55:49 CDT 2008:ERROR:com.eviware.soapui.impl.wsdl.support.xsd.SchemaException: Error loading schema types > com.eviware.soapui.impl.wsdl.support.xsd.SchemaException: Error loading schema types > at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.loadSchemaTypes(SchemaUtils.java:184) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinitions(WsdlContext.java:264) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.access$500(WsdlContext.java:53) > at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:218) > at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45) > at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111) > at java.lang.Thread.run(Unknown Source) > Caused by: com.eviware.soapui.impl.wsdl.support.xsd.SchemaException > at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.buildSchemaTypes(SchemaUtils.java:273) > at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.loadSchemaTypes(SchemaUtils.java:179) > ... 6 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira