Hi,
I'm curious about the best practice in creating web services which support both XML and JSON output.
At the moment, my service is very XML oriented (see below), but I want to add JSON support.
Here's one example:
def create
render_authentication_error and return if !@user
render_parameter_not_found_error("item") and...
Coming from a lot of frustrating times with WSDL/Soap, I very much like the REST paradigm, but am trying to solve two basic problems in our application, before moving over to REST. The first problem relates to the lack of an interface document. I think I finally see how to handle this situation: One can query his way down from a top-l...
I am using WCF REST Startkit to create a test REST web service. To test it, I create a simple Console application with HTTPClient (provided by the kit) and HttpResponseMessage to make a request to the REST service. Here are some codes:
HttpClient client = new HttpClient(argsParser.BaseAddress);
HttpResponseMessage resp = client.Get(args...
I am writing a web service that accepts only json, and also outputs only json.
So I need to return the appropriate status code if any other format is requested.
It appears that I have two choices:
406
415
It would be great if someone could enlighten me as to the semantics of the two codes.
...
The Microsoft Dynamics CRM service uses NTLM authentication, which makes connecting to it from a python process using suds somewhat complicated. I'm looking for a code sample that will:
Send and receive the response from a RetrieveAttributeRequest
Send and receive the response from an Execute request.
This must use Python 2.6 or Pyth...
I need to create a mule service that will POST data to a web service that expects name/value pairs (not xml), then process the XML response from that service. I cannot find a good example on how to prep the payload for an http POST.
Can someone provide some insight or examples?
What I have so far is (I don't know if 'PathToTransforme...
I have written a simple java file Calculator.java as below
public class Calculator {
public int add(int a, int b) {
return a+b;
}
public int subtract(int a, int b) {
return a-b;
}
}
Now, i renamed it to Calculator.jws and put it in my web application's root directory. (in the same directory as the WEB-I...
I think this is possible, but just wanted to get some feedback and/or information/links.
Theoretically, I would like to have the ability to upload and Excel file to a web page (say ASP.NET) and have this collection of data validated against an existing web service I have in place . This web service is used to CRUD operations into the D...
I want to encapsulate every resource from the client application with only one web service which can use my classlib.
I'm confused to access to other resources (web services, databases...) from the class library.
Because i think ClassLib should only have classes to reach objects within hierarchy, calculate some things etc.
If i set dat...
I have an ASMX webservice hosted alongside my ASP.NET web app. Now, I need to get the users session into the Webservice. To test this I made this simple method:
[WebMethod(EnableSession = true)]
public string checkSession()
{
return HttpContext.Current.Session["userid"].ToString();
}
So, first I login to my web app...
Hello,
Could any one help me in finding the solution for this error.
I have a normal web service which is working fine in intranet, when when the vendors try to access the same from internet, they get this below error.
There was an error downloading
'https://isite.corp.net/Service/Sample.asmx'.
The remote name could not ...
Hi,
I am trying to expose via WCF Web services, functions that access SQL server (via Entity Framework) using the user's credentials (this is a client/dba requirement because of audit triggers etc. Gave up trying to convince them not to use user's credentials)
I am having trouble getting WCF to implement impersonation. (in fact its bee...
I have a WCF Service that returns a byte array with a ZIP file (50MB) to any client that requests it. If the zip is very small (say 1MB), the soap response is coming from WCF with the byte array embedded in it.But the response size is very huge even for a 1MB file. If i try the 50MB file to get transferred the Service gets hanged and thr...
I have created a axis2 webservice including a method with multiple parameters:
class Service
{
public void method(string a, Enum b) {
}
}
When accessing with a .NET client, the code generated in the client side is:
void method(methodRequest request)
instead of having the two original parameters, and in addition methodRequest....
hi there,
I have a web service. A method of this web service, returns WSSonuc class.
[Serializable]
public class WSSonuc
{
public int M_Durum { get; set; }
public object M_SonucNesne { get; set; }
}
this is my Web service method:
[WebMethod]
[SoapHeader("_ticket", Direction = SoapHeaderDirection.InOut)]
public WSSonuc f...
hi there,
I have a small WPF application based on MVVM priniciples. So far I had dummy Model classes created in my app. Now I plan to call a Web Service that uses XSD. Looking forward I would like to use these Xsd Types as Models.
I can see atleast two way of doing this (could be more); for eg -
add a reference to the Web Service. T...
Consider a webmethod which exposes an abstract class:
[WebMethod]
public void Save(AbstractEntity obj)
{
// ..
}
There are several classes inheriting from AbstractEntity like
public class Patient : AbstractEntity
{
// ...
}
Now I want to enable the webservice consumer to create a new Patient object and save it:
service....
I am trying to write an Android app to connect to an existing web service. I'm pretty new to web services in general, other than what I've done with this first web services (written with JSPs, Struts 1.x, and JAVA).
This web service is connected to a document storage database. The user would first login to the service, then using search...
Hi, I am trying to figure out how I can hook up Jespa into the client generated by wsimport, so that I can hook up to a .Net service that is using windows authentication (the java client is running on Linux, so the built in ntlm authentication doesn't work). I would be grateful for any working examples.
Also, I can't change any global s...
Hi, I had a WAS application with web services, but suddenly it stopped responding to soapUI's WSDL refresh so I restarted a project from scratch and copied the java files.
The strange part is that the original URL was
http://localhost:9082/CompMgr_v1/services/CompMgr_v1/wsdl/CompMgr_v1.wsdl
But in the new workspace it was generated a...