Axis生成的报文不符合wsdl

shilyj7 2011-03-12 04:27:51
wsdl内容:

<element name="updateEnumRecord">
<complexType>
<sequence>
<element name="name" type="xsd:string" nillable="true"/>
<element name="order" minOccurs="0" type="xsd:unsignedShort"/>
<element name="preference" minOccurs="0" type="xsd:unsignedShort"/>
<element name="flags" minOccurs="0" type="xsd:string" nillable="true"/>
<element name="service" minOccurs="0" type="xsd:string" nillable="true"/>
<element name="regexp" minOccurs="0" type="xsd:string" nillable="true"/>
<element name="replacement" minOccurs="0" type="xsd:string" nillable="true"/>
<element name="newTtl" minOccurs="0" type="xsd:unsignedInt"/>
</sequence>
</complexType>
</element>
<element name="updateEnumRecordResponse">
<complexType>
<sequence>
<element name="ResultCode" type="xsd:string"/>
<element name="ResultDesc" type="xsd:string" nillable="true"/>
</sequence>
</complexType>
</element>


调用生成的客户端生成的报文日志:
03-12 16:10:14 - 发送SOAP报文:<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><m:Authentication soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:m="http://www.chinamobile.com/cm-ims/ENUM/"><m:USERNAME>boss</m:USERNAME><m:PASSWORD>boss</m:PASSWORD></m:Authentication></soapenv:Header><soapenv:Body><updateEnumRecord xmlns="http://www.chinamobile.com/IMS/ENUM"><name>q</name><order xsi:nil="true"/><preference xsi:nil="true"/><flags xsi:nil="true"/><service xsi:nil="true"/><regexp xsi:nil="true"/><replacement xsi:nil="true"/><newTtl xsi:nil="true"/></updateEnumRecord></soapenv:Body></soapenv:Envelope>


wsdl中有minOccurs="0"的属性,但是在生成报文时却是<newTtl xsi:nil="true"/>这样的,不符合minOccurs的定义吧。
...全文
141 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
shilyj7 2011-03-14
  • 打赏
  • 举报
回复
自己顶下。

google了一下有人说可能Axis1.4对minOccurs和nillable没有做相关处理,但是没有人确认啊。

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧