2011-06-18 154 views
0

在我的java程序中,我需要調用部署在遠程服務器上的SOAP Web服務。使用java調用soap web服務

在網絡中探索時看起來有幾種不同的方法。 但我想知道在開發者世界中目前使用的更多。

還有一種方法可以使用Spring或axis或xfire來調用SOAP Web服務。

在此先感謝您的意見。

+0

可能的重複http://stackoverflow.com/questions/4585842/whats-the-best-and-most-comprehencive-soap-library-available-with-relation-toque –

回答

1

對於春季,您可以查看http://static.springsource.org/spring-ws/site/reference/html/client.html獲取客戶信息。

當我編寫SOAP web服務時,我傾向於現在使用jax-ws,尤其是現在它隨JDK6一起安裝。

對於一個教程,你可以看看http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/JAXWS.html

我喜歡它,因爲它使用了註釋,所以比使用軸更簡單。

如果你使用Spring,那麼使用他們的web服務選項將是你最好的選擇。