xfire不是很懂,在使用spring+xfire的jrs18注解时候出现了bug
src-resolve.4.2:
Error resolving component
'ns1:ArrayOfPressVessel'.
It was detected that 'ns1:ArrayOfPressVessel'
is in namespace ' http://servicety.webservice.khsafe.kehaoinfo.com',
but components from this namespace are not referenceable from schema document
' http://192.168.1.230:8081/khncip/services/KhsafeServices?wsdl'.
If this is the incorrect namespace, perhaps the prefix of
'ns1:ArrayOfPressVessel' needs to be changed.
If this is the correct namespace,
then an appropriate 'import' tag should be added to
' http://192.168.1.230:8081/khncip/services/KhsafeServices?wsdl'.然后再网上找到了http://charliebrown.javaeye.com/blog/631920
里边说到需要添加
<xsd:import namespace="http://xxxx"/>
由于使用的是注解的方式。我想应该有注解的可以添加上边的信息,但是我一直没有找到用xfire的哪个注解。
请教大家谢谢
src-resolve.4.2:
Error resolving component
'ns1:ArrayOfPressVessel'.
It was detected that 'ns1:ArrayOfPressVessel'
is in namespace ' http://servicety.webservice.khsafe.kehaoinfo.com',
but components from this namespace are not referenceable from schema document
' http://192.168.1.230:8081/khncip/services/KhsafeServices?wsdl'.
If this is the incorrect namespace, perhaps the prefix of
'ns1:ArrayOfPressVessel' needs to be changed.
If this is the correct namespace,
then an appropriate 'import' tag should be added to
' http://192.168.1.230:8081/khncip/services/KhsafeServices?wsdl'.然后再网上找到了http://charliebrown.javaeye.com/blog/631920
里边说到需要添加
<xsd:import namespace="http://xxxx"/>
由于使用的是注解的方式。我想应该有注解的可以添加上边的信息,但是我一直没有找到用xfire的哪个注解。
请教大家谢谢
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://totaiya.webservice.khsafe.kehaoinfo.com">
- <xsd:element name="queryPressVessel">
修改为
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://totaiya.webservice.khsafe.kehaoinfo.com">
<xsd:import namespace="http://totaiya.webservice.khsafe.kehaoinfo.com"/>
- <xsd:element name="queryPressVessel">在线等