The messages are semantically equivalent. Is there a specific reason why you need the "ac" prefix rather than the "ns1" prefix?
Axis does not provide a mechanism to specify a custom namespace prefix when generating SOAP messages. If your application requires a custom namespace prefix, then you must use the low-level messaging API and construct your own message using DOM rather than using either SAAJ or JAX-RPC. If this is a big issue for you, then I suggest you file an enhancement request. Also, I strongly recommend that you upgrade to Axis 1.2. Anne On 5/27/05, Sam Amarteifio <[EMAIL PROTECTED]> wrote: > > > > We are in the early stages of building a web services application. In order > for us to test what we have done so far were are sending a test message to > the web services. In building the request message using Axis 1.1, the > namespace prefixes are automatically generated by axis e.g. 'ns1' e.t.c. > What we would like to do is to specify a prefix of our choice e.g. "ac".=20 > =20 Below is a snap shot of how we are building the request message. =20 > > Element reqElement =3D document.createElementNS(Util.targetNS, > > "Quote"); > > reqElement.setPrefix("ac"); > > Element sender =3D document.createElementNS(Util.targetNS, > > "Sender"); > > reqElement.appendChild(sender); > > =20 > > This is the current output of the request message. > > =20 > > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > > <soapenv:Envelope > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > <soapenv:Body> > > <ns1:Quote xmlns:ns1=3D"...."> > > <ns1:Sender> </ns1:Sender> > > </ns1:Quote> > > </soapenv:Body> > > =20 > > =20 > > =20 > > Below is what we expected the request message will look like. =20 <?xml > version=3D"1.0" encoding=3D"UTF-8"?> <soapenv:Envelope > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > <soapenv:Body> > > <ac:Quote xmlns:ac=3D"...."> > > <ac:Sender> </ac:Sender> > > </ac:Quote> > > </soapenv:Body> > > > > > > > > > > > SAM AMARTEIFIO > > [EMAIL PROTECTED] > > +44 (0)20 7780 5955 > > > > ec3 solutions / > 1st floor 9-13 fenchurch buildings > > london ec3m 5hr / > > +44 (0)20 7780 5955 / > > http://www.ec3.com / > > > > > Confidentiality Notice > > This communication is strictly confidential. If you are not the intended > recipient, you must not copy, distribute or take any action in reliance of > it and destroy this email. Please immediately notify the sender or contact > EC3 on telephone +44 (0)845 330 4396 or email '[EMAIL PROTECTED]'. The views > represented in this email are not necessarily those of EC3. > > >