Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 66203 invoked from network); 18 Jan 2007 08:22:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2007 08:22:29 -0000 Received: (qmail 32066 invoked by uid 500); 18 Jan 2007 08:22:26 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 32053 invoked by uid 500); 18 Jan 2007 08:22:26 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 32041 invoked by uid 99); 18 Jan 2007 08:22:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 00:22:26 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of m.zdila@episoftware.com designates 217.67.26.150 as permitted sender) Received: from [217.67.26.150] (HELO mail.episoftware.com) (217.67.26.150) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 00:22:17 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.episoftware.com (Postfix) with ESMTP id 6D3322177F0 for ; Thu, 18 Jan 2007 09:21:50 +0100 (CET) Received: from mail.episoftware.com ([127.0.0.1]) by localhost (tequila.episoftware.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24345-01-64 for ; Thu, 18 Jan 2007 09:21:38 +0100 (CET) Received: from [192.168.1.216] (localhost [127.0.0.1]) by mail.episoftware.com (Postfix) with ESMTP id 2EAFE217855 for ; Thu, 18 Jan 2007 09:20:55 +0100 (CET) From: "M.Zdila/EpiSoftware Ltd." To: axis-user@ws.apache.org Subject: Re: SOAP11, SCHEMA_1999 Date: Thu, 18 Jan 2007 09:20:57 +0100 User-Agent: KMail/1.9.5 References: <200701171856.58096.m.zdila@episoftware.com> In-Reply-To: <200701171856.58096.m.zdila@episoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701180920.57329.m.zdila@episoftware.com> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at episoftware.com X-Virus-Checked: Checked by ClamAV on apache.org hi i thought this should be simple to solve for someone working with axis some longer time as i just started using axis this week. anyway i've solved it myself: 1. i needed no GenericHandler overriding (no custom handler) 2. i needed to register the type: QName xmlType = new QName("http://schemas.xmlsoap.org/soap/encoding/", "base64"); mapping.register(byte[].class, new QName("http://schemas.xmlsoap.org/soap/encoding/", "base64"), new Base64SerializerFactory(byte[].class, xmlType), new Base64DeserializerFactory(byte[].class, xmlType)); registry.register("http://schemas.xmlsoap.org/soap/encoding/", mapping); anyway, i think this is a bit weird solution. or? :-) On Wednesday 17 January 2007 18:56, M.Zdila/EpiSoftware Ltd. wrote: > Hello > > I've googled, but found nothing :-( > > I need to communicate with client's web service that supports SOAP 1.1, > schema version 1999. What I need to achieve is to serialize base64 data as > xsi:type="SOAP-ENC:base64" but unfortunately the request still contains > xsi:type="soapenc:base64Binary". > > I am using spring remoting with following handler with no help: > > import javax.xml.namespace.QName; > import javax.xml.rpc.handler.GenericHandler; > import javax.xml.rpc.handler.MessageContext; > > import org.apache.axis.Constants; > import org.apache.axis.schema.SchemaVersion; > > public class MyHandler extends GenericHandler { > > @Override > public QName[] getHeaders() { > return null; > } > > @Override > public boolean handleRequest(MessageContext context) { > ((org.apache.axis.MessageContext) > context).setSchemaVersion(SchemaVersion.SCHEMA_1999); > ((org.apache.axis.MessageContext) > context).setEncodingStyle(Constants.URI_SOAP11_ENC); > return true; > // return super.handleRequest(context); > } > > } > > Thanks in advance! -- Martin Zdila Analyst/Developer EpiSoftware Slovakia Ltd. Letna 27, 043 14 Kosice tel:+421-908-363-848 tel:+421-55-6770-420 mailto:m.zdila@episoftware.com http://www.episoftware.com xmpp:zdila@jabber.sk callto://m.zdila/ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org