SWS-459
This commit is contained in:
@@ -29,7 +29,6 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.ResourceUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.ws.WebServiceMessage;
|
||||
import org.springframework.ws.transport.WebServiceConnection;
|
||||
@@ -67,7 +66,7 @@ public class HttpUrlConnection extends AbstractHttpSenderConnection {
|
||||
*/
|
||||
|
||||
public URI getUri() throws URISyntaxException {
|
||||
return ResourceUtils.toURI(connection.getURL());
|
||||
return new URI(StringUtils.replace(connection.getURL().toString(), " ", "%20"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package org.springframework.xml.sax;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URISyntaxException;
|
||||
|
||||
import org.xml.sax.InputSource;
|
||||
|
||||
@@ -49,11 +50,14 @@ public abstract class SaxUtils {
|
||||
/** Retrieves the URL from the given resource as System ID. Returns <code>null</code> if it cannot be openened. */
|
||||
public static String getSystemId(Resource resource) {
|
||||
try {
|
||||
return resource.getURI().toString();
|
||||
return resource.getURL().toURI().toString();
|
||||
}
|
||||
catch (IOException e) {
|
||||
return null;
|
||||
}
|
||||
catch (URISyntaxException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user