Link to home
Start Free TrialLog in
Avatar of Brian Withun
Brian WithunFlag for United States of America

asked on

Axis2 - how to supply my own namespace prefixes?

I am using wsdl2java.exe to generate server code from a given WSDL.

The server code generated includes generic namespace prefixes like "ns1:", "ns2:", "ns3:".

I would like to instead specify custom prefixes for these, such as "abcglobal:", "abcmfg:", "abc:"

Is there a way to configure wsdl2java to do this?

I have read about the "-ns2p" option, and the "-em" option, but they don't seem to help.


Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

wsdl2java.sh or wsdl2java.bat - Generates java code according to a given WSDL file to handle Web service invocation.
       These scripts can be found under the bin directory of the Axis2 distribution

check more info here

http://axis.apache.org/axis2/java/core/docs/reference.html

ASKER CERTIFIED SOLUTION
Avatar of Brian Withun
Brian Withun
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
gd work .... :) i too learn something thanks....
Avatar of Brian Withun

ASKER

My own answer was either completely correct, or sufficiently correct.