Hi again, Another question about namespaces in Axis: can I force Axis to use explicit namespace prefixes instead of default namespaces? What I would like is something like this:
<?xml version="1.0" encoding="UTF-8"?> <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" xmlns:product="http://www.example.com/product"> <soapenv:Body> <product:GetProduct >TEST1234</product:GetProduct> </soapenv:Body> </soapenv:Envelope> instead of: <?xml version="1.0" encoding="UTF-8"?> <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"> <soapenv:Body> <GetProduct xmlns="http://www.example.com/product">TEST1234</GetProduct> </soapenv:Body> </soapenv:Envelope> This last message is what Axis is generating for me now. I would really appreciate it if someone could help me out with this, even just letting me know that this isn't possible would already be helpfull... Many thanks, Jan PS: My old question (see below) is also still open... On 5/25/05, Jan Delannoy <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using an Axis generated stub class to call a web service. The > generated messages use namespace prefixes like ns1, ns2, ns3, etc. > even when it's the same namespace. Can I force Axis to use a > namespace prefix of my choice for a given namespace? I'm using Axis > 1.2 final. > > Many thanks, > Jan >
