Hi group!

I have a requirement to have my SOAP client send a SOAP message with a body
that looks like the following:

<soapenv:Body>
                <m:Request
xmlns:m="http://example.com/TransHandler.Request";>
                        <m:RequestData>
                                <transcode>Add</transcode>
                                <modelnum>99999999</ modelnum >
                                <SendConfirm>y</ SendConfirm >
                                <featurelist>
                                <featurecode featureactioncode="add">feature
1</featurecode>
                                <featurecode featureactioncode="add">feature
2</featurecode>
                                <featurecode featureactioncode="add">feature
3 </featurecode>
                                </featurelist>
            </m:RequestData>
                </m:Request>
        </soapenv:Body>

... where featurelist can occur 0..* times, and, for the example line:
      <featurecode featureactioncode="add">feature 1</featurecode>
   
    ... "featureactioncode" is an 'attribute' that has the value of "add"
    and "feature 1"  is the value for that overall featurelist item,

Q.1: how do I represent this (especially the featurelist member) in a Java
Class?

Q.2: how do I set the value for the featureactioncode 'attribute' using
apache 2.2 soap api calls like:

    Vector params = new Vector();
    params.addElement(new Parameter("RDobj", RDobj.class, my_rdobj, null));
    call.setParams(params);

    ...I just get the feeling, that something's missing in those 3 lines of
code that would tell the api that I have an 'attribute' associated with the
data I need to send, but the api javadocs are sparse on the details about
method functionality.

Any insight you may have is greatly appreciated!  

Regards,
Paula Young
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 



<<attachment: winmail.dat>>

Reply via email to