Skip to content

Commit

Permalink
Fix minor issue in WSDL creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cnapagoda committed Jun 29, 2015
1 parent 0719b9e commit d53610f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ private String getWsdlLocation(RequestContext context, Definition wsdlDefinition
if (Utils.getRxtService() != null) {
String pathExpression = Utils.getRxtService().getStoragePath(RegistryConstants.WSDL_MEDIA_TYPE);
pathExpression = CommonUtil.replaceExpressionOfPath(pathExpression, "name", wsdlResourceName);
pathExpression = CommonUtil.getPathFromPathExpression(pathExpression,
context.getResource().getProperties(), null);
String namespace = CommonUtil.derivePathFragmentFromNamespace(
wsdlDefinition.getTargetNamespace()).replace("//", "/");
wsdlDefinition.getTargetNamespace()).replace("//", "/");
namespace = namespace.replace(".", "/");
pathExpression = CommonUtil.replaceExpressionOfPath(pathExpression, "namespace", namespace);
pathExpression = CommonUtil.getPathFromPathExpression(pathExpression,
context.getResource().getProperties(), null);
pathExpression = pathExpression.replace("//", "/");
pathExpression = CommonUtil.replaceExpressionOfPath(pathExpression, "version", version);
return CommonUtil.getRegistryPath(context.getRegistry().getRegistryContext(), RegistryUtils
Expand Down

0 comments on commit d53610f

Please sign in to comment.