package com.huatech.common;
import java.net.MalformedURLException;
import java.rmi.RemoteException;
import org.apache.axis.client.Service;
import org.apache.axis.client.Call;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.ServiceException;
public class fj {
public static String changeUrl(String uri, String title, String uid){
String endpoint="http://10.22.161.132:8888/MobileService.asmx";
Call call;
String res = "";
Service service = new Service();
try {
call = (Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName("http://tyx.moibleoaservice.org/","cebTotxtWap"));
call.addParameter(new QName("http://tyx.moibleoaservice.org/", "uri"), org.apache.axis.encoding.XMLType.XSD_STRING,ParameterMode.IN);
call.addParameter(new QName("http://tyx.moibleoaservice.org/", "title"), org.apache.axis.encoding.XMLType.XSD_STRING,ParameterMode.IN);
call.addParameter(new QName("http://tyx.moibleoaservice.org/", "uid"), org.apache.axis.encoding.XMLType.XSD_STRING,ParameterMode.IN);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://tyx.moibleoaservice.org/cebTotxtWap");
res =(String)call.invoke(new Object[]{uri,title,uid});
System.err.println("==11=>"+res);
} catch (ServiceException e) {
e.printStackTrace();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}catch (Exception e) {
e.printStackTrace();
}
finally {
}
return res;
}
}