axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guo Tianchong" <gu...@nec-as.nec.com.cn>
Subject How to generate customer Java Class
Date Wed, 21 Jan 2009 02:03:04 GMT
hi, all

I know the request/response SOAP message

ex:
==>request SOAP body is:
<soap:Envelope ...>
  <soap:Body>
    <cwmp:Inform>
      <cwmp:DeviceId>
        <cwmp:Manufacturer>ABC</cwmp:Manufacturer>
        <cwmp:OUI>ABC</cwmp:OUI>
      </DeviceId>
      <cwmp:Event soapenc:arrayType="cwmp:EventStruct[2]">
        <cwmp:EventStruct>
          <cwmp:EventCode>0 BOOTSTRAP<cwmp:EventCode>
          <cwmp:CommandKey>0</cwmp:CommandKey>
        </cwmp:EventStruct>
        <cwmp:EventStruct>
          <cwmp:EventCode>1 BOOTSTRAP<cwmp:EventCode>
          <cwmp:CommandKey>1</cwmp:CommandKey>
        </cwmp:EventStruct>
      </cwmp:Event>
    </cwmp:Inform>
  </soap:Body>
</soap:Envelope>

==>response SOAP body is
<soap:Envelope ...>
  <soap:Body>
    <cwmp:InformResponse>
      <cwmp:MaxEvenlopes xsi:type="xsdUnsignedInt">1</cwmp:MaxEvenlopes>
    </cwmp:InformResponse>
  </soap:Body>
</soap:Envelope>

And I have the cwmp's xsd file.
Then, how to generate customer Java Class for my servce's opertion?

My Servce's opertion likes 
public ? inform(DeviceId device, EventStruct[] event) {...}

Thanks!

Guo







Mime
View raw message