Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot seem to move web service

Status
Not open for further replies.

kifaro

Programmer
Oct 4, 2002
54
0
0
US
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
 
>>Dim objCustomer As Customers.addCustomers = New Customers.addCustomers

my guess is that the proxy class is still pointing to the old URL. try generating another proxy class...

Known is handfull, Unknown is worldfull
 
Thanks for the advice, but this isn't it :(

Aaron
 
u tried generating another proxy class? still same error huh???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top