473,503 Members | 12,003 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.Serialization.SoapTypeAttribute("Map ",
"http://xml.apache.org/xml-soap")> _
Public Class Map

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

'<remarks/>
<System.Xml.Serialization.SoapTypeAttribute("mapIt em",
"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.searchService = New s192.searchService
Dim MapResult As s192.Map

MapResult = ws.execute("username", "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 1905
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.Serialization.SoapTypeAttribute("Map" ,
"http://xml.apache.org/xml-soap")> _
Public Class Map

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

'<remarks/>
<System.Xml.Serialization.SoapTypeAttribute("mapIt em",
"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.searchService = New s192.searchService
Dim MapResult As s192.Map

MapResult = ws.execute("username", "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
1741
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"...
1
1600
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...
7
5752
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...
3
2741
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...
5
19560
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...
1
2840
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...
5
1750
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...
2
6925
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...
5
1583
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...
0
7067
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...
0
7264
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,...
0
7316
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...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5562
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,...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1495
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 ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
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...

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.