473,378 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

XML WebSvc Proxy Code Syntax Questions

rJ
I performed wsdl on SQL2000 reporting service and have a question regarding
the 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("Res ult",
DataType:="base64Binary")> Byte().
What does this mean? Thank you.
<BEGIN SNIPPET>
..
..
..
<System.Web.Services.Protocols.SoapHeaderAttribute ("SessionHeaderValue",
Direction:=System.Web.Services.Protocols.SoapHeade rDirection.InOut),
_System.Web.Services.Protocols.SoapHeaderAttribute ("ServerInfoHeaderValue",
Direction:=System.Web.Services.Protocols.SoapHeade rDirection.Out),
_System.Web.Services.Protocols.SoapDocumentMethodA ttribute("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.SoapBindingUs e.Literal,
ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.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("Res ult",
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.
..
..
..
Jun 20 '06 #1
2 1456
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."

Jun 21 '06 #2
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.)

Jun 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: SpOiLeR | last post by:
Hello! I have a matrix class like this: class MyObject; // MyMatrix is contains MyObjects class MyMatrix { public: ...
3
by: Vai2000 | last post by:
Hi All, I have a box outside the DMZ that calls my WebSvc 's. I have 2 boxes running the WebSvc's though one is like backup (so both don't run concurrent). Incase of outage when the first box is...
1
by: David Lojudice S. | last post by:
1
by: Vai2000 | last post by:
If I edit a proxy of web service in my asp.net application do I need to recompile the ASPX Project? If not then how will the change get in affect? TIA
3
by: Bob Powell [MVP] | last post by:
It's not often I ask questions but here goes... I am writing a site that does Instant Payment Notification processing through PayPal and I need to use HttpWebRequest to hit an HTTPS server at...
0
by: Steve Podradchik | last post by:
Hi, We have a commercial app that downloads data from various Web pages (not via a Web Service, per se) and parses the data from the response. The code below works fine most of the time but, in...
3
by: kieran | last post by:
Hi, I am trying to download a file from the Internet. The below code works fine with no proxy server but I am behind a proxy server at work and need to figure out how to include it in the code....
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
0
by: etnaelk | last post by:
Hi all, I have a real bugger of a problem that I just haven't been able to figure out. I am working on writing my own proxy server in C# using TcpListener, TcpClient, HttpWebRequest/Response and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.