JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java & XML、Web Service » Web Services  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Web Services client使用cxf
precise1





發文: 8
積分: 0
於 2015-08-14 13:01 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Web Services

<wsdl:types>
<s:schema targetNamespace="http://tempuri.org" elementFormDefault="qualified">
<s:element name="InsertLog">
<s:complexType>
<s:sequence>
     <s:element name="UserName" type="s:string" maxOccurs="1" minOccurs="0"/>
     <s:element name="Action" type="s:string" maxOccurs="1" minOccurs="0"/>
<s:element name="ActionDescription" type="s:string" maxOccurs="1" minOccurs="0"/>
</s:sequence>
  </s:complexType>
</s:element>
<wsdl:binding name="AdmTraceLogMessageSoap12" type="tns:AdmTraceLogMessageSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="InsertLog">
<soap12:operation style="document" soapAction="http://tempuri.org/InsertLog" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>

</wsdl:binding>  

  protected void callWebService(String action, String queryString,String dataCount,String searchResult,String actionDescription) {
    try{
      PageHandler handler = (PageHandler)FacesContext.getCurrentInstance()
          .getApplication().getELResolver().getValue(FacesContext.getCurrentInstance()
              .getELContext(), null, "pageHandler");
      
      
      
      String userName = SysInfo.getUserName();
      String excutedTime = SysInfo.getNow("yyyy-MM-dd hh:mm:ss.sss");
      String systemPlatform="FEDIFXML";
      
      JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
      factory.setServiceClass(IAdm.class);
      factory.setAddress("http://10.20.231.159/AdmTraceLogMessageWS/");
      factory.create(IAdm.class);
      
     IAdm service =(IAdm)factory.create();
      
    }catch(Exception ex){
      logger.debug("DB FAIL");
      ex.printStackTrace();
    }
  }

package com.uec.webservice;

import javax.jws.WebService;

@WebService
public interface IAdm {

}

請問該如何處理Web Services client wsdl參數部分?


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
904 Web Services client使用cxf precise1 1971 2015-08-14 13:01
» JWorld@TW »  Java & XML、Web Service » Web Services

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8