⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pricingservicetest.java

📁 EJB+Struts+Webservice实现的开放式基金管理系统
💻 JAVA
字号:
package com.fund.fund.generated;

/**
 *
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class PricingServiceTest {
    /**
     * PricingServiceTest
     */
    public PricingServiceTest() {
    }

    /**
     * main
     * @param args String[]
     * @throws Exception e
     */
    public static void main(String[] args) throws Exception {

        com.fund.fund.generated.FundPriceSessionFacadeSoapBindingStub binding;
        try {
            //"http://127.0.0.1:7001/fund/services/FundPriceSessionFacade
            com.fund.fund.generated.FundPriceSessionFacade_ServiceLocator sl
                    = new
                    com.fund.fund.generated.
                    FundPriceSessionFacade_ServiceLocator();
            sl.setFundPriceSessionFacadeEndpointAddress(
            "http://127.0.0.1:7001/fund/services/FundPriceSessionFacade");
            binding = (com.fund.fund.generated.
                       FundPriceSessionFacadeSoapBindingStub)
                      sl.getFundPriceSessionFacade();
        } catch (javax.xml.rpc.ServiceException jre) {
            if (jre.getLinkedCause() != null) {
                jre.getLinkedCause().printStackTrace();
            }
            throw new junit.framework.AssertionFailedError(
                    "JAX-RPC ServiceException caught: " + jre);
        }
        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        double value = -3;
        value = binding.getCurrentPrice(1);

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -