Dear experts,

 

I am trying to invoke the modified MessageService (see below) using

 

     call.invoke(mydoc);

 

where mydoc is of Document type. However, I got a compilation error because the above signature doesn’t exist in the org.apache.axis.client.Call definition. 
 
Is there anybody who knows how to invoke my service passing a DOM Document object? Thanks a lot,
 
Hui Xiao

 

 

package samples.message ;

 

import org.w3c.dom.Document;

 

/**

 * Simple message-style service sample.

 */

public class MessageService {

    /**

     * Service method, which simply echoes back any XML it receives.

     *

     * @param elems an array of DOM Elements, one for each SOAP body element

     * @return an array of DOM Elements to be sent in the response body

     */

    public Document echoElements(Document doc) {

        return doc;

    }

}

 

Reply via email to