Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 12620 invoked from network); 5 Nov 2004 14:33:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Nov 2004 14:33:43 -0000 Received: (qmail 5918 invoked by uid 500); 5 Nov 2004 14:33:38 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 5839 invoked by uid 500); 5 Nov 2004 14:33:38 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 5819 invoked by uid 99); 5 Nov 2004 14:33:37 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 05 Nov 2004 06:33:36 -0800 Received: (qmail 19551 invoked from network); 5 Nov 2004 14:33:34 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 5 Nov 2004 14:33:34 -0000 Message-ID: <298470213.1099665214950.JavaMail.apache@nagoya> Date: Fri, 5 Nov 2004 06:33:34 -0800 (PST) From: "Michael Woinoski (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters In-Reply-To: <685889773.1099609714302.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://nagoya.apache.org/jira/browse/AXIS-1646?page=comments#action_55097 ] Michael Woinoski commented on AXIS-1646: ---------------------------------------- Sorry for the duplicate. > "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters > ---------------------------------------------------------------------------------- > > Key: AXIS-1646 > URL: http://nagoya.apache.org/jira/browse/AXIS-1646 > Project: Axis > Type: Bug > Components: WSDL processing > Versions: 1.2RC1 > Environment: Win2K Pro > Reporter: Michael Woinoski > > For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method: > public byte[] updatePdf(byte[] pdfDoc, String newValues) > > the generated schema contains the following definition: > > > > > > > > Stubs generated with WSDL2Java create the following SOAP message: > 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"> > > > 111 > 114 > 105 > 103 > 105 > 110 > 97 > 108 > 32 > 115 > 116 > 114 > 105 > 110 > 103 > update values > > > The pdfDoc element should be defined as: > > > Running Java2WSDL with --style="document" produces the correct output. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira