2016-10-21 6 views
3

Webサービスを作成したいと思いますし、作業中のプロジェクトに基づいてプロジェクトを作成します。 StormとBoomerang-SOAP & RESTクライアントで動作します。 ブーメランはそのような要求を生成:メッセージ部分のMyClassが認識されませんでした。 (サービスWSDLには存在しますか?)

<x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wse="http://wservices.yt/"> 
    <x:Header/> 
    <x:Body> 
     <wse:PerformTransaction> 
      <request> 
       <password>?</password> 
       <username>?</username> 
       <amount>0</amount> 
       <parameters> 
        <paramKey>?</paramKey> 
        <paramValue>?</paramValue> 
       </parameters> 
       <serviceId>0</serviceId> 
       <transactionId>0</transactionId> 
       <transactionTime>2016-10-19T00:00:00</transactionTime> 
      </request> 
     </wse:PerformTransaction> 
    </x:Body> 
</x:Envelope> 

、それは通常の働いているが、私は怒鳴る要求を取得する必要があります。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> 
    <soapenv:Body> 
     <ns1:PerformTransactionArguments xmlns:ns1="http://wservices.yt/" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:type="ns1:PerformTransactionArguments"> 
      <password>12345</password> 
      <username>test</username> 
      <amount>150000</amount> 
      <parameters> 
       <paramKey>customer_id</paramKey> 
       <paramValue>6324357</paramValue> 
      </parameters> 
      <parameters> 
       <paramKey>pin</paramKey> 
       <paramValue>12345678</paramValue> 
      </parameters> 
      <serviceId>1</serviceId> 
      <transactionId>437</transactionId> 
      <transactionTime>2011-04-26T18:07:22</transactionTime> 
     </ns1:PerformTransactionArguments> 
    </soapenv:Body> 
</soapenv:Envelope> 

私は、Webサービスへの第2のリクエストでテストする場合、それはエラーを取得しておくです。クラスはperformTransactionArgumentsとして書き込まれwsdl

Message part PerformTransactionArguments was not recognized. (Does it exist in service WSDL?)

。私はこれをどのように解決するか分かりません(私が最初に遭遇したのはsoap & wsdlです)。私は約1週間駄目に過ごしましたので、私に問題を解決するのを助けてください。

私は多くの類似の質問を見つけましたが、解決策は見つかりませんでした。 それらの1:exception when trying to call webservice

一片のコードのか、私は見ることができます設定であれば、今私はここにあなたが操作(PerformTransactionArguments)を呼んでいる

答えて

2

を追加するかわからない存在しません。 。最初のクエリ(PerformTransaction)は既にあなたのwsdlコントラクトにあるかもしれないのでうまくいきます。

関連する問題