I am trying to consume a php web service. The original service is at:
We then moved the service it to another location:
Both of these services are working...
I added it to my app and called it Customers.
For testing purposes please comment out objCustomer.Url.... when you remove it it will work, when you add the line it doesn't work.
The error is below:
System.InvalidCastException: Cannot assign object of type System.Xml.XmlNode[] to an object of type ArmTech___EMS.Customers.Customers.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderaddCustomers.Read4_getCustomersResponse()
at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer1.Deserialize(XmlSerializationReader reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)"
Thanks, Aaron
Dim objCustomer As Customers.addCustomers = New Customers.addCustomers
objCustomer.Url = "
Dim c As New Customers.Customers
Dim Cust As New Customers.Customer
Dim i As Integer
Dim alCust As New ArrayList
Dim str As String = ""
Try
c = objCustomer.getCustomers("test")
Catch ex As Exception
MsgBox(String.Concat(ex.Message, vbCrLf, ex.InnerException))
Exit Sub
End Try
We then moved the service it to another location:
Both of these services are working...
I added it to my app and called it Customers.
For testing purposes please comment out objCustomer.Url.... when you remove it it will work, when you add the line it doesn't work.
The error is below:
System.InvalidCastException: Cannot assign object of type System.Xml.XmlNode[] to an object of type ArmTech___EMS.Customers.Customers.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderaddCustomers.Read4_getCustomersResponse()
at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer1.Deserialize(XmlSerializationReader reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)"
Thanks, Aaron
Dim objCustomer As Customers.addCustomers = New Customers.addCustomers
objCustomer.Url = "
Dim c As New Customers.Customers
Dim Cust As New Customers.Customer
Dim i As Integer
Dim alCust As New ArrayList
Dim str As String = ""
Try
c = objCustomer.getCustomers("test")
Catch ex As Exception
MsgBox(String.Concat(ex.Message, vbCrLf, ex.InnerException))
Exit Sub
End Try