论坛首页 Java版 SOA

WebService开发笔记 1 -- 利用cxf开发WebService竟然如此简单

浏览 5398 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
最后更新时间:2008-04-22
我之前对这个理解错误了,目前我的实践问题如下,如果实现一个返回List类型的接口,可以获得list的大小,但是list里的对象都为空;如果用楼主的listobject来封装,在执行listobject.getList()方法时,取得的为空
不知道这个应该怎么解决,谢谢!
   
0 请登录后投票
最后更新时间:2008-04-22
异常如上
   
0 请登录后投票
最后更新时间:2008-04-23
居然每个方法的请求和返回值都包装成类型……太变态了
   
0 请登录后投票
最后更新时间:2008-09-08
为什么我得到的wsdl没有element的具体描述 ,好像userUTO文件和ListObject文件的注释没有起作用啊 谢谢大家帮忙看看
  <?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="WebServiceSampleImplService" targetNamespace="http://impl.cxf.prince.com/" xmlns:ns1="http://cxf.prince.com/" xmlns:ns2="http://cxf.apache.org/bindings/xformat" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://impl.cxf.prince.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:import location="http://localhost:8080/cxfjaxb/WebServiceSample?wsdl=WebServiceSample.wsdl" namespace="http://cxf.prince.com/" />
- <wsdl:message name="sayUserNameResponse">
  <wsdl:part element="ns1:sayUserNameResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="sayResponse">
  <wsdl:part element="ns1:sayResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="findUsersResponse">
  <wsdl:part element="ns1:findUsersResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="say">
  <wsdl:part element="ns1:say" name="parameters" />
  </wsdl:message>
- <wsdl:message name="sayUserName">
  <wsdl:part element="ns1:sayUserName" name="parameters" />
  </wsdl:message>
- <wsdl:message name="findUsers">
  <wsdl:part element="ns1:findUsers" name="parameters" />
  </wsdl:message>
- <wsdl:binding name="WebServiceSampleImplServiceSoapBinding" type="ns1:WebServiceSample">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="sayUserName">
  <soap:operation soapAction="" style="document" />
- <wsdl:input name="sayUserName">
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="sayUserNameResponse">
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="findUsers">
  <soap:operation soapAction="" style="document" />
- <wsdl:input name="findUsers">
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="findUsersResponse">
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="say">
  <soap:operation soapAction="" style="document" />
- <wsdl:input name="say">
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="sayResponse">
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="WebServiceSampleImplService">
- <wsdl:port binding="tns:WebServiceSampleImplServiceSoapBinding" name="WebServiceSampleImplPort">
  <soap:address location="http://localhost:8080/cxfjaxb/WebServiceSample" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
   
0 请登录后投票
论坛首页 Java版 SOA

跳转论坛:
JavaEye推荐