ByteArrayInputStream bais = new ByteArrayInputStream(xml.getBytes());
String sURL = "http://" + args[0] + ":" + args[1] + "/axis/services/ElementService" ;
QName sqn = new QName(sURL, "ElementService" );
QName pqn = new QName(sURL, "ElementService" );
//Service service=new Service(new URL("file:ElementService.wsdl"),sqn);
Service service = new Service(new URL(sURL+"?wsdl"),sqn);
Call call = (Call) service.createCall( pqn, "echoElement" );
Options opts = new Options(args);
opts.setDefaultURL( call.getTargetEndpointAddress() );
call.setTargetEndpointAddress( new URL(opts.getURL()) );
Element elem = XMLUtils.newDocument(bais).getDocumentElement();
elem = (Element) call.invoke( new Object[] { "a string", elem } );
return( XMLUtils.ElementToString( elem ) );