You need to use the wsdl file rather than the SOAP messages to generate
classes.


---------------------------------------
Kamal Mettananda
http://lkamal.blogspot.com


On Wed, Jan 21, 2009 at 7:33 AM, Guo Tianchong <[email protected]>wrote:

> 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
>
>
>
>
>
>
>

Reply via email to