Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 83557 invoked from network); 11 Nov 2004 19:53:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Nov 2004 19:53:32 -0000 Received: (qmail 70261 invoked by uid 500); 11 Nov 2004 19:53:26 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 70220 invoked by uid 500); 11 Nov 2004 19:53:26 -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 70211 invoked by uid 99); 11 Nov 2004 19:53:26 -0000 Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 11 Nov 2004 11:53:25 -0800 Received: (qmail 21953 invoked from network); 11 Nov 2004 19:53:24 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 11 Nov 2004 19:53:24 -0000 Message-ID: <361856175.1100202804452.JavaMail.apache@nagoya> Date: Thu, 11 Nov 2004 11:53:24 -0800 (PST) From: "Michael Woinoski (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (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=history ] Michael Woinoski updated AXIS-1646: ----------------------------------- Attachment: AxisBug1646.zip The attached zip file has a service that demonstrates the bug and a sample client. The client write the message to tcpmon at port 7777. Run "ant build run" to deploy on localhost:8080 and run the client. > "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 > Attachments: AxisBug1646.zip > > 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