Hi All,

 I want to know how can i access a request that has been sent thru the
message.sent() method ..

for example..
i send my xml document through this soap method

 msg.send (new URL ("http://localserver/soap/messagerouter";),
"urn:testservice", msgEnv);

where msgEnv parsed is a soap xml. which contains the following xml file
<?xml version="1.0" encoding="UTF-8" ?>
 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";>
     <s:Body>
          <name>
          <first>
           XXX
          </first >
         <last>
             YYY
            </last>
          </name>
     </s:Body>
  </s:Envelope>

1) now i need to parse the soap/xml document in the mentod called
doRegister() deployed in urn:testservice.
2)
here is am sample of the method doRegister


public void doRegistration(Envelope env, SOAPContext req, SOAPContext res)
          throws IOException, MessagingException
 {

          try{

          String firstName = null;
          String lastName = null;
          String output =null;

          Vector lovcEntries = env.getEnvelopeEntries();  //trying to get
the xml file contents

                         }


          catch(Exception ex){

               System.out.println("Exception in the RegisterService ::
doRegistration()");

          }
     }

i want to get the first and last name tag's from the SOAP/xml. how do i get
it. but by using the above env.getEnvelopeEntries() i am not able to get
entries. Can anyone suggest me how to parse the Sent xnl fine.

can anyone help me pls....

Thanks,
Kavitha


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to