web-services

HTTP 500 Error jQuery Ajax with Web service

﹥>﹥吖頭↗ 提交于 2019-12-28 07:02:06
问题 I have two simple projects in a single Visual Studio solution to understand how a jQuery ajax request works. One is a web service and the second one is a project consuming the web service. You can download the very small project from here. Download Project file As you can see in the project, Whenever I try to call the Web Service, Internal Server Error 500 is occurring. In chrome, I can see the following alert (executed by "Error" function of Ajax call) Please assist me to find the problem..

How to schedule a C# code execution

橙三吉。 提交于 2019-12-28 07:02:03
问题 I am using ASP.Net and C#. I want to synchronise something on a particular time. I made a method for doing this and it's working. But my problem is how to call this method daily at a particular time. Client doesn't trust any third party tool, so can't use it. Windows service is not a good solution. If I make a web service, how should I call it at a particular time on a daily basis? For example, I want to run method everyday at 07.00 PM. 回答1: At startup, add an item to the HttpRuntime.Cache

How to schedule a C# code execution

本秂侑毒 提交于 2019-12-28 07:01:20
问题 I am using ASP.Net and C#. I want to synchronise something on a particular time. I made a method for doing this and it's working. But my problem is how to call this method daily at a particular time. Client doesn't trust any third party tool, so can't use it. Windows service is not a good solution. If I make a web service, how should I call it at a particular time on a daily basis? For example, I want to run method everyday at 07.00 PM. 回答1: At startup, add an item to the HttpRuntime.Cache

Creating and populating a DataTable dynamically in JSF2.0

南笙酒味 提交于 2019-12-28 06:35:17
问题 I've a little problem right there. When I want to populate DataTable in JSF I have to create a model first, then use it in my view. Like on Primefaces sample here. And now, I have to create DataTable that will display data, that came from webservice. I don't know how many columns there will be, and I don't know their names... Could you recommend some wise solution ? PS. I don't know also how to returned data from webservice - it is still to determine. EDIT public Bean() { columns = new

How to suppress “This page is accessing information not under its control”

别说谁变了你拦得住时间么 提交于 2019-12-28 06:28:05
问题 I get this message when I am trying to access a web service from Jquery located in SAME the URL (but different directory). I know it is IE security setting. The question is, how do I suppress it...surely, people don't put web services in the same web site, same directory.... 回答1: In case this is helpful for someone running Visual Studio 2013. I had upgraded my Visual Studio from 2010 to 2013 and then started seeing the seurity warning. Using Fiddler I found that VS 2013 kept sending

JAX-WS client without a WSDL document file

与世无争的帅哥 提交于 2019-12-28 05:46:26
问题 I am consuming a webservice soa, with netbeans (jax-ws) i use netbeans auto generate client, and all run fine, but i see that the wsdl is always downloading while the client is running. In production i don't want expose the wsdl, and i am trying to modify the client for don't require wsdl, all my intends are wrong, i find this: WebService_Service svc = new WebService_Service( null, new QName("http://www.example.com/ws", "WebService")); WebService port = svc.getPort(WebService.class);

Deploy java web service without using web server

泪湿孤枕 提交于 2019-12-28 05:29:11
问题 It is possible to deploy my own created web service to any of PC without installing any web server app eg:tomcat? I want make it like agent/plug-in in any PC. In order to access the web services i only need to access http://:8080/web_service. Any suggestion about this? 回答1: Even lighter than running Jetty you can use the HttpServer built into Java. http://java.sun.com/javase/6/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html You'll need to write your own code for

What are considered non-breaking or backwards-compatible changes to a WSDL contract?

♀尐吖头ヾ 提交于 2019-12-28 04:49:10
问题 This page lists the following examples: Addition of new WSDL operations to an existing WSDL document Addition of new XML schema types within a WSDL document that are not contained within previously existing types But is there a definition or standard guideline for what changes are considered backwards-compatible. Or in other words, what changes can you make to your contract, and still expect not to break your clients. 回答1: I have spent some time on this particular subject, and found some

Host WCF in MVC2 Site

谁都会走 提交于 2019-12-28 04:27:50
问题 We've got a very large, complex MVC2 website. We want to add an API for some internal tools and decided to use WCF. Ideally, we want MVC itself to host the WCF service. Reasons include: Although there's multiple tiers to the application, some functionality we'd like in the API requires the website itself (e.g. formatting emails). We use TFS to auto-build (continuous integration) and deploy - The less we need to modify the build and release mechanism the better We use the Unity container and

What should be modified to change the URL of a web service in C#?

☆樱花仙子☆ 提交于 2019-12-28 04:27:07
问题 I have one problem and it is some time ago I have added a Webservice proxy class into my application by copying all the generated code (copy paste the text of the .cs content). And it worked! But now I need to change the URL used by this web-service proxy class and I am not sure what and where to change in the code. I would appreciate if you can give me a clue that can guide me to find the right place so that I can update the url of the web service. 回答1: You should change the URL using web