如何在Visual Studio的报告服务中为SSRS Web服务构建正确的xmldp查询?
我怀疑发送到Web服务的结构不正确或Web服务中的类型未同步 - 因此我怀疑Web服务从报告服务获得0
或null
。
这是架构:
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="TATEST" targetNamespace="http://namespace.softwareag.com/entirex/xml/mapping" xmlns:tns="http://namespace.softwareag.com/entirex/xml/mapping" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sn0="somenamespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
- <wsdl:types>
- <xsd:schema targetNamespace="somenamespace">
- <xsd:element name="TATESTResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="_PAR1">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="1" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
- <xsd:element name="_PAR2">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="1" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="TATEST">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="_PAR1">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="1" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
- <xsd:element name="_PAR2">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="1" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
……
和来自ssrs的xmldp查询
<Query>
<SoapAction>TATEST</SoapAction>
<Method Name="TATEST" Namespace="somenamespace">
<Parameters>
<Parameter Name="_PAR1">
<DefaultValue>2</DefaultValue>
</Parameter>
<Parameter Name="_PAR2">
<DefaultValue>1</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespace="true">*</ElementPath>
</Query>