| 
import com.fujitsu.uji.soap.SOAPCallFactory;
import com.fujitsu.uji.soap.UjiServiceCall;
  
public void someMethod(DispatchContext context, XmlDataBean dataBean) {
  private UjiServiceCall call;
  ...
  // CallFactoryの取得
  SOAPCallFactory callFactory=(SOAPCallFactory)context.getCallFactory(CallFactory.SOAP);
  
  // UjiServiceCallの取得
  String url = new String("http://some.host/service");
  if(call == null) {
      call=callFactory.createUjiServiceCall(url,null, SOAPCallFactory.INTERSTAGE_JAXM);
      call.setMaintainSession(true);
  }
  
  // サービスの呼び出し
  XmlDataBean response=(XmlDataBean)call.invoke(dataBean,verb);
  ...
}
 |