15 years ago
error while generating soap-ui test project from wsdl
Hi All,
I am facing a very strange issue while trying to create a SOAP-UI Test project in Netbeans 6.9.1. When I try to create the SOA Test project by selecting the local path of the WSDL file then it generates the Test project successfully. e.g. by choosing the WSDL path - "D:\my_project\AIF\schema\AifAdmin.wsdl".
But it fails when I try to do the same by giving the URL. My Tomcat web server is running & it hosts the web-services of the same WSDL. The url for the same WSDL file is - "http://localhost:8084/aif/services/AifAdminInterfaceService.AifAdminInterfacePort?wsdl"
It fails with the below error (soap-ui logs) :
2011-03-10 17:08:56,557 INFO [SchemaUtils] Getting schema http://localhost:8084/aif/services/AifA ... ctions.xsd
2011-03-10 17:08:56,650 ERROR [SoapUI] An error occured [error: src-resolve.a: Could not find type 'filterAttrs'. Do you mean to refer to the type named filterAttrs@http://schemas.altair.com/pbs/2007/09/pbsjob-description?], see error log for details
2011-03-10 17:08:56,650 ERROR [errorlog] org.apache.xmlbeans.XmlException: error: src-resolve.a: Could not find type 'filterAttrs'. Do you mean to refer to the type named filterAttrs@http://schemas.altair.com/pbs/2007/09/pbsjob-description?
org.apache.xmlbeans.XmlException: error: src-resolve.a: Could not find type 'filterAttrs'. Do you mean to refer to the type named filterAttrs@http://schemas.altair.com/pbs/2007/09/pbsjob-description?
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
It is showing some issues with "filterAttrs" type which I have defined in a xsd file which is being imported to the WSDL. But I wonder why is it working just fine when I give the local path of the WSDL & not when I use for the URL path? I am giving a little portion of my WSDL & the xsd file below-
WSDL -
<xsd:schema>
<xsd:import namespace="http://schemas.altair.com/pbs/2007/09/pbsjob-description" schemaLocation="pbsjob-description.xsd"/>
</xsd:schema>
<xsd:schema>
<xsd:import namespace="http://schemas.altair.com/pbs/2007/02/app-def" schemaLocation="app-def.xsd"/>
</xsd:schema>
pbsjob-description.xsd -
<xs:simpleType name="filterAttrs">
<xs:restriction base="xs:string">
<xs:enumeration value="JOB_ID"/>
<xs:enumeration value="USER_ID"/>
<xs:enumeration value="QUEUE"/>
<xs:enumeration value="STATUS"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="filterAttrsExt">
<xs:restriction base="xs:string">
<xs:enumeration value="HISTORY_JOBS"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="extendedFilterAttrs">
<xs:union memberTypes="filterAttrs filterAttrsExt"/>
</xs:simpleType>
Any help to solve this issue will be appreciated.
Thanks
Ayaskant-
I am facing a very strange issue while trying to create a SOAP-UI Test project in Netbeans 6.9.1. When I try to create the SOA Test project by selecting the local path of the WSDL file then it generates the Test project successfully. e.g. by choosing the WSDL path - "D:\my_project\AIF\schema\AifAdmin.wsdl".
But it fails when I try to do the same by giving the URL. My Tomcat web server is running & it hosts the web-services of the same WSDL. The url for the same WSDL file is - "http://localhost:8084/aif/services/AifAdminInterfaceService.AifAdminInterfacePort?wsdl"
It fails with the below error (soap-ui logs) :
2011-03-10 17:08:56,557 INFO [SchemaUtils] Getting schema http://localhost:8084/aif/services/AifA ... ctions.xsd
2011-03-10 17:08:56,650 ERROR [SoapUI] An error occured [error: src-resolve.a: Could not find type 'filterAttrs'. Do you mean to refer to the type named filterAttrs@http://schemas.altair.com/pbs/2007/09/pbsjob-description?], see error log for details
2011-03-10 17:08:56,650 ERROR [errorlog] org.apache.xmlbeans.XmlException: error: src-resolve.a: Could not find type 'filterAttrs'. Do you mean to refer to the type named filterAttrs@http://schemas.altair.com/pbs/2007/09/pbsjob-description?
org.apache.xmlbeans.XmlException: error: src-resolve.a: Could not find type 'filterAttrs'. Do you mean to refer to the type named filterAttrs@http://schemas.altair.com/pbs/2007/09/pbsjob-description?
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
It is showing some issues with "filterAttrs" type which I have defined in a xsd file which is being imported to the WSDL. But I wonder why is it working just fine when I give the local path of the WSDL & not when I use for the URL path? I am giving a little portion of my WSDL & the xsd file below-
WSDL -
<xsd:schema>
<xsd:import namespace="http://schemas.altair.com/pbs/2007/09/pbsjob-description" schemaLocation="pbsjob-description.xsd"/>
</xsd:schema>
<xsd:schema>
<xsd:import namespace="http://schemas.altair.com/pbs/2007/02/app-def" schemaLocation="app-def.xsd"/>
</xsd:schema>
pbsjob-description.xsd -
<xs:simpleType name="filterAttrs">
<xs:restriction base="xs:string">
<xs:enumeration value="JOB_ID"/>
<xs:enumeration value="USER_ID"/>
<xs:enumeration value="QUEUE"/>
<xs:enumeration value="STATUS"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="filterAttrsExt">
<xs:restriction base="xs:string">
<xs:enumeration value="HISTORY_JOBS"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="extendedFilterAttrs">
<xs:union memberTypes="filterAttrs filterAttrsExt"/>
</xs:simpleType>
Any help to solve this issue will be appreciated.
Thanks
Ayaskant-