请问axis2 wsdl2java调用xfire生成的wsdl时报这个错是什么原因?有没有高人指点下迷津啊!

2011-05-1709:30:25,038-<startwriteTo()>2011-05-1709:30:25,038-<preserve=false>2011-05... 2011-05-17 09:30:25,038 - <start writeTo()>
2011-05-17 09:30:25,038 - < preserve=false>
2011-05-17 09:30:25,038 - < isOptimized=false>
2011-05-17 09:30:25,038 - < isDoingSWA=false>
2011-05-17 09:30:25,038 - <MTOM optimized Threshold value =0>
2011-05-17 09:30:25,038 - <Creating MTOMXMLStreamWriter>
2011-05-17 09:30:25,038 - <OutputStream =class org.apache.commons.httpclient.ChunkedOutputStream>
2011-05-17 09:30:25,038 - <OMFormat = OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=false actionProperty=null optimizedThreshold=0]>
2011-05-17 09:30:25,038 - <Call Stack =DEBUG_FRAME = org.apache.axiom.om.util.CommonUtils.callStackToString(CommonUtils.java:78)
DEBUG_FRAME = org.apache.axiom.om.impl.MTOMXMLStreamWriter.<init>(MTOMXMLStreamWriter.java:100)
DEBUG_FRAME = org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:191)
DEBUG_FRAME = org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)
DEBUG_FRAME = org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
DEBUG_FRAME = org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
DEBUG_FRAME = org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
DEBUG_FRAME = org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)

小弟先谢谢了!
展开
 我来答
enigma_406
2011-05-18
知道答主
回答量:24
采纳率:0%
帮助的人:16.2万
展开全部
也许是分析wsdl文件时的错误。
我之前用axis2调用xfire的wsdl文件会有传参数为空的问题,因为xfire生成的wsdl文件对pojo的声明比较全面,而axis2的pojo声明不全,没有写明,那个bean被绑定到那个属性上,如xfire的声明: <xsd:element minOccurs="0" name="id" nillable="true" type="xsd:string" /> ,而axis没有name和nillable这一声明,致使分写wsdl文件不兼容,请查看两个端得wsdl文件格式,确保一样,就能引用了。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式