You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "sachin.mobite" <sa...@gmail.com> on 2009/02/02 06:50:48 UTC

doubt regarding adding sub node or child node?

Hi All,

Please forgive a newbie question :)


I am using below mentioned java coding


call.setOperationName("SubmitReq");
            call.addParameter("Version", XMLType.XSD_STRING,
                    ParameterMode.IN);
            // call.addParameter("SenderIdentification", XMLType.XSD_STRING,
            // ParameterMode.IN);
            call.addParameter("Address", XMLType.XSD_STRING,
                    ParameterMode.IN);
          call.addParameter("Priority", XMLType.XSD_STRING,
ParameterMode.IN);


So the SOAP messages output comes like that

<env:Body>
   <ns1:SubmitReq xmlns:ns1="http://www.----------------">
      <Version>5.3.0</Version>
      <SenderIdentification>
       </SenderIdentification>
      <Address>india</Address>
      <Priority>Normal</Priority>
    </ns1:SubmitReq>
</env:Body>


What shall i do to add *Address* as *SenderIdentifications *child node? so
that my SOAP messages output would look like...

<env:Body>
   <ns1:SubmitReq xmlns:ns1="http://www.----------------">
      <Version>5.3.0</Version>
     * <SenderIdentification>
      <Address>india</Address>
      </SenderIdentification> *
      <Priority>Normal</Priority>
    </ns1:SubmitReq>
</env:Body>


Please suggest

Any link to tutorial regarding Axis API's ?
-- 
Regards,
Sachin Parnami