web-services

Problem with jQuery validate plugin (remote validation)

ⅰ亾dé卋堺 提交于 2019-12-31 01:32:08
问题 I have a problem trying to validate a user value using the jQuery Validation plugin. The validation seems to fire correctly and call the web service function exactly as I want but, even if the server function does work correctly and returns a true / false result the field is always invalid. This is the validation code on the client side $('#myForm').validate({ errorContainer: container, errorLabelContainer: $("ol", container), wrapper: 'li', meta: "validate", rules: { Code: { required: true,

Silverlight webservice call works in Studio but fails when run from website

戏子无情 提交于 2019-12-31 01:13:26
问题 We are building a Silverlight application and have calls to a Silverlight-WCF service. When running the application from Visual Studio everything works perfectly. When we deploy to the website and run the application we get the following error (or one much like it) every time we call the web-service. Message: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel

Silverlight webservice call works in Studio but fails when run from website

笑着哭i 提交于 2019-12-31 01:13:07
问题 We are building a Silverlight application and have calls to a Silverlight-WCF service. When running the application from Visual Studio everything works perfectly. When we deploy to the website and run the application we get the following error (or one much like it) every time we call the web-service. Message: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel

consuming SOAP web services in classic ASP

血红的双手。 提交于 2019-12-31 00:57:24
问题 I have a problem with this is code: Set oXmlHTTP = CreateObject("Microsoft.XMLHTTP") oXmlHTTP.Open "POST", "http://www.oursite.com/WebServices/ourService.asmx?WSDL", False oXmlHTTP.setRequestHeader "Content-Type", "application/soap+xml; charset=utf-8" oXmlHTTP.setRequestHeader "SOAPAction", "http://ourNameSpace/ourFunction" SOAPRequest = _ "<?xml version=""1.0"" encoding=""utf-8""?>" &_ "<soap12:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org

JAX-WS and version conflicts

拈花ヽ惹草 提交于 2019-12-31 00:42:51
问题 As test project I've create a very simple WebService using wsdl and jax-ws. The client runs very well if it is deployed as web application in GlassFish but if I start the same (WebService-)Code in Eclipse directly, I get the following error: WARNUNG: Input Action on WSDL operation AddNumbers and @Action on its associated Web Method addNumbers did not match and will cause problems in dispatching the requests Exception in thread "main" java.lang.NoClassDefFoundError: org/glassfish/ha/store/api

Discriminating between infrastructure and business logic when using HTTP status codes

£可爱£侵袭症+ 提交于 2019-12-30 22:52:44
问题 We are trying to build a REST interface that allows users to test the existence of a specific resource. Let's assume we're selling domain names: the user needs to determine if the domain is available. An HTTP GET combined with 200 and 404 response codes seems sensible at first glance. The problem we have is discriminating between a request successfully served by our lookup service, and a request served under exceptional behaviour from other components. For example: 404 and 200 can be returned

.NET Web service unable to generate a temporary class

你离开我真会死。 提交于 2019-12-30 20:00:48
问题 I'm trying to instantiate a web service in my .NET web application. But as soon as it hits this line: registerService register = new registerService(); Then i get the following error: Unable to generate a temporary class (result=1). error CS0030: Cannot convert type 'Test.Website.ProxyTest.registerType[]' to 'Test.Website.ProxyTest.registerType' I didn't write the web service. But does this mean the web service has an error somewhere (in an XSD or something)? Does this mean that the 3rd party

How can I host a WCF service without an SVC file in IIS

£可爱£侵袭症+ 提交于 2019-12-30 18:59:43
问题 I'd like to deploy a dual interface (SOAP/REST/XML/JSON) WCF service in IIS with just a config file and the binaries and no svc file in the URL We use VS2012 and .Net 4.5 We have something like it working, I followed a guide here: http://blogs.msdn.com/b/rjacobs/archive/2010/04/05/using-system-web-routing-with-data-services-odata.aspx I added a Global class with public class Global : HttpApplication { void Application_Start(object sender, EventArgs e) { RegisterRoutes(); } private void

Why are $_SERVER[“PHP_AUTH_USER”] and $_SERVER[“PHP_AUTH_PW”] not set?

好久不见. 提交于 2019-12-30 18:33:23
问题 Before I begin, I'd like to point out that I've browsed Stack Overflow and found other similar questions - PHP_AUTH_USER not set? and HTTP Auth via PHP - PHP_AUTH_USER not set? - and these have pointed out that the authentication $_SERVER variables won't be set if ''Server API'' is set to ''CGI/FCGI'', but I checked my ''phpinfo()'' output and my ''Server API'' is set to ''Apache 2.0 Handler''. Ok so I have a simple script as follows: <?php echo "Username: " . $_SERVER["PHP_AUTH_USER"] . ",

Binary file download

我的未来我决定 提交于 2019-12-30 18:31:14
问题 I'm building a server using python and bottle. How can I handle a request for a binary file? I have read that I should use flask. There is a way for doing that without using flask? 回答1: Yes, you should use static_file function: from bottle import static_file @route('/download/<filename:path>') def download(filename): return static_file(filename, root='/path/to/static/files', download=filename) 来源: https://stackoverflow.com/questions/13725417/binary-file-download