473,405 Members | 2,141 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,405 software developers and data experts.

Passing information to a web service

Hello all,
I am trying to pass an address to a webservice called
"Nottinghamservice" (see below). I am having problems with the
"sendNavAddress". When I execute I get the error 'Element is an invalid
node type". The exeption details point to the line "Dim results() As
Object = Me.Invoke("sendNavAddress", New Object() {ptn, label,
address})". PLEASE HELP ME!!!!

This is my code.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim ExampleVar As NottinghamService
Dim results As Long
Dim strResults As String
Dim label As String
Dim addr As New TdxAddress
label = "Test"
addr.street = "209 Farmington Ave"
addr.city = "Romeoville"
addr.state = "IL"
addr.zipCode = 60446
addr.country = "USA"

ExampleVar = New NottinghamService
results = ExampleVar.sendNavAddress("8156004780", label, addr)
end sub

This is the method provide by the service
<System.Web.Services.Protocols.SoapRpcMethodAttrib ute("",
RequestNamespace:="urn:tns",
ResponseNamespace:="http://www.xxxxxxx.net/wsdl/") _
Public Function sendNavAddress(ByVal ptn As String, ByVal label
As String, ByVal address As TdxAddress) As
<System.Xml.Serialization.SoapElementAttribute("er rorStatus")Long
Dim results() As Object = Me.Invoke("sendNavAddress", New
Object() {ptn, label, address})
Return CType(results(0),Long)
End Function
'<remarks/>
<System.Xml.Serialization.SoapTypeAttribute("TdxAd dress",
"http://www.xxxxxx.net/schema") _
Public Class TdxAddress

'<remarks/>
Public lat As Double

'<remarks/>
Public lon As Double

'<remarks/>
Public street As String

'<remarks/>
Public city As String

'<remarks/>
Public state As String

'<remarks/>
Public zipCode As String

'<remarks/>
Public country As String

'<remarks/>
Public layerId As Long
End Class

Nov 14 '06 #1
0 761

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

Similar topics

4
by: Mark Rae | last post by:
Hi, Can anyone please tell me if it's possible to pass a System.Web.Mail.MailMessage object to a ASP.NET Web Service? Maybe using XML Serialization / Deserialization? I've been asked to...
3
by: A Ward | last post by:
I am trying to find a way to have multiple seperate ASP.Net applications where I can response.redirect() to a second web application and pass information. From what I have tried: * HTTP-GET - I...
5
by: James Wong | last post by:
Dear all, I've a web service function and it contains a parameter in System.Text.Encoding. I found that the data type of this parameter in caller application becomes MyWebSvcName.Encoding...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
by: anewell | last post by:
I need to build website on my webserver which has information securely passed to it from a web site running on a client's webserver. My client has a website that has a secure login process...
0
by: Mythran | last post by:
Problem #1: We have an server application in COM+ on the same machine we have a web application on. The web application creates a Principal and Identity object containing the users information...
9
by: Greger | last post by:
Hi, I am building an architecture that passes my custom objects to and from webservices. (Our internal architecture requires me to use webservices to any suggestion to use other remoting...
2
by: Vinay Sajip | last post by:
Some users of the logging package have raised an issue regarding the difficulty of passing additional contextual information when logging. For example, the developer of a networked application may...
3
by: dbuchanan | last post by:
newbie question What are the various ways that data can be passed between pages. For example; How is data about the logged in user passed to subsequent pages Thank you, Doug
4
by: Ken Fine | last post by:
I'm making an administrative interface that lists records in a GridView. For *each* row in the gridview, I would there to be two interface elements in addition to some information associated with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...

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.