- PR -

Webサービスから送られてくるDataSetのJavaにおける取り扱い。

1
投稿者投稿内容
type
会議室デビュー日: 2007/11/17
投稿数: 1
投稿日時: 2007-11-17 06:06
C#で作成されたWebServiceからDataSetが出力されてきます。
クライアント側のソフトをJavaで作成しているのですがDataSetの扱いに困っています。

http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=41558&forum=12&1

上記の場合と同じようにDataSetからXMLをクライアントで構築しようとしています。

>//出力パラメータ用DataSet定義
>TestMethodResponseTestMethodResult myOutputDataSet;
>//WebService呼出
>myOutputDataSet = myService.testMethod(myInputDS);
>//出力用DataSetの取り出し
>Document myXmlDocument = myOutputDataSet.get_any()[1].getAsDocument();

しかし、
System.out.println(myXmlDocument);
に対して、
[#document: null]
となっていまい、Documentがnullになってしまいます。

System.out.println(myOutputDataSet.get_any()[1].getChildren());
とすると、Listがきちんと出力されます。

getAsDocument()によりnullになってしまう原因が分かる方はいらっしゃいますでしょうか。
よろしくお願い致します。
_________________
1

スキルアップ/キャリアアップ(JOB@IT)