Pascal, how did you add this header element? You might want to try
SOAPEnvelope.addHeader( new SOAPHeaderElement( String namespace, String prefix ) ) If this proposal works, please send a kind response. Matthias Wimmer > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 03, 2002 8:23 AM > To: [EMAIL PROTECTED] > Subject: [Namespace] : personnalize namespace prefix > > > > > Hi, > I want to develop my own SOAP Header and I want specify a > namespace prefix > (wsse) for my different nodes. But Axis change this namespace > prefix by "ns1". > > What is the solution ? > > I have for my message SOAP : > > <?xml version="1.0" encoding="UTF-8"?> > <SOAP-ENV:Envelope > 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"> > <SOAP-ENV:Header><ns1:Security > xmlns:ns1="http://schemas.xmlsoap.org/ws/2002/04/secext"><ns1: > UsernameToken><ns1:Username>precchia</ns1:Username><ns1:Passwo > rd>password</ns1:Password></ns1:UsernameToken></ns1:Security> > > </SOAP-ENV:Header> > <SOAP-ENV:Body> > <getPerson > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > But I want (and I develop this XML Document) : > > <?xml version="1.0" encoding="UTF-8"?> > <SOAP-ENV:Envelope > 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"> > <SOAP-ENV:Header><wsse:Security > xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"><wss > e:UsernameToken><wsse:Username>precchia</wsse:Username><wsse:P > assword>password</wsse:Password></wsse:UsernameToken></wsse:Security> > > </SOAP-ENV:Header> > <SOAP-ENV:Body> > <getPerson > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > Thanks. > > > > ______________________________________________________________________ > > > Devoteam Siticom Strategic Partner of the French Challenger > in the 2003 > America's Cup > > ABOUT THE DEVOTEAM GROUP > Devoteam is a leading European Consulting Group in networks > and e-business > infrastructures. > We help our clients build corporate results from innovative > information > technology solutions. > In 2001, pro forma revenues (including Siticom Group) > amounted to EUR 142 MM. > The new group has 1,800 employees in eight European countries > (France, Belgium, > Denmark, Netherlands, UK, Spain, Austria). > Devoteam has been listed on the Nouveau Marché of Euronext > Paris since October > 1999 (Euroclear 7379) and joined the NextEconomy segment of Euronext. > >