|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
XML WebSvc Proxy Code Syntax Questionsthe following proxy class. Right before render procedure declaration you have code that looks like html or xml. What is this, how does compiler and application interpret at run time, and how do I read it and understand what I should specify if I were to write something similar. Also, the public function declaration has a return value of As <System.Xml.Serialization.XmlElementAttribute("Result", DataType:="base64Binary")> Byte(). What does this mean? Thank you. <BEGIN SNIPPET> .. .. .. <System.Web.Services.Protocols.SoapHeaderAttribute("SessionHeaderValue", Direction:=System.Web.Services.Protocols.SoapHeaderDirection.InOut), _System.Web.Services.Protocols.SoapHeaderAttribute("ServerInfoHeaderValue", Direction:=System.Web.Services.Protocols.SoapHeaderDirection.Out), _System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render" & _"", RequestNamespace:="http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices", ResponseNamespace:="http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function Render(ByVal Report As String, ByVal Format As String, ByVal HistoryID As String, ByVal DeviceInfo As String, ByVal Parameters() As ParameterValue, ByVal Credentials() As DataSourceCredentials, ByVal ShowHideToggle As String, ByRef Encoding As String, ByRef MimeType As String, ByRef ParametersUsed() As ParameterValue, ByRef Warnings() As Warning, ByRef StreamIds() As String) As <System.Xml.Serialization.XmlElementAttribute("Result", DataType:="base64Binary")> Byte() Dim results() As Object = Me.Invoke("Render", New Object() {Report, Format, HistoryID, DeviceInfo, Parameters, Credentials, ShowHideToggle}) Encoding = CType(results(1), String) MimeType = CType(results(2), String) ParametersUsed = CType(results(3), ParameterValue()) Warnings = CType(results(4), Warning()) StreamIds = CType(results(5), String()) Return CType(results(0), Byte()) End Function. .. .. .. Hi RJ,
We have reviewed this issue and are currently researching on it. We will update you ASAP. Thanks for your patience! Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." Hi RJ,
These are the attributes in the <>. They defines how your objects are serialized to SOAP. You can try to search in MSDN for each attribute name, like SoapHeaderAttribute, to see what it stands for. For example, XmlElementAttribute indicates that a public field or property represents an XML element when the XmlSerializer serializes or deserializes the object that contains it. XmlElementAttribute("Result", DataType:="base64Binary")> means the property will be serialized to an xml element. The name for the element is "Result", and its value is serialized to a base64Binary string. Kevin Yu Microsoft Online Community Support ============================================================================ ========================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ============================================================================ ========================== (This posting is provided "AS IS", with no warranties, and confers no rights.)
Write to an XML file using data from an SQLserver table
Master Page Template difference between imports-implements-inherits DataBinding with Unbound Columns and calling EndCurrentEdit ListBox Problem firing a dts package's execution How To Show Partial Classes as a Hierarchy in Solution Explorer? newbie script question Passing a parameter Collection Slow UI |
|||||||||||||||||||||||