473,799 Members | 3,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Ser ialization.XmlE lementAttribute ("Result",
DataType:="base 64Binary")> Byte().
What does this mean? Thank you.
<BEGIN SNIPPET>
..
..
..
<System.Web.Ser vices.Protocols .SoapHeaderAttr ibute("SessionH eaderValue",
Direction:=Syst em.Web.Services .Protocols.Soap HeaderDirection .InOut),
_System.Web.Ser vices.Protocols .SoapHeaderAttr ibute("ServerIn foHeaderValue",
Direction:=Syst em.Web.Services .Protocols.Soap HeaderDirection .Out),
_System.Web.Ser vices.Protocols .SoapDocumentMe thodAttribute(" http://schemas.microso ft.com/sqlserver/2003/12/reporting/reportingservic es/Render"
& _"",
RequestNamespac e:="http://schemas.microso ft.com/sqlserver/2003/12/reporting/reportingservic es",
ResponseNamespa ce:="http://schemas.microso ft.com/sqlserver/2003/12/reporting/reportingservic es",
Use:=System.Web .Services.Descr iption.SoapBind ingUse.Literal,
ParameterStyle: =System.Web.Ser vices.Protocols .SoapParameterS tyle.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 DataSourceCrede ntials, 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.Ser ialization.XmlE lementAttribute ("Result",
DataType:="base 64Binary")> Byte()

Dim results() As Object = Me.Invoke("Rend er", 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 1499
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 SoapHeaderAttri bute, to see what it stands for.

For example, XmlElementAttri bute indicates that a public field or property
represents an XML element when the XmlSerializer serializes or deserializes
the object that contains it.

XmlElementAttri bute("Result", DataType:="base 64Binary")> 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
3528
by: SpOiLeR | last post by:
Hello! I have a matrix class like this: class MyObject; // MyMatrix is contains MyObjects class MyMatrix { public: ...
3
1525
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 not responding I want to call the WebSvc from the Box No.2 How do I accomplish that..? Q. How can I detect that my WS on Box1 is down? Q how can I call WS from Box2?
1
5962
by: David Lojudice S. | last post by:
1
1091
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
10539
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 their site to verify a transaction. The trouble is that the site I'm hosting on uses a proxy and a port for https so I have to make the request use this instead. I would normally do this....
0
1869
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 some corporate environments -- esp. those with Proxy servers -- the app fails to get the page. That is, it isn't just that the app doesn't logon to the proxy but, in many cases, that, as far as we can tell, the app makes a request using a...
3
2265
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. <code> Dim wc As New System.Net.WebClient wc.DownloadFile("http://www.google.ie/images/hp0.gif", _ "C:\inetpub\wwwroot\bin\google.gif")
9
3222
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. What it does is to call a webservice with two parameters, one being a integer, the other one being a "String" which contains XML (not the best practice, however that is the target interface and we cannot change that).
0
1477
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 NetworkStream. I have everything working pretty well except images won't load to their location. ------------------------------------------------------------------------------------------------------------------...
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10488
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10029
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9077
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6808
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.