?? jibxbindingtest.java
字號:
package org.codehaus.xfire.jibx;
import org.codehaus.xfire.aegis.AbstractXFireAegisTest;
import org.codehaus.xfire.service.Service;
import org.codehaus.xfire.service.invoker.BeanInvoker;
import org.jdom.Document;
public class JibxBindingTest
extends AbstractXFireAegisTest
{
public void testBinding() throws Exception
{
Service service = new JibxServiceFactory().create(AccountService.class, null, "http://xfire.codehaus.org/jibx", null);
service.setInvoker(new BeanInvoker(new AccountServiceImpl()));
getServiceRegistry().register(service);
Document response = invokeService("AccountService", "/org/codehaus/xfire/jibx/getAccountStatus.xml");
addNamespace("a", "http://xfire.codehaus.org/jibx");
assertValid("//s:Body/a:getAccountStatusResponse/a:AccountInfo/a:amount[text()='0']", response);
Document wsdl = getWSDLDocument("AccountService");
printNode(wsdl);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -