Hi
Im getting the error below when i try and cosume this web service
http://ftp.mediaburst.com/ben/wsdl/SearchService.wsdl.
I think the error is due to the array in
http://ftp.mediaburst.com/ben/wsdl/Types.wsdl but i dont know why.
I am trying to consume a SOAP::Lite perl web service so i think that
requires that i use a "rpc" style binding and encoded body instead of
literal.
Any help would be greatfully received.
Thanks
Ben Crinion
System.Reflecti on.TargetInvoca tionException: Exception has been thrown by
the target of an invocation. ---> System.InvalidO perationExcepti on: There is
an error in XML document (1, 2095). ---> System.InvalidC astException: Cannot
assign object of type System.Object[] to an object of type
ArrayOfSimpleCu stomers.
at
Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReader1.Read6 _FindCustomersR esponse()
--- End of inner exception stack trace ---
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle, XmlDeserializat ionEvents events)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, XmlDeserializat ionEvents events)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
at SearchService_S ervice.FindCust omers(String searchString)
--- End of inner exception stack trace ---
at System.Reflecti on.RuntimeMetho dInfo.InternalI nvoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture, Boolean isBinderDefault , Assembly caller, Boolean verifyAccess)
at System.Reflecti on.RuntimeMetho dInfo.InternalI nvoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture, Boolean verifyAccess)
at System.Reflecti on.RuntimeMetho dInfo.Invoke(Ob ject obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at WebServiceStudi o.MainForm.Invo keWebMethod()
at WebServiceStudi o.MainForm.butt onInvoke_Click( Object sender, EventArgs
e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)