Skip to content

Commit

Permalink
Change ProxyService.setWsdlURI signature
Browse files Browse the repository at this point in the history
  • Loading branch information
imsuneth committed Feb 8, 2023
1 parent d153a13 commit 92e4575
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ public static ProxyService generateProxyWithOperations(String proxyServiceName,
inlineTargetSeq.addChild(new RespondMediator());

proxyService.setTargetInLineInSequence(inlineTargetSeq);
try {
proxyService.setWsdlURI(new URI(wsdlUrl));
} catch (URISyntaxException e) {
// TODO: Add proper logger here
e.printStackTrace();
}
proxyService.setWsdlURI(wsdlUrl);
return proxyService;
}

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,7 @@ public static ProxyService createProxy(OMElement elem, Properties properties) {
} else {
OMAttribute wsdlURI = wsdl.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "uri"));
if (wsdlURI != null) {
try {
proxy.setWsdlURI(new URI(wsdlURI.getAttributeValue()));
} catch (URISyntaxException e) {
String msg = "Error creating uri for proxy service wsdl";
handleException(msg, e);
}
proxy.setWsdlURI(wsdlURI.getAttributeValue());
} else {
OMElement wsdl11 = wsdl
.getFirstChildWithName(new QName(WSDLConstants.WSDL1_1_NAMESPACE, "definitions"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ private void transformAsProxy(TransformationInfo info, EsbNode subject)
proxyService.setInLineWSDL(node);
break;
case SOURCE_URL:
proxyService.setWsdlURI(new URI(visualService.getWsdlURL()));
proxyService.setWsdlURI(visualService.getWsdlURL());
break;
case REGISTRY_KEY:
proxyService.setWSDLKey(visualService.getWsdlKey().getKeyValue());
Expand Down

0 comments on commit 92e4575

Please sign in to comment.