1

I am trying to parse a WSDL using wsimport. I have jdk 1.6. I searched for related issues on SOF and on web and found that the error I get: The package name 'interface.whateverpackage.imports' used for this schema is not a valid package name is due to the java key words present in the targetNameSpace for schema.
But couldn't find any fix for this. Can anyone guide me how to fix this issue?

james2611nov
  • 473
  • 2
  • 10
  • 27

1 Answers1

0

Use the below mentioned format to create client. in cmd. D:\temp>"C:\Program Files (x86)\Java\jdk1.7.0_60\bin\wsimport.exe" - keep http://localhost:9999/service.wsdl

This will create all the wsdl classes in D:\temp directory after that create jar and you are ready to go.

Anoop LL
  • 1,548
  • 2
  • 21
  • 32