8 Replies - 1004 Views - Last Post: 19 May 2015 - 10:47 AM

#1 DarenR   User is offline

  • D.I.C Lover

Reputation: 634
  • View blog
  • Posts: 4,209
  • Joined: 12-January 10

webservices return Invalid Authentication Token

Posted 18 May 2015 - 05:32 AM

I have a webservice which returns
An unhandled exception of type 'System.ServiceModel.FaultException`1' occurred in mscorlib.dll

Additional information: Invalid Authentication Token



I have tried everything that is on the internet that I can find on how to resolve the issue.

What I have noticed though is that the server we use, you need to log in with an IP but the service returns a dns value instead of an IP. I have tried setting the webservice with a dns address and identity but it still fails because the server is set to accept only an IP for log in. Is there a way to force the webservice to grab the IP and force use that instead of a dns?

Is This A Good Question/Topic? 0
  • +

Replies To: webservices return Invalid Authentication Token

#2 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2397
  • View blog
  • Posts: 7,307
  • Joined: 15-January 14

Re: webservices return Invalid Authentication Token

Posted 18 May 2015 - 10:04 AM

Quote

you need to log in with an IP but the service returns a dns value instead of an IP

What does that mean, what does it return?
Was This Post Helpful? 0
  • +
  • -

#3 DarenR   User is offline

  • D.I.C Lover

Reputation: 634
  • View blog
  • Posts: 4,209
  • Joined: 12-January 10

Re: webservices return Invalid Authentication Token

Posted 18 May 2015 - 10:27 AM

instead of xxx.xxx.xx.x it returns wwww.address.com and the people who made the webservice only accept single values not converted values.
Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2397
  • View blog
  • Posts: 7,307
  • Joined: 15-January 14

Re: webservices return Invalid Authentication Token

Posted 18 May 2015 - 11:52 AM

I guess I'm confused when you say it returns it. You're asking for an IP address but it returns a domain name? What is the purpose of the web service, DNS resolution or something?
Was This Post Helpful? 0
  • +
  • -

#5 DarenR   User is offline

  • D.I.C Lover

Reputation: 634
  • View blog
  • Posts: 4,209
  • Joined: 12-January 10

Re: webservices return Invalid Authentication Token

Posted 19 May 2015 - 04:30 AM

The webservice (which we didnt make) is designed to update a database when another database is updated. The reason for this is because our company and our sister company use 2 different apps with 2 totally different database schemas and totally different code sets for the apps. So basically the client wants to use the functionality of app A with the database output from app B
Was This Post Helpful? 0
  • +
  • -

#6 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2397
  • View blog
  • Posts: 7,307
  • Joined: 15-January 14

Re: webservices return Invalid Authentication Token

Posted 19 May 2015 - 10:00 AM

I guess I'm not clear on what exactly the problem is. What's the problem with accessing the web service by IP address? Or, why not use a domain name to access it?

When a web service "returns" a value, that is the output of the service. If you have a web service that converts temperatures, for example, and you send it 100 Celsius, it will return 212 Fahrenheit. So, when you say the web service returns a domain name, I don't know what you mean unless it is a web service where you send it an IP address and it does a reverse DNS lookup and returns a domain name that points to that IP address. Unless the web service is for reverse DNS lookups, I don't understand why it would be returning a domain name.
Was This Post Helpful? 0
  • +
  • -

#7 DarenR   User is offline

  • D.I.C Lover

Reputation: 634
  • View blog
  • Posts: 4,209
  • Joined: 12-January 10

Re: webservices return Invalid Authentication Token

Posted 19 May 2015 - 10:19 AM

The issue is the domain is set up with an ip address. The owner of the domain which is our parent company set it up so you need an ip to log into the server. When you set the config as the ip it returns a dns name instead of the ip. the webservice that was created by our sister company uses a method which forces the authentication to be the same on login. so if we use the dns name it returns the machine name. if we use the machine name it returns the ip. The issue is that we can not log in with the webservice because the tokens are not be authenticated by the webservice and server because the constant changing of the url. We think it is a firewall issue but the dumb guy who set it up wont get back to us to fix the issue. If i force a host on my machine with the IP I can get it to log in via cmd prompt, however the webservice isnt made to use the cmd prompt so it is useless. I was just lookign for a work around to this dumb issue but it seems the client is going to set up a new server for demoing by the end of the week which will hopefully resolve all this junk.
Was This Post Helpful? 0
  • +
  • -

#8 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6821
  • View blog
  • Posts: 31,444
  • Joined: 10-May 07

Re: webservices return Invalid Authentication Token

Posted 19 May 2015 - 10:21 AM

View PostDarenR, on 19 May 2015 - 01:19 PM, said:

When you set the config as the ip it returns a dns name instead of the ip.

Where is this config set?
What software reads & obeys the config?
"it returns a dns" what is it?

Quote

The owner of the domain which is our parent company

how do they use it?
Was This Post Helpful? 0
  • +
  • -

#9 DarenR   User is offline

  • D.I.C Lover

Reputation: 634
  • View blog
  • Posts: 4,209
  • Joined: 12-January 10

Re: webservices return Invalid Authentication Token

Posted 19 May 2015 - 10:47 AM

View Postno2pencil, on 19 May 2015 - 01:21 PM, said:

View PostDarenR, on 19 May 2015 - 01:19 PM, said:

When you set the config as the ip it returns a dns name instead of the ip.

Where is this config set?
What software reads & obeys the config?
"it returns a dns" what is it?

Quote

The owner of the domain which is our parent company

how do they use it?



<endpoint address="http://72.18.134.162/MSDOT/PontisSyncService.svc"
binding="wsHttpBinding" bindingConfiguration="wsHttpBinding"
contract="PontisWebServices.IPontisSyncService" name="wsHttpBinding" />

software is a custom built software that i can not modify

dns-- changes depending on what i stick int he endpoint

the domain is used for their main apps and will house the db's we need

but like i said they are setting up a new server that we will hopefully have by the end of the week so this may not be an issue then
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1