[ http://issues.apache.org/jira/browse/AXIS2-1411?page=all ]
Venkatakrishnan updated AXIS2-1411:
-----------------------------------
Attachment: Axis2-java2wsdl-Oct-24.diff
axis2-java2wsdl-test.jar
Hi,
I have attached a patch for this and here's what I have done: -
- Have copied over the Mapper, MappingSet and NamespaceMapping classes to Axis2
and have changed their implementations a bit
- The significant part here is how the package to namespace mapping is input.
I have provided three options of doing this in the NamespaceMapping class...
i) providing an xml file (java.io.File) or
ii) providing an xml input stream assuming there is a larger config file within
which the mapping information is a fragment or
iii) providing an xml stream reader instance - again if this mapping info is a
fragment in a larger xml config file, and an xml stream reader is already
reading up this config file.
In the NamespaceMapping class you will find string constants PKG2NS_MAPPINGS
and MAPPING defining the tag names for the mapping info. We can change these
strings to whatever we want - right now what you find there is only a place
holder.
Finally there is a zip of test code that I have used to test this stuff out.
Please try running that to get a better feel of these changes.
Right now let's keep the Java2WSDLCodegenEngine in the Java2WSDLTask and will
probably change this to Java2WSDLBuilder in the next iteration - just avoiding
too many changes in one shot.
Please let me know if there is something that need to change in this.
Thanks
- Venkat
> Java2WSDL Task - missing options available in command line
> ----------------------------------------------------------
>
> Key: AXIS2-1411
> URL: http://issues.apache.org/jira/browse/AXIS2-1411
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Tools
> Reporter: Davanum Srinivas
> Attachments: Axis2-java2wsdl-Oct-24.diff, axis2-java2wsdl-test.jar
>
>
> The Following options in the command line are not available in the
> Java2WSDLTask
> -st <binding style> : style for the WSDL
> -u <binding use> : use for the WSDL
> -l <soap address> : address of the port for the WSDL
> -nsg <generator class name> : fully qualified name of the class that
> implements NamespaceGenerator
> -p2n [<java package>,<namespace] [<java package>,<namespace]... : java
> package to namespace mapping for argument and return types... to
> assign all types to a single namespace : -p2n [all , <namespace>] ...
> -efd <qualified/unqualified> : Setting for elementFormDefault (defaults to
> qualified)
> -afd <qualified/unqualified> : Setting for attributeFormDefault (defaults to
> qualified)
> -xc <extra class> : Extra class for which schematype must be generated.
> Use as : -xc class1 -xc class2 ...
> Also, Please use code from Axis 1.X for the mapping part
> (NamespaceMapping.java/MappingSet.java/Mapper.java)
> http://svn.apache.org/viewvc/webservices/axis/trunk/java/tools/org/apache/axis/tools/ant/wsdl/
> So that the users can specify the mapping like this
> <mapping namespace="http://xml.apache.org/xml-soap"
> package="javax.activation"></mapping>
> thanks,
> dims
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]