[Seasar-user:15532] Re: [S2Axis2] プロキシーサーバの指定

松山 大樹 [E-MAIL ADDRESS DELETED]
2008年 8月 27日 (水) 13:12:37 JST


松山です。

> また、YahooのWebサービスだと、
> 通信形式はRESTになると思いますが、
> クライアント側のConnectorは、RESTConnectorを指定していますでしょうか?

すみません。RESTConnector になっていませんでした。
で、RESTConnector に変更してみたところ、

-----------------------------------------------------------
org.seasar.remoting.axis2.client.S2AxisClientException: [EAXS1002]サービスの呼び出しに失敗しました :
Address: http://news.yahooapis.jp/NewsWebService/V1/yahooNewsService
	at org.seasar.remoting.axis2.connector.AbstractRPCConnector.invoke(AbstractRPCConnector.java:133)
	at
org.seasar.remoting.common.connector.impl.TargetSpecificURLBasedConnector.invoke(TargetSpecificURLBasedConnector.java:105)
	at org.seasar.remoting.common.interceptor.RemotingInterceptor.invoke(RemotingInterceptor.java:84)
    :
    :
Caused by: java.lang.IllegalArgumentException: The MessageContext does not have an associated SOAPFault.
	at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:478)
	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
-----------------------------------------------------------

となってしまいました。

http://s2axis.seasar.org/ja/s2axis2/examples.html#rest
の通りに、dicon を書いているのですが。

ひとつ気になるのが、呼び出しているアドレスが、
http://news.yahooapis.jp/NewsWebService/V1/yahooNewsService
となってしまっている部分です。
dicon ファイルの、baseURL には、http://news.yahooapis.jp/NewsWebService/V1/Topics と記述して
いるのですが。
最後の、yahooNewsService は、こちらで作成したインターフェースの名前です。



-------------- next part --------------
A non-text attachment was scrubbed...
Name: yahooNewsService.dicon
Type: text/xml
Size: 1456 bytes
Desc: 無し
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20080827/fa3dccef/attachment-0001.xml>


Seasar-user メーリングリストの案内