G
GarthK
I'm new at WS but having fun (for the most part) using RC1 of VS2005.
The following code is the sum total (so far) of the Web Services layer
on my 2003 IIS box. Behind this is a DLL that contains the actual class
definitions that are referenced here. I have a client that is
successfully invoking the GetVendor method and I can use the returned
Vendor object just fine. However, if I immediately follow the GetVendor
call with a call to PutVendor passing the Vendor parameter returned from
GetVendor, I get the following error on the client:
Server was unable to process request. ---> Failed to convert parameter
value from String to Int32. ---> Input string was not in correct format.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
followed by a long list of calls.
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using OESLib;
/// <summary>
/// Summary description for VendorWS
/// </summary>
[WebService(Namespace = "http://tigertechus.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class VendorWS : System.Web.Services.WebService
{
public VendorWS()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public Vendor GetVendor(String VN)
{
return new Vendor(ref VN);
}
[WebMethod]
public bool PutVendor(Vendor v)
{
v.Save();
return true;
}
}
Pretty simple so far but I've had no luck figuring out what is wrong.
Ideas/thoughts greatly appreciated...
Thanx,
Garth
The following code is the sum total (so far) of the Web Services layer
on my 2003 IIS box. Behind this is a DLL that contains the actual class
definitions that are referenced here. I have a client that is
successfully invoking the GetVendor method and I can use the returned
Vendor object just fine. However, if I immediately follow the GetVendor
call with a call to PutVendor passing the Vendor parameter returned from
GetVendor, I get the following error on the client:
Server was unable to process request. ---> Failed to convert parameter
value from String to Int32. ---> Input string was not in correct format.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
followed by a long list of calls.
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using OESLib;
/// <summary>
/// Summary description for VendorWS
/// </summary>
[WebService(Namespace = "http://tigertechus.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class VendorWS : System.Web.Services.WebService
{
public VendorWS()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public Vendor GetVendor(String VN)
{
return new Vendor(ref VN);
}
[WebMethod]
public bool PutVendor(Vendor v)
{
v.Save();
return true;
}
}
Pretty simple so far but I've had no luck figuring out what is wrong.
Ideas/thoughts greatly appreciated...
Thanx,
Garth