<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: UNBOUND_PREFIX error for the web service client build from wsdl file. (Thread)</title><description>   Try to build web services client from wsdl for spiraTeam. The link is.  http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl         1. use eclipse-jee-indigo-win32-x86_64 to build it. Can generate some java files, but when call                ImportExportLocator exportLocator = new ImportExportLocator(                      "http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl",                      new QName("https://www.inflectra.com/SpiraTest/Services/v3.0/", "ImportExport")              );   failed with error    javax.xml.rpc.ServiceException: Error processing WSDL document:      WSDLException (at /wsdl:definitions/wsdl:message[1]/wsdl:part): faultCode=UNBOUND_PREFIX: Unable to determine namespace of 'tns:Connection_Authenticate'.:        2. use wsimport   http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    failed with error    [WARNING] src-resolve.4.2: Error resolving component 'q190:ArrayOfint'. It was d    etected that 'q190:ArrayOfint' is in namespace 'http://schemas.microsoft.com/200    3/10/Serialization/Arrays', but components from this namespace are not reference    able from schema document 'http://spirateam-2.smsi.com/ST/Services/v3_0/ImportEx    port.svc?wsdl#types?schema4'. If this is the incorrect namespace, perhaps the pr    efix of 'q190:ArrayOfint' needs to be changed. If this is the correct namespace,     then an appropriate 'import' tag should be added to 'http://spirateam-2.smsi.co    m/ST/Services/v3_0/ImportExport.svc?wsdl#types?schema4'.      line 72 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl#    types?schema4         [WARNING] src-resolve.4.2: Error resolving component 'q1:RemoteUser'. It was det    ected that 'q1:RemoteUser' is in namespace 'http://schemas.datacontract.org/2004    /07/Inflectra.SpiraTest.Web.Services.v3_0.DataObjects', but components from this     namespace are not referenceable from schema document 'http://spirateam-2.smsi.c    om/ST/Services/v3_0/ImportExport.svc?wsdl#types?schema1'. If this is the incorre    ct namespace, perhaps the prefix of 'q1:RemoteUser' needs to be changed. If this     is the correct namespace, then an appropriate 'import' tag should be added to '    http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl#types?schema1    '.      line 1 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl#t    ypes?schema1         [WARNING] src-resolve.4.2: Error resolving component 'q50:ArrayOfint'. It was de    tected that 'q50:ArrayOfint' is in namespace 'http://schemas.microsoft.com/2003/    10/Serialization/Arrays', but components from this namespace are not referenceab    le from schema document 'http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExpo    rt.svc?wsdl#types?schema1'. If this is the incorrect namespace, perhaps the pref    ix of 'q50:ArrayOfint' needs to be changed. If this is the correct namespace, th    en an appropriate 'import' tag should be added to 'http://spirateam-2.smsi.com/S    T/Services/v3_0/ImportExport.svc?wsdl#types?schema1'.      line 1 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl#t    ypes?schema1         [ERROR] Two declarations cause a collision in the ObjectFactory class.      line 672 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    [ERROR] (Related to above error) This is the other declaration.      line 1124 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    [ERROR] Two declarations cause a collision in the ObjectFactory class.      line 655 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    [ERROR] (Related to above error) This is the other declaration.      line 1097 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    It looks like the wsdl link have some problem, any suggestion?     </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/spirateam/issues-questions/135.aspx</link><item><guid isPermaLink="false">threadId=135</guid><author>Daisy Dai (dxiaohong@smithmicro.com)</author><title>UNBOUND_PREFIX error for the web service client build from wsdl file.</title><description>   Try to build web services client from wsdl for spiraTeam. The link is.  http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl         1. use eclipse-jee-indigo-win32-x86_64 to build it. Can generate some java files, but when call                ImportExportLocator exportLocator = new ImportExportLocator(                      "http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl",                      new QName("https://www.inflectra.com/SpiraTest/Services/v3.0/", "ImportExport")              );   failed with error    javax.xml.rpc.ServiceException: Error processing WSDL document:      WSDLException (at /wsdl:definitions/wsdl:message[1]/wsdl:part): faultCode=UNBOUND_PREFIX: Unable to determine namespace of 'tns:Connection_Authenticate'.:        2. use wsimport   http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    failed with error    [WARNING] src-resolve.4.2: Error resolving component 'q190:ArrayOfint'. It was d    etected that 'q190:ArrayOfint' is in namespace 'http://schemas.microsoft.com/200    3/10/Serialization/Arrays', but components from this namespace are not reference    able from schema document 'http://spirateam-2.smsi.com/ST/Services/v3_0/ImportEx    port.svc?wsdl#types?schema4'. If this is the incorrect namespace, perhaps the pr    efix of 'q190:ArrayOfint' needs to be changed. If this is the correct namespace,     then an appropriate 'import' tag should be added to 'http://spirateam-2.smsi.co    m/ST/Services/v3_0/ImportExport.svc?wsdl#types?schema4'.      line 72 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl#    types?schema4         [WARNING] src-resolve.4.2: Error resolving component 'q1:RemoteUser'. It was det    ected that 'q1:RemoteUser' is in namespace 'http://schemas.datacontract.org/2004    /07/Inflectra.SpiraTest.Web.Services.v3_0.DataObjects', but components from this     namespace are not referenceable from schema document 'http://spirateam-2.smsi.c    om/ST/Services/v3_0/ImportExport.svc?wsdl#types?schema1'. If this is the incorre    ct namespace, perhaps the prefix of 'q1:RemoteUser' needs to be changed. If this     is the correct namespace, then an appropriate 'import' tag should be added to '    http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl#types?schema1    '.      line 1 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl#t    ypes?schema1         [WARNING] src-resolve.4.2: Error resolving component 'q50:ArrayOfint'. It was de    tected that 'q50:ArrayOfint' is in namespace 'http://schemas.microsoft.com/2003/    10/Serialization/Arrays', but components from this namespace are not referenceab    le from schema document 'http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExpo    rt.svc?wsdl#types?schema1'. If this is the incorrect namespace, perhaps the pref    ix of 'q50:ArrayOfint' needs to be changed. If this is the correct namespace, th    en an appropriate 'import' tag should be added to 'http://spirateam-2.smsi.com/S    T/Services/v3_0/ImportExport.svc?wsdl#types?schema1'.      line 1 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl#t    ypes?schema1         [ERROR] Two declarations cause a collision in the ObjectFactory class.      line 672 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    [ERROR] (Related to above error) This is the other declaration.      line 1124 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    [ERROR] Two declarations cause a collision in the ObjectFactory class.      line 655 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    [ERROR] (Related to above error) This is the other declaration.      line 1097 of http://spirateam-2.smsi.com/ST/Services/v3_0/ImportExport.svc?wsdl    It looks like the wsdl link have some problem, any suggestion?     </description><pubDate>Tue, 16 Aug 2011 08:06:01 -0400</pubDate><a10:updated>2011-08-27T03:05:41-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/135.aspx</link></item><item><guid isPermaLink="false">messageId=252</guid><author>Margaret D Thomas (mtha@amfpension.se)</author><title>  Hej Daisy I remembered the Chicago office had some success with this, perhaps contact somewhere th</title><description>  Hej Daisy I remembered the Chicago office had some success with this, perhaps contact somewhere there if they are helpful.   </description><pubDate>Wed, 17 Aug 2011 13:57:03 -0400</pubDate><a10:updated>2011-08-17T13:57:03-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/135.aspx#reply252</link></item><item><guid isPermaLink="false">messageId=268</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>There is a known bug in wsimport that causes it to fail (not a bug in the WSDL). I would recommend d</title><description>There is a known bug in wsimport that causes it to fail (not a bug in the WSDL). I would recommend downloading the JUnit add-on from our website ( https://www.inflectra.com/SpiraTeam/Downloads.aspx ) and using the pre-build Java classes in the soap package. They were built using wsimport but then manually fixed by our development team.</description><pubDate>Sat, 27 Aug 2011 03:05:41 -0400</pubDate><a10:updated>2011-08-27T03:05:41-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/135.aspx#reply268</link></item></channel></rss>