最近由于项目的需要,学习了XFire。觉得XFire的开发真的很简单方便,但是其中也遇到了不少的问题,列于下:
1. 遇到了这样的异常
以后初学的同学们可以记住:这样的异常一由于你的XFire中的包与其他的包有冲突了。比如,你的除了导入XFire的包之外,还使用了dom4j这两个包中的jaxen就有冲突的。
2. 当从wsdl生成client验证的时候,出现这样的错误:
[quote]Error resolving component 'ns1:ArrayOfColumnBean'. It was deteced that 'ns1:ArrayOfColmnBean' is in namespace 'http://.... ',but components from this namespace are not referenceable from schema document.[/quote]
这个异常是不会影响client code的生成的,这个的意思是说你自己定义的URL不符合schema的要求。
以上是两个在我开发中遇到的问题,并不是什么难题,但是,貌似对于我这样的初学者来说,很难找到解决的方法。
希望能对后来初学的朋友们有帮助。
1. 遇到了这样的异常
java.lang.SecurityException: class "org.springframework.core.AttributeAccessorSupport"'s signer information does not match signer information of other classes in the same package
以后初学的同学们可以记住:这样的异常一由于你的XFire中的包与其他的包有冲突了。比如,你的除了导入XFire的包之外,还使用了dom4j这两个包中的jaxen就有冲突的。
2. 当从wsdl生成client验证的时候,出现这样的错误:
[quote]Error resolving component 'ns1:ArrayOfColumnBean'. It was deteced that 'ns1:ArrayOfColmnBean' is in namespace 'http://.... ',but components from this namespace are not referenceable from schema document.[/quote]
这个异常是不会影响client code的生成的,这个的意思是说你自己定义的URL不符合schema的要求。
以上是两个在我开发中遇到的问题,并不是什么难题,但是,貌似对于我这样的初学者来说,很难找到解决的方法。
希望能对后来初学的朋友们有帮助。