N
Nick Gilbert
Hi,
I'm developing a webservice that will accept an Order and forward it to
a backend system, but I'm having a problem with transferring my "Order"
class over a webservice.
When I try and call the webservice and pass it an Order, I get the
following error message:
The type Wright.BusinessLogicLayer.OrderLine was not expected. Use the
XmlInclude or SoapInclude attribute to specify types that are not known
statically.
Source Error:
Line 55: public string EchoOrder(Order order) {
Line 56: object[] results = this.Invoke("EchoOrder", new
object[] {
Line 57: order});
Line 58: return ((string)(results[0]));
My Order class currently contains a single property, which is just an
ArrayList of OrderLine objects.
I've tried adding the SoapAttribute as the error message suggests but it
seems to have no effect:
[WebMethod]
[SoapInclude(typeof(OrderLine))]
public string EchoOrder(Order order) {
return order.ToString();
}
Any ideas what am I doing wrong?
Thanks!
Nick...
I'm developing a webservice that will accept an Order and forward it to
a backend system, but I'm having a problem with transferring my "Order"
class over a webservice.
When I try and call the webservice and pass it an Order, I get the
following error message:
The type Wright.BusinessLogicLayer.OrderLine was not expected. Use the
XmlInclude or SoapInclude attribute to specify types that are not known
statically.
Source Error:
Line 55: public string EchoOrder(Order order) {
Line 56: object[] results = this.Invoke("EchoOrder", new
object[] {
Line 57: order});
Line 58: return ((string)(results[0]));
My Order class currently contains a single property, which is just an
ArrayList of OrderLine objects.
I've tried adding the SoapAttribute as the error message suggests but it
seems to have no effect:
[WebMethod]
[SoapInclude(typeof(OrderLine))]
public string EchoOrder(Order order) {
return order.ToString();
}
Any ideas what am I doing wrong?
Thanks!
Nick...