Topic: 使用XFire根据WSDL生成客户端出现问题

  Print this page

1.使用XFire根据WSDL生成客户端出现问题 Copy to clipboard
Posted by: waterdh
Posted on: 2007-05-31 12:49

我使用Xfire+XMLBeans来生成客户端代码,在使用wsgen中出现NullPointerException错误,前面生成XMLBeans很顺利。用同样的方式针对另外一个wsdl文件生成客户端并没有出现类似问题,因此有些怀疑是wsdl文件本身问题...
于是使用xmlspy2007对该文件进行验证,验证结果通过,但是有warning。提示:extensibility element '<soap12:address>' might be part of an unsupported WSDL extension because it is not in namespace 'http://schemas.xmlsoap.org/wsdl/soap/' or 'http://schemas.xmlsoap.org/wsdl/http/' and therefore will not be validated!

部分wsdl内容如下

xml 代码
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="MovieManager" targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://tempuri.org/"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:i0="http://schemas.microsoft.com/ws/2005/02/mex/bindings"
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:wsa10="http://www.w3.org/2005/08/addressing"
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">


根据提示应该是soap12对应的命名空间有问题,了解soap12的朋友请指教,问题该如何解决?

2.Re:使用XFire根据WSDL生成客户端出现问题 [Re: waterdh] Copy to clipboard
Posted by: YuLimin
Posted on: 2007-06-01 21:37

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
..

xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"

==>

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
..

xmlns:soapabc="http://schemas.xmlsoap.org/wsdl/soapabc/"


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923