Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 18680 invoked by uid 500); 13 Nov 2001 21:54:31 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 18671 invoked from network); 13 Nov 2001 21:54:30 -0000 Importance: Normal Subject: RE: problem with namespaces To: axis-dev@xml.apache.org X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000 Message-ID: From: "Doug Davis" Date: Tue, 13 Nov 2001 16:54:30 -0500 X-MIMETrack: Serialize by Router on D04NM204/04/M/IBM(Release 5.0.8 |June 18, 2001) at 11/13/2001 04:54:33 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Looks great! thanks -Dug Glen Daniels on 11/13/2001 03:31:22 PM Please respond to axis-dev@xml.apache.org To: "'axis-dev@xml.apache.org'" cc: Subject: RE: problem with namespaces Let me know if the change I just checked in fixes this. > -----Original Message----- > From: Doug Davis [mailto:dug@us.ibm.com] > Sent: Tuesday, November 13, 2001 12:49 PM > To: axis-dev@xml.apache.org > Subject: problem with namespaces > > > Given (a.java): > -------------------------------------------------------------- > import org.apache.axis.client.* ; > import org.apache.axis.message.* ; > import java.net.*; > import java.io.*; > > public class a { > public void run() throws Exception { > FileInputStream in = new FileInputStream("a"); > SOAPBodyElement body = new SOAPBodyElement(in); > in.close(); > > Service service = new Service(); > Call call = (Call) service.createCall(); > call.setTargetEndpointAddress( new > URL("http://localhost:8080/axis") ); > call.invoke( new Object[] { body } ); > } > > static public void main(String[] args) { > try { > (new a()).run(); > } > catch(Exception e ) { > e.printStackTrace(); > } > } > } > -------------------------------------------------------------- > ------------ > where File "a" is: > > xmlns:b="http://www.w3.org/2001/XMLSchema-instance" > b:loc="http://foo.wsdl" a:operationID="1"> > > > --- generates --- > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi > ="http://www.w3.org/2001/XMLSchema-instance"> > > xmlns:a="http://schemas.xmlsoap.org/data/" xmlns:b > ="http://www.w3.org/2001/XMLSchema-instance"> > > > > > > Notice the double "b:" and double "a:" in the body. > Glen - has something changed with namespace recently? > > -Dug >