?? documentstyletest.java
字號:
package org.codehaus.xfire.xmlbeans;import org.codehaus.xfire.service.Service;import org.codehaus.xfire.soap.SoapConstants;import org.jdom.Document;/** * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a> */public class DocumentStyleTest extends AbstractXmlBeansTest{ private Service endpoint; public void setUp() throws Exception { super.setUp(); endpoint = getServiceFactory().create(TestService.class, "TestService", "urn:TestService", null); getServiceRegistry().register(endpoint); } public void testInvoke() throws Exception { Document response = invokeService("TestService", "/org/codehaus/xfire/xmlbeans/DocumentStyleRequest.xml"); assertNotNull(response); addNamespace("x", "http://codehaus.org/xfire/xmlbeans"); assertValid("//s:Body/x:response/x:form", response); } public void testWSDL() throws Exception { Document wsdl = getWSDLDocument("TestService"); addNamespace("xsd", SoapConstants.XSD); assertValid("//xsd:schema[@targetNamespace='urn:TestService']" + "/xsd:element[@name='string'][@type='xsd:string']", wsdl); }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -