You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Hegerich, Robert L, JR (Bob)" <he...@alcatel-lucent.com> on 2009/08/28 20:20:19 UTC

[axis2] posisble to set namespace prefixes in wsdl2java?

Is there a way to invoke wsdl2java so that instead of the default namespace prefixes (ns1, ns2, etc.) you can specify the namespace prefix for a namespace? We're replacing a gSOAP server with Apache Axis (2.1.3) and the client insists that the namespace prefixes be kept the same for some unknown reason.

I see the Qname() constructor does allow for prefix selection but nothing in command line seems to invoke it. Perhaps something in -E?

K.R.
	Bob H.=

Re: [axis2] posisble to set namespace prefixes in wsdl2java?

Posted by Charles Koppelman <ch...@gmail.com>.
Odd but understandable request (it's much easier to read a file if the ns's
are human-readable).
If you're using wsdl2java, you probably already have a wsdl, so you can use
that!  You can simply go into your META-INF/services.xml and set
useOriginalwsdl to true (note the odd capitlization).  Make sure that
whatever wsdl you are using for deployment is named the same as the .aar
file (or maybe that should be - make sure your .aar file has the same name
as the wsdl).  Also make sure to put the WSDL and any related XSDs in the
META-INF folder.

Charles Koppelman
DrFirst.com

On Fri, Aug 28, 2009 at 2:20 PM, Hegerich, Robert L, JR (Bob) <
hegerich@alcatel-lucent.com> wrote:

> Is there a way to invoke wsdl2java so that instead of the default namespace
> prefixes (ns1, ns2, etc.) you can specify the namespace prefix for a
> namespace? We're replacing a gSOAP server with Apache Axis (2.1.3) and the
> client insists that the namespace prefixes be kept the same for some unknown
> reason.
>
> I see the Qname() constructor does allow for prefix selection but nothing
> in command line seems to invoke it. Perhaps something in -E?
>
> K.R.
>        Bob H.=