Hi,
I use the protocol jsonp to call web methods, but i have this problem:
Have this code on the webservice:
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
[ScriptMethod]
public string HelloWorld()
{
return "Hello World";
}
}
And this on Jquery with jason on client side:
$.a...
Inside a webservice defined like
@WebMethod
public ResponseType myMethod()
{
...
}
How can I get the calling url? In a http servlet I can use the ServletRequest object to get the url with something like request.getRequestURL().
Thanks,
Adam
...
Hi.
I have a WebMethod inside an .aspx:
[WebMethod()]
[ScriptMethod(ResponseFormat = ResponseFormat.Xml)]
public static XmlDocument GetSomeInformation()
{
XmlDocument Document = new XmlDocument()
// Fill the XmlDocument
return Document;
}
It works great when i call it with JQuery:
TryWebMethod = function()
{
...
Hi all,
i need to test a java webservice in webmethods server receiving files.
to achieve that i just create a simple HTML form :
<html>
<body>
<h2>ServiceRequest - File upload</h2>
<form method="post" action="url/invoke/webservice" enctype="multipart/form-data">
<input type="file" id="mime" name="mime"> </br></br>
<input ...
Hi all,
When I try to access web method I obtain error:
PageMethods.GetRate is not a function;
My method:
[WebMethod]
[ScriptMethod]
public static string GetRate(string date)
{
return "qwe123";
}
Register assembly:
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, Publ...
I have two web methods which I wish to overload:
<WebMethod()> _
Public Function GetProject(ByVal id As Int32) As Project
<WebMethod(MessageName:="GetProjects")> _
Public Function GetProject(ByVal filter As String) As Projects
I read about overloading using MessageName, however I cannot get this to work. Is this possible?
...
I have used jQuery to invoke an AJAX webmethod in c#. This webmethod runs a query and stores the resulting information in a session variable. I have a gridview that has an objectdatasource that uses the session variable with the selectmethod to then populate the gridview with data from a query. I need the final piece to get the gridview ...