You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Isuru Eranga Suriarachchi (JIRA)" <ji...@apache.org> on 2010/09/20 11:51:33 UTC

[jira] Resolved: (AXIS2-4475) java2wsdl -tp option does not work!

     [ https://issues.apache.org/jira/browse/AXIS2-4475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Isuru Eranga Suriarachchi resolved AXIS2-4475.
----------------------------------------------

    Resolution: Fixed

> java2wsdl -tp option does not work!
> -----------------------------------
>
>                 Key: AXIS2-4475
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4475
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>         Environment: Using AXIS2_HOME:   C:\Tools\axis2-1.5
> Using JAVA_HOME:    C:\Tools\Java\jdk1.5.0_19
>            Reporter: Andrew Qu
>            Assignee: Isuru Eranga Suriarachchi
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> Use tn and tp options to set special targetnamespace and targetnamespaceprefix. tn option works but tp option does not. The targetnamespaceprefix is still "axis2".
> The targetnamespaceprefix is stored at variable targetNamespacePrefix of object axisService, but generateOM method of class AxisService2WSDL11 want to check variable namespaceMap of of object axisService.
> Java2WSDLBuilder.generateWSDL() 
>   axisService.setTargetNamespacePrefix(getTargetNamespacePrefix());
> AxisService2WSDL11.generateOM()
>   Map namespaceMap = axisService.getNamespaceMap();
>   if (namespaceMap == null)
>   	namespaceMap = new HashMap();
>   
>   String prefix = WSDLSerializationUtil.getPrefix(axisService.getTargetNamespace(),
>                                                   namespaceMap);
>   if (prefix == null || "".equals(prefix)) {
>   	prefix = DEFAULT_TARGET_NAMESPACE_PREFIX;
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org