using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Services.Description;
[WebService(Namespace = "ment the following line if using designed components
//InitializeComponent();
}
//下面的引用關系必須加----begin
[SoapRpcMethod(Action = ".URL(endpoint));
//設置要調用的方法
call.setOperationName( new QName( "http://hoteamsoft.org/T","HelloWorld1" ));
//設置該方法需要的參數
call.addParameter("obj" , org.apache.axis.encoding.XMLType.XSD_STRING,
javax.xml.rpc.ParameterMode.IN);
//設置方法返回值的類型 call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.setUseSOAPAction(true);
//調用該方法
call.setSOAPActionURI("http://hoteamsoft.org/HelloWorld1");
String backStr = (String) call.invoke(new Object[] { xmlString });
System.out.println("sss"+backStr);
} catch (Exception e) {
e.printStackTrace();
return e.toString();
}
}