0

私はJavaでWebサービスを書きました。

public List<ReflexFundInfo> method(List<Integer> Ids ) {
        List<Object> list = new ArrayList<Object>();
            //added few elements on that array
            return list;        
        }

これがLISTをメソッドに渡す正しい方法かどうかを確認したいだけですか?SOAPメッセージを確認すると、次のようになります。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dmo="http://com.test.org" xmlns:dfow="http://localhost:7011/LMX_WEB/services/WebServiceTest">
   <soapenv:Header/>
   <soapenv:Body>
      <dmo:method>
         <dmo:Ids>
            </dmo:Ids>
      </dmo:method>
   </soapenv:Body>
</soapenv:Envelope>

基本的に、SOAPUI Tool を使用して Web サービスをテストしています。

4

1 に答える 1

0

あなたのメソッドは入力としてListofを受け取り、 ofintegersを返します。これがあなたの意図であれば、あなたは正しいことをしています。ListReflexFundInfo

于 2013-06-07T06:58:40.937 に答える