Data Client Can't Connect to Site

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Data Client Can't Connect to Site

Post by drollins » Wed Nov 21, 2007 4:28 am

I am having an issue connecting via the data client to my hosted installation.

I can login via the web using the super user account just fine. When I try to do so via the data client using the same credentials I get the following error:

"Authentication Failed: Invalid or Empty Request"

I am running ACV1 RC1.

I am pointing the data client to htp://www.mywebsite.com/clientapi/ClientApiService.ashx

Does my ISP need to open up a special port for this to work?

Are there special permissions I must set up for this to work?

Usually web services run on port 80 unless you've overridden it. I did not see a app.config file to edit in the dataport directory.

This tool works really well locally.

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Post by sohaib » Wed Nov 21, 2007 7:29 am

You don't need any special port opened.
Please make sure you have provided the correct URL.

Try to open the URL in browser first to make sure you are pointing to a correct url.

The URL you have posted above starts with htp instead of http...
make sure this is not the case in your actual settings.

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Wed Nov 21, 2007 8:33 am

This is what I receive when I type the correct address into the browser:

<xml>
- <ACAuthenticationResponse>
- <Log>
<Message>Invalid or empty request.</Message>
- <Error>
<Code>1</Code>
<Message>Invalid or empty request.</Message>
</Error>
</Log>
</ACAuthenticationResponse>

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Post by sohaib » Wed Nov 21, 2007 8:47 am

This is fine. This is what you are supposed to receive when you access it via browser.

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Wed Nov 21, 2007 3:37 pm

But this is what I also get when accessing it via the data port app using the super user credentials.

Is there a special user type I need to be to use this tool?

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Wed Nov 21, 2007 6:07 pm

OK - I had a brain fart and tried something...

If I use the following URL I get the "Invalid or empty request" error:

http://www.mywebsite.com/clientapi/Clie ... rvice.ashx

----------------------------------

If use this URL is works!!!:

http://mywebsite.com/clientapi/ClientApiService.ashx

----------------------------------

So it appears I am good but this is confusing and you might want to rethink it.

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Post by sohaib » Wed Nov 21, 2007 11:35 pm

Strange... quite strange.
I will keep note of this and see if this has anything to do with the dataclient.

JimCrisp
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Thu Oct 25, 2007 1:28 pm

Post by JimCrisp » Sat Nov 24, 2007 5:43 pm

I had the same issue trying to connect to my "localhost" site.
I had failed to set IIS to allow anonymous access. Once I did that, it connected just fine.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Sat Nov 24, 2007 7:31 pm

Isn't it supposed to be "https:" i.e. SSL encrypted for the URL?

EDIT: never mind, mine is straight http: as well.

Could it be that the shared hosting provider is using host headers and that is interferring with the URL translation for the API ?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply