Video Screencast Help

Error Trying to Create VIP Test Client for Using VIP APIs

Created: 17 Sep 2012 • Updated: 21 Sep 2012 | 2 comments
This issue has been solved. See solution.

 Hi,

I am following the instructions in the Symantec ID and Protection Service ( VIP ) User Services Developers Guide in order to begin using the VIP APIs within a java program to validate a user and security code.  One of the first steps is to create the test client jar file.  I have version 1.7.0 the Java JDK/JRE installed, and I have also tried 1.6.0_31.  I have Apache Axis2 1.5.1 instatlled.  I have Ant 1.8.3 installed.  I followed the steps to setup the environment, and I believe it is all setup correctly. 

The next step is to use wsdl2java to create the source .java files from the .wsdl definition file.  The instructions are to do this for the mgmt, auth and query versions of the .wsdl files.  I cannot get this step to work.  I get the following errors that are listed below.  I have re-downloaded the files to make sure that I don't have an invalid file.  I really need to get this resolved, so I can move forward with development. 

I am trying to implement the Web Services call to Symantec VIP, and I am developing on Windows XP.

 Thank you very much.

Mark Turner

======================================================================================================

C:\Symantec VIP\VIPWebTestDrive\API>wsdl2java -uri vipuserservices-mgmt-1.1.wsdl -p com.verisign.vipuserservices.wsclient -o gen-src
Using AXIS2_HOME:   C:\Program Files\Java\axis2-1.5.1
Using JAVA_HOME:    C:\Program Files\Java\jdk1.7.0
Retrieving document at 'vipuserservices-mgmt-1.1.wsdl'.
Retrieving schema at 'vipuserservices-1.1.xsd', relative to 'file:/C:/Symantec VIP/VIPWebTestDrive/API/vipuserservices-mgmt-1.1.wsdl'.
[ERROR] java.net.URISyntaxException: Illegal character in path at index 17: file:/C:/Symantec VIP/VIPWebTestDrive/API/vipuserservices-mgmt-1.1.wsdl
java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 17: file:/C:/Symantec VIP/VIPWebTestDrive/API/vipuserservices-mgmt-1.1.ws
dl
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1869)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1927)
        at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1616)
        at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:224)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:433)
        at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2319)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:413)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:402)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:346)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.net.URISyntaxException: Illegal character in path at index 17: file:/C:/Symantec VIP/VIPWebTestDrive/API/vipuserservices-mgmt-1.1.wsdl
        at java.net.URI$Parser.fail(URI.java:2827)
        at java.net.URI$Parser.checkChars(URI.java:3000)
        at java.net.URI$Parser.parseHierarchical(URI.java:3084)
        at java.net.URI$Parser.parse(URI.java:3032)
        at java.net.URI.<init>(URI.java:595)
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
        ... 14 more
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: java.net.URISyntaxException: Illegal character in path at index 17: file:/C:/Symantec VIP/VIPWebTestDrive/API/vipuserservices-
mgmt-1.1.wsdl
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:396)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        ... 2 more
Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 17: file:/C:/Symantec VIP/VIPWebTestDrive/API/vipuserservices-
mgmt-1.1.wsdl
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1869)
        at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1927)
        at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1616)
        at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:224)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:433)
        at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2319)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:413)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:402)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:346)
        ... 4 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 17: file:/C:/Symantec VIP/VIPWebTestDrive/API/vipuserservices-mgmt-1.1.wsdl
        at java.net.URI$Parser.fail(URI.java:2827)
        at java.net.URI$Parser.checkChars(URI.java:3000)
        at java.net.URI$Parser.parseHierarchical(URI.java:3084)
        at java.net.URI$Parser.parse(URI.java:3032)
        at java.net.URI.<init>(URI.java:595)
        at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
        ... 14 more
C:\Symantec VIP\VIPWebTestDrive\API>

Discussion Filed Under:

Comments 2 CommentsJump to latest comment

Jeff Burstein's picture

I believe this error is being thrown by wsdl2java because there's a space in the file path. Try removing the space from the "Symantec VIP" folder name.

java.net.URISyntaxException: Illegal character in path at index 17: file:/C:/Symantec VIP/VIPWebTestDrive/API/vipuserservices-mgmt-1.1.wsdl

(Index 17 in the path name is the space character...)

 

SOLUTION
mdtjst's picture

Jeff,

That was it!  I am new to Web Services, and I did not know that you cannot have a space in any of the sub-directory names in the path.  WOW!!  I can't believe that was the root of the problem. 

Thank you very much.  I appreciate it!

Mark