2016-08-15 7 views
0

SoapUIを使用して(OBIEE)Oracle BI EE Web Servicesにリクエストを送信しています。OBIEE - SoapUI - executeXMLQueryを使用してSOAP XMLでパラメータを送信できません

OBIEE SOAP XMLでパラメータを送信しようとしています。

私はexecuteXMLQuery()メソッドを使用しており、パラメータをレポートに送信しようとしていますが、動作しません。

私はそうのような「変数」ノードにパラメータを送信しようとしています:

<v6:variables> 
    <v6:name>PARAMETER_NAME</v6:name> 
    <v6:value>PARAMETER_VALUE</v6:value> 
</v6:variables> 

しかし、これは動作しません、私が間違って何をやっていますか?

XMLでレポートにパラメータを送信する方法の例を教えてもらえますか?私は、次の応答を取得

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v6="urn://oracle.bi.webservices/v6"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <v6:executeXMLQuery> 
     <v6:report> 
      <v6:reportPath>/shared/XXXXXX/Projects details</v6:reportPath> 
      <v6:reportXml></v6:reportXml> 
     </v6:report> 
     <v6:outputFormat></v6:outputFormat> 
     <v6:executionOptions> 
      <v6:async>false</v6:async> 
      <v6:maxRowsPerPage>500</v6:maxRowsPerPage> 
     </v6:executionOptions> 
     <v6:reportParams> 
      <!--Zero or more repetitions:--> 
      <v6:filterExpressions> 
      </v6:filterExpressions> 
      <!--Zero or more repetitions:--> 
      <v6:variables> 
       <v6:name>Project Name</v6:name> 
       <v6:value>XXXX</v6:value> 
      </v6:variables> 
     </v6:reportParams> 
     <v6:sessionID>XXXX</v6:sessionID> 
     </v6:executeXMLQuery> 
    </soapenv:Body> 
</soapenv:Envelope> 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:saw-SOAP="com.siebel.analytics.web/soap/v6"> 
    <soap:Body> 
     <soap:Fault> 
     <faultcode>soap:Server</faultcode> 
     <faultstring>Sax parser returned an exception. 
Message: Invalid document structure, Entity publicId: , Entity systemId: , Line number: 2, Column number: 4</faultstring> 
     <detail> 
      <sawsoape:Error xmlns:sawsoape="com.siebel.analytics.web/soap/error/v1"> 
       <sawsoape:Code>UH6MBRBC</sawsoape:Code> 
       <sawsoape:Message>Sax parser returned an exception. 
Message: Invalid document structure, Entity publicId: , Entity systemId: , Line number: 2, Column number: 4</sawsoape:Message> 
       <sawsoape:File>project/webxml/saxreader.cpp</sawsoape:File> 
       <sawsoape:Line>681</sawsoape:Line> 
       <sawsoape:LogSources> 
        <sawsoape:LogSource>saw.soap.xmlviewservice</sawsoape:LogSource> 
        <sawsoape:LogSource>saw.SOAP</sawsoape:LogSource> 
        <sawsoape:LogSource>saw.httpserver.request.soaprequest</sawsoape:LogSource> 
        <sawsoape:LogSource>saw.rpc.server.responder</sawsoape:LogSource> 
        <sawsoape:LogSource>saw.rpc.server</sawsoape:LogSource> 
        <sawsoape:LogSource>saw.rpc.server.handleConnection</sawsoape:LogSource> 
        <sawsoape:LogSource>saw.rpc.server.dispatch</sawsoape:LogSource> 
        <sawsoape:LogSource>saw.threadpool.socketrpcserver</sawsoape:LogSource> 
        <sawsoape:LogSource>saw.threads</sawsoape:LogSource> 
       </sawsoape:LogSources> 
       <sawsoape:Error> 
        <sawsoape:Code>E6MUPJPH</sawsoape:Code> 
        <sawsoape:Message>Xml parsed:</sawsoape:Message> 
       </sawsoape:Error> 
      </sawsoape:Error> 
     </detail> 
     </soap:Fault> 
    </soap:Body> 
</soap:Envelope> 

が助けてください

は、ここに私のSOAP XMLです。

更新:
おかげラオ、私は今、私は次のエラーを持って、1つのミスを修正:

line 13: Expected element '[email protected]://oracl‌​e.bi.webservices/v6' before the end of the content in element [email protected]‌​://oracle.bi.webservi‌​ces/v6 

13行目、私は何をすべき、私は理解していない</v6:executionOptio‌​ns>のですか?

ありがとう

+1

'Altキー+ v'かの右クリックでを使用してリクエストを検証してみますリクエストエディタ。 – Rao

+0

ありがとうRao、 私は1つの間違いを修正しました。次のエラーが発生しました: 'line 13:要素 'executionOptions @ urnのコンテンツの最後の前にrefresh @ urn://oracle.bi.webservices/v6' :// oracle.bi.webservices/v6' 行13は ' 'です 私は理解できません、どうすればよいですか? – Asaf

+1

これは、executionOptionsが閉じられる前にリフレッシュ要素が必要であることを示します。任意の要素で新しいリクエストを作成することもできます。試してみてください。 – Rao

答えて

0

ありがとうRao!

私は「executionOptions」ノードの下にある「リフレッシュ」ノードを追加し、それが問題を解決し:

 <v6:executionOptions> 
     <v6:async>false</v6:async> 
     <v6:maxRowsPerPage>500</v6:maxRowsPerPage> 
     <v6:refresh>false</v6:refresh> 
     <v6:presentationInfo>false</v6:presentationInfo> 
     <v6:type></v6:type> 
    </v6:executionOptions> 
+0

あなた自身の答えを受け入れて、質問が開いていないようにしてください。ありがとう。 –

関連する問題