asmx

405 error when POSTing to ASMX using jQuery?

帅比萌擦擦* 提交于 2019-12-23 04:48:14
问题 Site is here. Things we have tried: ProtocolSupportModule has been updated to All verbs. DNS is externally visible. Anonymous Authentication is enabled. Headers added: <customHeaders> <add name="Cache-Control" value="no-cache" /> <add name="Access-Control-Allow-Origin" value="http://s-alg.cengage .com" /> <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept, X-PINGOTHER" /> <add name="Access-Control-Allow-Methods" value="POST, GET, OPTIONS, HEAD" />

Using .NET Web service in Android - parsing the returned XML

徘徊边缘 提交于 2019-12-23 04:44:11
问题 in this post FROSTYSMOOTH ask a question and himself answered his question, this is very clear code, but i can't find using web service in his reformed code. how handle in reformed code these line in his first code? private static final String NAMESPACE = "http://tempuri.org/"; private static final String URL = "http://www.ces.org/android/android.asmx";//must point to where service is located /** HelloAndroid method */ //SOAP_ACTION = NAMESPACE + METHODNAME private static final String SOAP

How to configure ASMX web service URL from remote source

我的梦境 提交于 2019-12-23 01:43:31
问题 We are working on a legacy C# enterprise app. Its client uses several web services, whose URLs, among lots of other settings, are read from the local app.config file. We want to migrate these settings into a global DB to simplify their management. However, I can't figure out how (and whether) it is possible to migrate the web service URLs. These are read from the service client code generated by VS and I can't seem to find a way to tell VS to use a different settings provider than the one

Webservice method to call a url

百般思念 提交于 2019-12-23 00:26:27
问题 I have a webservice, it has its wsdl and everything works fine when I make a call to my web service. What I want to do now is call a url from somewhere within my web service method. In c# code behind I can do it something like this: Response.Redirect("Insurance.aspx?fileno1=" + txtFileNo1.Text + "&fileno2=" + txtFileNo2.Text + "&docid=" + Convert.ToString(GridView1.SelectedDataKey[2])); but the Response.Redirect option is not available on the asmx page. Is something like this possible? If so

What are all the valid ASP.NET Webmethod return types?

≡放荡痞女 提交于 2019-12-22 18:47:48
问题 Can my webmethod only return strings like I see in all the asp.net site examples? 回答1: asp.net Webmethods can return any serializable data type. 回答2: Assuming that this question is about the legacy ASMX web service technology, see Data Types Supported by XML Web Services Created Using ASP.NET. Be sure to take note of where it says: This topic is specific to a legacy technology. XML Web services and XML Web service clients should now be created using Windows Communication Foundation (WCF). 回答3

Visual FoxPro OLEDB error: Invalid path or file name

断了今生、忘了曾经 提交于 2019-12-22 12:27:25
问题 We have Novell server and there Advantage Database Server 9.1 is installed and all other Xbase++ programs access DBF files from that location. I want to access DBF files from C# asmx webservice. Problem is if I use Visual FoxPro VFP OLEDB then it only works while running asmx webservice in Visual studio's Debug mode but when I publish it to IIS, it gives this error: System.Data.OleDb.OleDbException: Invalid path or file name First Attempt (with ADS OLEDB): It works ONLY when DBF files are not

Getting “This method or property cannot be called on Null values” error

时光总嘲笑我的痴心妄想 提交于 2019-12-22 09:00:14
问题 UPDATE 1: The exception is being thrown on this line: client_group_details.Add(new ClientGroupDetails( ORIGINAL QUESTION: I have the following code which I have stripped down from 30 columns of data from the database to just 2 columns from the database. I get an error whenever any of the columns return a NULL value: public class ClientGroupDetails { public String Col2; public String Col3; public ClientGroupDetails(String m_Col2, String m_Col3) { Col2 = m_Col2; Col3 = m_Col3; } public

Calling Asmx From Android

好久不见. 提交于 2019-12-22 08:00:02
问题 I Am Trying To call Asmx (.net Web Services) From Android Application. But When I am giving data It is Giving Error : AndroidRuntime(591): FATAL EXCEPTION: Thread-75 AndroidRuntime(591): java.lang.NullPointerException: println needs a message in logcat showing data is going: D\Req value1(540): NetPositionReport{arg0=64396; b=Om$@!#@M^#R; } What Could Be The Problem? MainActivity.java package com.example.clientnetpositionreport; import android.os.Bundle; import android.app.Activity; import

ASMX Returning a pure string

孤人 提交于 2019-12-22 06:38:51
问题 I have an ASP.NET web service (.asmx). My service is defined like the following: [System.Web.Services.WebService(Namespace = "http://tempuri.org/")] [System.Web.Services.WebServiceBinding(ConformsTo = System.Web.Services.WsiProfiles.BasicProfile1_1)] public class MyService : System.Web.Services.WebService { [System.Web.Services.WebMethod] public string GetResult() { string result = ""; int day = System.DateTime.UtcNow.Day; if ((day % 1) == 1) result = "odd"; else result = "even"; return

Creating web service and client with shared types

南笙酒味 提交于 2019-12-22 06:36:33
问题 I have created two wsdl files with shared types imported from xsd schema file. After that I have created web services using interface generated by wsdl.exe tool with parameter /serverInterface. Frist web service, have web method “RegisterData” with put into queue some complex object to be processed, by system “A”. As result of this method is returned Boolean (with tell us that object was registered successful). Second web service, have web method “UpdateData” to update some data in system “B”