0

I have a web application project and a web service application project. I'm using ASP.Net AJAX and I want to reference a service called Tickets.asmx from the web service project and call it with JavaScript. (I'm referencing it [or trying to] in a ScriptManager on the page)

I've done this before with the web service being part of the asp.net web application, but not with it in a different project. No matter what I do I keep getting [namespace] undefined javascript errors.

What could I be doing wrong? I've even tried putting the full path to the service in the ScriptManager (something like http://localhost:4080/Tickets.asmx)

2
  • You didn't say what problem you're having... Commented Mar 18, 2009 at 15:15
  • "No matter what I do I keep getting [namespace] undefined javascript errors." Commented Mar 18, 2009 at 16:11

1 Answer 1

2

I have determined that this is not possible. JavaScript cannot make calls to another domain, so ASP.Net AJAX doesn't support external web services at all.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.