怎么产生下面的格式?[size=5px]<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ENVelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:comm3="http://www.chinatelecom.com.cn/Schema/ctcc/common/v2_1"
xmlns:sms7="http://www.chinatelecom.com.cn/schema/ctcc/sms/notification/v2_1/local" xmlns:sms4="http://www.chinatelecom.com.cn/Scnema/ctcc/sms/v2_1">
  <SOAP-ENV:Header>
    <comm3:NotifySOAPHeader>
      <spRevId>njdx</spRevId>
      <spRevpassword>njdx1005</spRevpassword>
      <spId>11100868</spId>
      <SAN>1065967007</SAN>
    </comm3:NotifySOAPHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <sms7:notifySmsReception>
      <sms7:registrationIdentifier>
      </sms7:registrationIdentifier>
      <sms7:message>
        <message>002160</message>
        <senderAddress>tel:15366169766</senderAddress>
        <smsServiceActivationNumber>tel:1065967007</smsServiceActivationNumber>
      </sms7:message>
    </sms7:notifySmsReception>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>[/size]

解决方案 »

  1.   

    在你开发好的WEBSERVICE服务后面加个参数就可以看见wsdl了例如:WebserviceURL/wsdl
      

  2.   

    我开发好的webService实现不了这种格式啊
      

  3.   

    我只能产生这样的
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
        <NotifySOAPHeader xmlns="http://127.0.0.1:8080/SendSmsService.asmx">
          <spRevId>string</spRevId>
          <spRevpassword>string</spRevpassword>
          <spId>string</spId>
          <SAN>string</SAN>
        </NotifySOAPHeader>
      </soap:Header>
      <soap:Body>
        <NotifySmsReception xmlns="http://127.0.0.1:8080/SendSmsService.asmx">
          <registrationIdentifier>string</registrationIdentifier>
          <message>string</message>
          <senderAddress>string</senderAddress>
          <smsServiceActivationNumber>string</smsServiceActivationNumber>
        </NotifySmsReception>
      </soap:Body>
    </soap:Envelope>