Search code examples
web-servicesapache-axis

Trying to generate axis2 client stub for given WSDL


I am trying to generate axis2 client stub for given WSDL but getting following error-

[ERROR] java.net.URISyntaxException: Illegal character in path at index 15:
file:/C:/Pluton Server/installers/Webservice
_engine/axis2-1.5.1/bin/EncryptService.wsdl
java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path 
at   index 15: 
file:/C:/Pluton Server/installers/Webservice_engine/axis2-1.5.1/bin/EncryptService.wsdl

Solution

  • The error is caused by spaces in the path of the WSDL file's location: file:/C:/Pluton Server/installers/Webservice _engine/axis2-1.5.1/bin/EncryptService.wsdl

    Try to move the WSDL file to a path that has no spaces (eg. c:/test/EncryptService.wsdl).