import com.fujitsu.uji.soap.SOAPCallFactory;
import com.fujitsu.uji.soap.UjiServiceCall;
public void someMethod(DispatchContext context, XmlDataBean dataBean) {
...
// CallFactoryの取得
SOAPCallFactory callFactory=(SOAPCallFactory)context.getCallFactory(CallFactory.SOAP);
// UjiServiceCallの取得
String url = new String("http://some.host/service");
UjiServiceCall call =callFactory.createUjiServiceCall(url,"urn:foobar", SOAPCallFactory.INTERSTAGE);
call.setProxy("proxyaddress", port, "username", "password");
// サービスの呼び出し
XmlDataBean response=(XmlDataBean)call.invoke(dataBean,verb);
...
}
|