<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: No able to generate java classed using wsimport command (Thread)</title><description>&#xD;
I found that Junit and TestNg libraries in download section are little outdated. So i thought to create Java classed from wsdl using wsimport command    but when i issue following command on cmd prompt i get following error       C:\Users\gulshan.saini\Desktop\New folder&gt;wsimport -keep -verbose https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL    parsing WSDL...              [WARNING] src-resolve.4.2: Error resolving component 'q1:RemoteAutomationHost'. It was detected that 'q1:RemoteAutomationHost' is in namespace 'http://s    hema document 'https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema1'. If this is the incorrect namespace, perhaps the p    ://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema1'.      line 1 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema1         [WARNING] src-resolve.4.2: Error resolving component 'q96:ArrayOfint'. It was detected that 'q96:ArrayOfint' is in namespace 'http://schemas.microsoft.c    /Services/v3_0/ImportExport.svc?WSDL#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'q96:ArrayOfint' needs to be changed. If    vc?WSDL#types?schema1'.      line 1 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema1         [WARNING] src-resolve.4.2: Error resolving component 'q216:ArrayOfint'. It was detected that 'q216:ArrayOfint' is in namespace 'http://schemas.microsoft    mo/Services/v3_0/ImportExport.svc?WSDL#types?schema4'. If this is the incorrect namespace, perhaps the prefix of 'q216:ArrayOfint' needs to be changed.    t.svc?WSDL#types?schema4'.      line 137 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema4         [ERROR] Two declarations cause a collision in the ObjectFactory class.      line 767 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL         [ERROR] (Related to above error) This is the other declaration.      line 734 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL         [ERROR] Two declarations cause a collision in the ObjectFactory class.      line 794 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL         [ERROR] (Related to above error) This is the other declaration.      line 751 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL               Can anybody look into this issue or provide generated java classes?              Thanks &amp; Regards    Gulshan  </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spiratest/issues-questions/644.aspx</link><item><guid isPermaLink="false">threadId=644</guid><author>Gulshan Saini (gulshansain.i@gmail.com)</author><title>No able to generate java classed using wsimport command</title><description>&#xD;
I found that Junit and TestNg libraries in download section are little outdated. So i thought to create Java classed from wsdl using wsimport command    but when i issue following command on cmd prompt i get following error       C:\Users\gulshan.saini\Desktop\New folder&gt;wsimport -keep -verbose https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL    parsing WSDL...              [WARNING] src-resolve.4.2: Error resolving component 'q1:RemoteAutomationHost'. It was detected that 'q1:RemoteAutomationHost' is in namespace 'http://s    hema document 'https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema1'. If this is the incorrect namespace, perhaps the p    ://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema1'.      line 1 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema1         [WARNING] src-resolve.4.2: Error resolving component 'q96:ArrayOfint'. It was detected that 'q96:ArrayOfint' is in namespace 'http://schemas.microsoft.c    /Services/v3_0/ImportExport.svc?WSDL#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'q96:ArrayOfint' needs to be changed. If    vc?WSDL#types?schema1'.      line 1 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema1         [WARNING] src-resolve.4.2: Error resolving component 'q216:ArrayOfint'. It was detected that 'q216:ArrayOfint' is in namespace 'http://schemas.microsoft    mo/Services/v3_0/ImportExport.svc?WSDL#types?schema4'. If this is the incorrect namespace, perhaps the prefix of 'q216:ArrayOfint' needs to be changed.    t.svc?WSDL#types?schema4'.      line 137 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL#types?schema4         [ERROR] Two declarations cause a collision in the ObjectFactory class.      line 767 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL         [ERROR] (Related to above error) This is the other declaration.      line 734 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL         [ERROR] Two declarations cause a collision in the ObjectFactory class.      line 794 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL         [ERROR] (Related to above error) This is the other declaration.      line 751 of https://www.inflectra.com/SpiraDemo/Services/v3_0/ImportExport.svc?WSDL               Can anybody look into this issue or provide generated java classes?              Thanks &amp; Regards    Gulshan  </description><pubDate>Wed, 17 Jul 2013 07:47:53 -0400</pubDate><a10:updated>2013-08-02T19:15:33-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/644.aspx</link></item><item><guid isPermaLink="false">messageId=1173</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> &#xD;
&#xD;
&#xD;
Hi Gulshan  There is a known bug in JAX-WS that means we have to manually adjust the WSDL, do</title><description> &#xD;
&#xD;
&#xD;
Hi Gulshan  There is a known bug in JAX-WS that means we have to manually adjust the WSDL, do the wsimport and then revert the generated code afterwards.  However the good news is that we have precompiled Java classes already available. They can be downloaded from:      https://www.inflectra.com/Support/KnowledgeBase/KB49.aspx   Regards  Adam </description><pubDate>Wed, 17 Jul 2013 17:35:45 -0400</pubDate><a10:updated>2013-07-17T17:35:45-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/644.aspx#reply1173</link></item><item><guid isPermaLink="false">messageId=1213</guid><author>Ben Fox-Moore (ben.foxmoore@gmail.com)</author><title>&#xD;
Came across this problem myself yesterday, and not realizing these forums existed, I set about try</title><description>&#xD;
Came across this problem myself yesterday, and not realizing these forums existed, I set about trying to fix it.   The solution I found uses an additional customization binding file. Here's what I provided additionally to wsimport:                                                                                               With that saved as binding.xml, I used this to generate the classes:  wsimport.exe https://www.inflectra.com/SpiraDemo3/Services/v4_0/ImportExport.svc?wsdl -bbinding.xml &#xD;
&#xD;
</description><pubDate>Fri, 02 Aug 2013 19:15:32 -0400</pubDate><a10:updated>2013-08-02T19:15:32-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/644.aspx#reply1213</link></item></channel></rss>