473,618 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beginner needing help with return data from a webservice.

hl
Hi,
I'm a beginner and need a little help with getting data back from a web
service.

I am using VB.Net and have added a web reference to a Wsdl that was
provided to me.

My reference.vb file that was generated has the following code at the end.

<System.Xml.Ser ialization.Soap TypeAttribute(" Map",
"http://xml.apache.org/xml-soap")> _
Public Class Map

'<remarks/>
Public item() As mapItem
End Class

'<remarks/>
<System.Xml.Ser ialization.Soap TypeAttribute(" mapItem",
"http://xml.apache.org/xml-soap")> _
Public Class mapItem

'<remarks/>
Public key As String

'<remarks/>
Public value As String
End Class

The code I have to call the webservice is:-

Dim ws As s192.searchServ ice = New s192.searchServ ice
Dim MapResult As s192.Map

MapResult = ws.execute("use rname", "password", "somervail" , "",
"london", "", "", "", "", "", "", "", "", "", "", "", "", "", "er", 10, 1)
It does not return any information.
Can anyone help me. I can provide more of the code if required.
Thanks in advance.

Nov 23 '05 #1
1 1913
Hi,

to know why the method call is not returning anything we'll need a
little bit more info, i think.

One thing that did catch my eye is the huge ammount of parameters used
in the method call. But, since we're talking about the client side, i
guess we should leave that alone.

Another thing, but security related, is the sending of the username
and password in the parameters is an interresting choise for passing
credentials. I hope this is running over a secure line (like SSL) and
not on a public net.

The generated files you included shows a 'generated array of objects'
sourcecode. This is read from the type information in the WSDL and
generated.

If you can, providing the WSDL here would already help, but the WSDL
with your sourcecode would be best(but is not always possible ;) )

Hope this helps,

Marvin Smit
On Fri, 02 Sep 2005 12:58:56 +0100, hl <hl@pl.invalid. com> wrote:
Hi,
I'm a beginner and need a little help with getting data back from a web
service.

I am using VB.Net and have added a web reference to a Wsdl that was
provided to me.

My reference.vb file that was generated has the following code at the end.

<System.Xml.Se rialization.Soa pTypeAttribute( "Map",
"http://xml.apache.org/xml-soap")> _
Public Class Map

'<remarks/>
Public item() As mapItem
End Class

'<remarks/>
<System.Xml.Ser ialization.Soap TypeAttribute(" mapItem",
"http://xml.apache.org/xml-soap")> _
Public Class mapItem

'<remarks/>
Public key As String

'<remarks/>
Public value As String
End Class

The code I have to call the webservice is:-

Dim ws As s192.searchServ ice = New s192.searchServ ice
Dim MapResult As s192.Map

MapResult = ws.execute("use rname", "password", "somervail" , "",
"london", "", "", "", "", "", "", "", "", "", "", "", "", "", "er", 10, 1)
It does not return any information.
Can anyone help me. I can provide more of the code if required.
Thanks in advance.

Nov 23 '05 #2

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

Similar topics

4
1760
by: TempMan | last post by:
I want this text field to always display a number variable. The variable "num" is defined in the head, how can I get a text box to display this varibale?? <input name="Balance" type="text" value="num" size="8" maxlength="8"> Cheers
1
1616
by: ::::x:::: | last post by:
Hi All, below is come code I'm writing for an assignment, and I'm stuck. What I want to happen: page load, user click on money money = bank bank is displayed in a text box I can get the bank to display the initial value of 0, but not the bank value after the user input.
7
5760
by: Shaine Fisher | last post by:
I have had a look around but I'm either not finding or not seeing the answer to this, what i want to do is reurn the results as an array, or some other worldly useful format that flash mx2004 can read. But when I did thiss I was told datasets were the way to go, but needs an array, prefer typed as were changing it. Here is the current code: (shortened for readability) public class WebService1{
3
2755
by: Stacey Levine | last post by:
I have a webservice that has the below procedure. Basically a procedure to called a stored procedure and return the results. When I try to call the webservice from my program I get the error. Both my calling code and the webservice code are below. Thanks for your help. D:\Projects .NET\StoreBO\frmVoids.vb(182): Value of type '1-dimensional array of System.Data.SqlClient.SqlParameter' cannot be converted to '1-dimensional array of...
5
19579
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was having a problem in the calling program. I searched online and found suggestions that I return an Array instead so I modified my code (below) to return an Array instead of an ArrayList. Now I get the message when I try to run just my webservice...
1
2857
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive types and of more elaborate classes implementing IXmlSerializable. The resulting WSDL file for the webservice has two separate schemas in its <types> sections, and the client proxy (generated with wsdl.exe) is missing the definitions of the...
5
1761
by: darrel | last post by:
I've been playing with prototype.js and scriptaculous to create some nice drag-and-drop interaction on my applications GUI. That's working well. Now I want to take the next step and start passing data back and forth between my page and the server via AJAX. In terms of .net, can someone give me the overall concept? Normally, I'd have a function in my codebehind that grabs a dataset and then binds that to a control on my aspx page.
2
6944
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
5
1595
by: Simon | last post by:
I have problem with namespaces. I have a program that consumes the web service and has for instance names space nsProgram. In this program I have defined several classes that I use for storing and handling internal information. Than I have web service, that also uses the same classes (I included the file as linked external resource). I included this web service as web reference and used name wsWeb. When I am trying to call the web...
0
8153
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
8595
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
8455
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
7126
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
6101
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
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2587
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1459
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.