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

» JWorld@TW » Java Application Framework » Spring  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:Spring Remote Services part2 Web services using SOAP [Re:chih0812]
chih0812





發文: 629
積分: 0
於 2009-06-16 17:59 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
我寫了一個簡單的 HelloWS (web service) 在遠端

然後在本機設定
1
2
3
4
5
6
7
8
9
10
11
  <bean id="citationService"
    class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean">
    
    <property name="wsdlDocumentUrl"
      value="http://172.16.38.191:7001/NotificationWS/HelloWS?WSDL">
    </property>
    
    <property name="serviceInterface"
      value="com.springinaction.chapter08.CitationService">
    </property>
  </bean>


然後有在 com.springinaction.chapter08 的 package 寫上這個 web service 的 method , code 如下:
1
2
3
4
5
6
package com.springinaction.chapter08;
 
public interface CitationService {
 
  String sayHello();
}


但是在啟動 weblogic 或 publish 時,會有下面 exception...
1
2
3
4
5
6
7
org.codehaus.xfire.XFireRuntimeException: Could not find port type {http://temp}HelloWSServicePortType
  at org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.setWrapped(WSDLServiceConfigurator.java:138)
  at org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.<init>(WSDLServiceConfigurator.java:83)
  at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:243)
  at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:193)
  at org.codehaus.xfire.spring.remoting.XFireClientFactoryBean.makeClient(XFireClientFactoryBean.java:504)
  Truncated. see log file for complete stacktrace


(temp 是我在遠端的 web service 的 package name)
請問是少了什麼設定嗎?


reply to postreply to post
SCJP, SCWCD, SCBCD, NCLP, OCUP
話題樹型展開
人氣 標題 作者 字數 發文時間
4361 Spring Remote Services part2 Web services using SOAP uxa 2403 2007-12-14 14:13
4024 Re:Spring Remote Services part2 Web services using SOAP uxa 1024 2007-12-17 15:24
2217 Re:Spring Remote Services part2 Web services using SOAP chih0812 284 2009-06-16 15:38
2419 Re:Spring Remote Services part2 Web services using SOAP chih0812 1424 2009-06-16 17:59
» JWorld@TW »  Java Application Framework » Spring

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