the methods below used to work but now I get this error:
Error: Sys.Net.WebServiceFailedException: The server method ' failed with the following error: System.Net.WebException-- Unable to connect to the remote server
how can I fix it?
function CallMe() {
// call server side method
PageMethods.GetData(function (result) {
...
This is probably something simple but i just cannot figure it out so i'm just going to put it out there. In my c# class library i have a connection string
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\As.mdf;Integrated Security=True;User Instance=True
And this works fine in my local development environment. However this cl...
Hi everybody,
I have the following .NET web service with the following signature (IServices.cs):
[OperationContract]
[WebInvoke(Method = "GET",
BodyStyle = WebMessageBodyStyle.Bare,
ResponseFormat = WebMessageFormat.Json)]
string ReturnListOfPersons();
The implementation is (in the Services...
How can i get the Site ID not the web ID using the built in sharepoint web services.
...
I have a simple WebService method that returns database results as a DataSet.
This method fails for one user in the company but works for everyone else
Here is the crash:
CRASH! GetCustomer -
ExtractDomesticCommercialState: Exception:InvalidOperationException
Message:There is an error in XML document (1, 877).
Source: System...
Hi all,
I'm trying to think of how to validate that a web service is only accessed by an authorised client software.
Now I don't mean that I only want the web service open to authorised users, I only want my web services open to clients that I deem acceptable.
Lets take a use case. I have a web service that I provide, and software th...
Hello,
I created WebService using JAXWS. Glassfish generated wsdl, and whole webservice is published under http://localhost:8081/mycompanyApi/api?wsdl
How can I add some additional parameter to this url like http://localhost:8081/mycompanyApi/api?wsdl&hash=asdfa.
I'd like to do the authorization by 'hash' parameter.
...
I'm newbie to webservices..
I have a Silverlight 4 application, with a login page created be me.
I have created a webservice:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Security;
namespace MagNET.Web.WebServices
{
/// <summary>
/// Summary des...
I have several web services. One of this services is used for retrieve a session id (authentication). I pass this id when call other services through SessionInfo.
I want to use WCF instead of classic web methods. How can I share one session between several wcf's clients?
...
In my previous question here i was experiencing difficulties with Authenticating webservices. With the use of the WcfRestContrib library which i found here i was able to solve this issue. I build a small testapplication and the authentication works like a charm.
But while i'm implementing this in the webapplication where i want to use t...
I need to develop a WCF server (basically a web service which will eventually run in IIS) and a client application that accesses the service. I have both the client and the server project in the same Visual Studio (2008) solution.
What's the recommended way to connect the client to the server during development?
Two possible solutions ...
Hello there,
I am new to ASP.NET Web services (coming from PHP background) and I now have to develop a project in ASP.NET which will have to be very flexible, which means that I will have to play a lot with XML (schemas, data description etc.).
Although I 've pretty much understood the whole concept, I still have a problem familiarizin...
Hi,
I'm trying to implement a JQuery autocomplete widget based on a php service I have built. Right now, for testing, the service is extremely simple and only returns an array of three names. While debugging with firebug, I'm noticing my service is returning a code 200, but there is no response text that comes along with it. Obviously, ...
I know that there are alot of mature open source Java web services frameworks out there (Axis, Spring WS, Metro). But are there any commercial alternatives? Unfortunately our company has a strict open source policy :(
We're trying to build a simple web service client that talks to a .net asmx web service.
...
I've created a test web service and successfully deployed it to SharePoint 2007. Now I actually need to put real code in the service and redeploy to the server. I've rebuilt my dll and copied it to the appropriate bin and then re-gac'ed it - same steps taken to deploy in the first place. However, when i access the services description...
I am calling the following jQuery code on page load to test the concept of calling an external web service from the client. The data object in the success callback is always empty. What am I doing wrong?
$.ajax({
url: "http://www.google.com/search",
type: 'GET',
data: { q: "green tea" },
success: function(data) { alert(...
I am developing the framework for what will be a large data-driven Silverlight application using Prism. I am creating multiple modules for different pieces of the application, but all modules need to access data from the same REST webservice. So my initial plan was to create a separate module for the data retrieval and use EventAggregato...
What does the following AxisFault mean?
Does it mean that:
The request that is issued and received by the server and the server throws an (uncaught) exception, and therefore the exception is returned back to the client.
or
My web app fails to create the SOAP request (so the request is not even sent from the client app)
NB. I'm n...
Hello,
I have a very basic Java based web service requirement. Requirement is very simple, pass some String parameters, save them to database and generate a response ("success", "failed"). There is also a case where I need to return simple XML representation (SOAP message) of a simple Object:
<person>
<name>the name</name>
<address...
I have a Web Service developed with JAX-WS. I have secured the web service with BASIC authentication configured in Tomcat.
When I try to access the web service using a Java client, I first need to create the port, and then specify the credentials, as follows:
CustomerServiceClient customerServiceClient = new CustomerServiceBottomUpSer...