提交 8d3f3c5a 编写于 作者: 黄勇

【B】修复了 Web Service 单元测试中地址有误的问题

上级 06aa4e48
......@@ -18,7 +18,7 @@ import org.smart4j.plugin.rest.Rest;
import org.smart4j.sample.entity.Product;
@Service
@Rest("/rest/ProductService")
@Rest("/product")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public class ProductService {
......
......@@ -7,7 +7,7 @@ import org.smart4j.plugin.soap.Soap;
import org.smart4j.sample.entity.Product;
import org.smart4j.sample.soap.adapter.StringObjectMapAdapter;
@Soap("/soap/ProductService")
@Soap("/product")
public interface ProductService {
List<Product> getProductList();
......
......@@ -11,7 +11,7 @@ import org.smart4j.sample.rest.ProductService;
public class ProductServiceRESTTest {
private String wadl = "http://localhost:8080/smart-sample/ws/rest/ProductService";
private String wadl = "http://localhost:8080/smart-sample/rest/product";
private ProductService productService = RestHelper.createClient(wadl, ProductService.class);
@Test
......
......@@ -11,7 +11,7 @@ import org.smart4j.sample.soap.ProductService;
public class ProductServiceSOAPTest {
private String wsdl = "http://localhost:8080/smart-sample/ws/soap/ProductService";
private String wsdl = "http://localhost:8080/smart-sample/soap/product";
private ProductService productService = SoapHelper.createClient(wsdl, ProductService.class);
@Test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册