Web services in AbleCommerce 7.0
Posted: Fri Sep 18, 2009 12:47 pm
We need to take a text file from an external source and use the data in it to create/update users in our AbleCommerce site. Part of this solution is to be a web service that will call the user creation and updating code from CommerceBuilder with the appropriate parameters.
I've created a web service project in the same solution with the project containing the AbleCommerce code, and wrote a test method to check that I can actually call the CommerceBuilder code from my web service:
When I invoke the method, I get the following exception:
"AbleCommerceHttpModule does not appear to be configured."
I'm not sure what I'm doing wrong here, whether it's an issue with my use of web services (this is really the first time I've ever tried to make one), or something I need to do with the AbleCommerce code. Any ideas how I can solve this?
I've created a web service project in the same solution with the project containing the AbleCommerce code, and wrote a test method to check that I can actually call the CommerceBuilder code from my web service:
Code: Select all
[WebMethod]
public string CountUsers()
{
try
{
int count = UserDataSource.CountForStore();
return count.ToString();
}
catch (Exception ex)
{
return ex.Message;
}
}
"AbleCommerceHttpModule does not appear to be configured."
I'm not sure what I'm doing wrong here, whether it's an issue with my use of web services (this is really the first time I've ever tried to make one), or something I need to do with the AbleCommerce code. Any ideas how I can solve this?