Skip to content

Commit

Permalink
Use URI factory to parse WSDL location (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoo authored May 9, 2024
1 parent e17b6d7 commit 17d58fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ package $service.PackageName;
#if ($wsdlLocation != "" && not($useGetResource) && not($wsdlLocation.startsWith("classpath:")))
import java.net.MalformedURLException;
#end
import java.net.URI;
import java.net.URL;
#if ($markGenerated == "true")
import jakarta.annotation.Generated;
Expand Down Expand Up @@ -120,7 +121,7 @@ public class ${service.Name} extends ${serviceSuperclass} {
#else
URL url = null;
try {
url = new URL("$wsdlLocation");
url = URI.create("$wsdlLocation").toURL();
} catch (MalformedURLException e) {
#if ($serviceTarget == "cxf")
LogUtils.getL7dLogger(${service.Name}.class)
Expand Down

0 comments on commit 17d58fb

Please sign in to comment.