OBIEE - SoapUI - 无法使用 executeXMLQuery 在 SOAP XML 中发送参数
OBIEE - SoapUI - Unable to send a parameter in SOAP XML using executeXMLQuery
我正在使用 SoapUI 向 (OBIEE) Oracle BI EE Web 服务发送请求。
我正在尝试在 OBIEE SOAP 中发送参数 XML。
我正在使用 executeXMLQuery() 方法,并尝试将参数发送到报表,但它不起作用。
我正在尝试像这样在 'variables' 节点中发送参数:
<v6:variables>
<v6:name>PARAMETER_NAME</v6:name>
<v6:value>PARAMETER_VALUE</v6:value>
</v6:variables>
但这不起作用,我做错了什么?
有人可以向我发送有关如何向 XML 中的报告发送参数的示例(有效)吗?
这是我的 SOAP 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>
请帮忙
更新:
谢谢Rao,我修正了一个错误,现在我有以下错误:
line 13: Expected element 'refresh@urn://oracle.bi.webservices/v6' before the end of the content in element executionOptions@urn://oracle.bi.webservices/v6
第13行是</v6:executionOptions>
没看懂,怎么办?
谢谢
谢谢饶!
我在“executionOptions”节点下添加了“refresh”节点,它解决了问题:
<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>
我正在使用 SoapUI 向 (OBIEE) Oracle BI EE Web 服务发送请求。
我正在尝试在 OBIEE SOAP 中发送参数 XML。
我正在使用 executeXMLQuery() 方法,并尝试将参数发送到报表,但它不起作用。
我正在尝试像这样在 'variables' 节点中发送参数:
<v6:variables>
<v6:name>PARAMETER_NAME</v6:name>
<v6:value>PARAMETER_VALUE</v6:value>
</v6:variables>
但这不起作用,我做错了什么?
有人可以向我发送有关如何向 XML 中的报告发送参数的示例(有效)吗?
这是我的 SOAP 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>
请帮忙
更新:
谢谢Rao,我修正了一个错误,现在我有以下错误:
line 13: Expected element 'refresh@urn://oracle.bi.webservices/v6' before the end of the content in element executionOptions@urn://oracle.bi.webservices/v6
第13行是</v6:executionOptions>
没看懂,怎么办?
谢谢
谢谢饶!
我在“executionOptions”节点下添加了“refresh”节点,它解决了问题:
<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>