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的定义吧。