I have a web service in which I have created a custom exception. Let's say the name of this exception is InvalidContractException.
What I would like to do is if a specific step occurs, I want to throw this exception. However, I can't figure out how the client would catch the InvalidContractException in order to handle it properly. ...
I've been using the Open Library Books API, but it lacks many of the books I have. Which API has the best coverage (especially for non-English books)?
Edit: I'm particularly interested in APIs that can be accessed from the server side and that provide metadata (author, title, publisher, year, etc).
My coverage benchmark is this arbitra...
I am just working on .NET for the past six month.I am using VS 2005.I have been assigned
a task to test a Web service.I have created a Web service project in VS 2005 IDE and a simple method that returns an ArrayList of employee type.I have the employee table in SQL Server 2005 Standard Edition.
I need to perform the following tasks :...
I want to change the group settings (oGrp.OnlyAllowMembersViewMembership = false) for all the site groups present in my site. I have to use web services to perform this function and not the object model.
Until now I have worked on the object model mostly so I'm not very sure of web services. Please let me know if anyone has ideas on how...
Do java support semantic webservices.Any apis are available for that..
...
I am using VS 2005 (C# ). My Webservice returns a type as follow :
[WebMethod]
public Employee getEmployee( )
{
Employee emp=new Employee();
emp.EmpID=1000;
emp.EmpName="Wallace";
return emp;
}
from Client side i have created a Proxy.
localhost.Service1 svc = new WindowsApplication1.localhost.Service1();
How...
There id this existing ASP.NET (2.0) web service that's called from PHP. Runs fine. Now the need arises to restrict access. Constraint: I currently don't have access to IIS/Windows account management to implement something robust,.
I'm thinking about adding a SOAP header to the PHP call, containing a secret key, and then checking the c...
Hi,
I'm developing a silverlight application that consumes a webservice. Calls to this webservice are made Asynchronously. But when an exception occurs during a procedure of the async call, I get an error on the completed event but i lost my original exceptions information. Independent of what the original exception was, I always get "...
I am developing my web service in ASP.NET.Where can i register my web service for global access?
...
Hello!
I need to "dive into JAX-WS programming".
So, I played around with Netbeans, after 20 or so erroneous attempts,
finally managed to let a web service client execute a web service.
I noticed, that a lot of code is generated, especially JAXB classes
for the web service response.
My current task is, to write a web service and web ...
Can anyone recommend an article on sending and receiving JSON to an asp.net web service (any flavor) that uses more practical examples than "hello world".
Ideally, something that covers topics like:
Receive a single complex object from a web service (to display in a form)
Receive a collection of complex objects from a web service (to...
I have a .net webservice that returns a string, I want the string representation returned bare and not wrapped up as xml.
for example:
[WebMethod]
public string Enroll()
{
return "You are welcome";
}
The response I get is:
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="http://somenamespace/">
You are welcome
</s...
I've tried searching but I can't figure out how to access data via a RESTful interface. I'm looking for just example code that shows someone access some data from some imaginary web service using its API. A simple "how-it-works" explanation would be helpful too.
...
I need to consume a Web Service. They send me the WSDL file.
What should I do to add it to my website and start using it as the proxy.
( If I put it on a Virtual Directory it is been discovered, but does it grants me the connection with the real web service?)
...
I've looked around and I'm trying to find an elegant solution to this and I'm yet to find one. I have an ASMX web service in .NET that I'm trying to call that requires parameters. I'm using jQuery on the client side to call the service and my jQuery looks something like this:
$.ajax({
type: "POST",
contentType: "application/js...
I have a WCF service client and it was generated using the /async argument with svcutil.exe, so it uses the asynchronous programming model. When I make multiple asynchronous requests with a single client though it serializes the execution of those requests.
Here is an example that shows how I am executing the parellel requests.
[TestM...
Hi guys.
I am developing a web service: Book store and I am going to develop using XML or SAML security.
I prepare a form (using JSP, PHP, ASP, ASP.NET ) with some information like: book, bankaccount, amount,... And submit this form to server. How can I do?
Please tell me step by step.
Thank you so much!
...
I have a JSON web service that I only want to provide for certain sites. It's a service that would be called through JavaScript using JSONP. How would I go about preventing (or at best making it more difficult for) unauthorized sites from accessing it? Requiring a user/password won't work because that would be plainly visible in JavaS...
Is there any way to remote debug a web service on my local machine that is being hosted by Cassini?
ie On my local machine I can browse to http:// localhost:1234/webservice, but I cannot go to another machine and access http:// ip_address_of_my_machine:1234/webservice.
Is there a way?
Thanks,
Jon
...
I am desperately trying to move a document in a document library from one folder to another (yes, within the same library). All this is needed to be done through web services.
I am using UpdateListItems method with batching XML like this:
<Batch>
<Method ID="1" Cmd="Update">
<Field Name="ID">14</Field>
<Field Name="ServerUrl">...