web-services

Mobile device connectivity with webservice on windows authenticated server

Hello All, I am developing blackberry application, which retrieves data from webservice. This webservice is hosted on windows authenticated server under private network. Does anybody knows how can I connect to integrated windows authenticated webservice without entering user id and password ? Or is there any way where I can send windo...

Webservice test isolation - but when to verify the webservice itself?

I am isolating my webservice-related tests from the actual webservices with Stubs. How do you/should i incorporate tests to ensure that my crafted responses match the actual webservice ones (i don't have control over it)? I don't want to know how to do it, but when and where? Should i create a testsuite-testsuite for testdata testing?...

ASP.NET : sending a soap request in a HTTP post request to a webservice

I have a webservice that exposes a function called ADD(int a, int b) and i am trying to send a request to it without adding a wsdl/reference and then calling the function, In other words, i want to explicitly send a request to the webservice address. so if i send a POST request with a well-formatted-soap XML envelope as the message, w...

resolving incidents (closing cases) in CRM4 through webservices?

Hello everybody, I'm trying to resolve/close Dynamics CRM4 cases/incidents through webservices. A single SetStateIncidentRequest is not enough and returns a Server was unable to process request error message. I think it has something to do with active workflows that trigger on case's attribute changes. I don't know if there's anything ...

Is javascript reliable for preventing actions on the front end such as form submission?

I have a webservice that I need called, the result of which determines whether or not the user is allowed to submit the form. Since this call is from javascript and not from code behind is it not reliable? Is there any way the user can get around the check -- by either going in with firebug and enabling the submit button, somehow making...

How can i return raw bytes from ASP.NET web service?

If the WebMethod returns string it gets serialized to xml. I want to return byte[] with responding ContentType - can I also specify it?. Can it be done in ASP.NET web service web method? ...

ASP.NET: webservice Returns {object[0]} instead of int

i've got the following simple webservice : [WebMethod()] public int Add(int a) { return a + 1; } i've created a class to call it (without creating a wsdl and then a proxy). something like: [System.Web.Services.WebServiceBindingAttribute( Name = "Addrequest", Namespace = "GenieSoft")] public class Addrequest : System.Web.Ser...

Namespace management with Web References

I have a seemingly simple goal, but I'm tripping over namespace issues. I wrote a sharepoint web service client class, called sharepoint.cs, and it has its own namespace. I want to re-use this class in other applications. The problem is it needs to reference a web service reference. Right now, when I add a web reference to the projec...

Where can I find documentation on not supporting SOAP method overloading?

Most of the work I do is with RESTful web services but one of our customers has a legacy SOAP interface. We're a Java shop and currently moving things to Grails and supporting their old SOAP service is adding "custom" development to our enhancements. Basically, their WSDL contains multiple operations with the same name that reference d...

ASP.net "generic" SOAP web services

I've developed a data access layer that grants the following methods to any subclasses: List<DataObject> Select(int primaryKey) List<DataObject> SelectAll() void Insert(...) void Delete(int primaryKey) void Update(...) I'd like for there to be some easy way I can wire them up to some kind of dispatcher that would look at the URL, pick...

JAVAX-XML-WS Handler

I got this example code from a website, can I get the parameter input value and response return value from handleMessage also? in this example i can only get the method name. (Method being called) public boolean handleMessage(SOAPMessageContext context) { // get the SOAPMessageContext SOAPMessageContext sctx = (SOAPMessageConte...

System Design / Architecture Best Approach

Hi, I have a system, that has 3 general parts to aid my description. 1) DATABASE- to store all tables, this same database will store data for other services as well including a web application, silverlight etc... (Needs to be flexible, if on a remote server, can be exposed via a web service, if locally, can connect locally or via TCP t...

SQL in web service best practices

I'm making a stateless web service which uses Microsoft SQL Server to read data (and only to read), without using transactions. What will be the best of the following: Starting SqlConnection at each call to the web service, or Storing SqlConnection in a static field. IMHO, the first approach will cost too much resources (if ten clien...

Error when added Service Reference to website

I'm getting the following runtime error when I added service reference to my website. The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. There should be no limit while transferring message. So, ho...

Flex 4 app behind proxy server w/auth fails to call webservice when launched from IE (firefox ok)

I have Flex 4 app which is deployed in internet. Just as an intro, when i'm behind our corporate proxy server, IE and firefox asks for username and password when accessing external websites. WHEN BEHIND PROXY In IE (i tested only in 8) Flex app starts fine, but it fails to invoke webservice - CallResponded result or fault event doesn...

Ajax post web service url error

Hi there, I am trying posting a data to a web service. And this service in a different project in same solution. This project name is WebServices and web service's name is HastaTahlilUyariService.asmx. My code is here: $.ajax( { type: "POST", url: "WebServices/HastaTahlilUyariSe...

Soap/WSDL2OBJC Webservice for iPhone improving performance

Hi, i'm using wsdl2objc to consume a WSDL and my biggest problem is that i sometimes get a response which has a size of 500 kb or bigger. This is unaccaptable for edge so i'm looking for ways to improve the performance. My first attempt was to use gzip but somehow it does not seem to work, if somebody used this successfully please point...

Java file not written to stream with new line characters

We're streaming a CSV file from a web service. It appears that we're losing the new line characters when streaming - the client gets the file all on a single line. Any idea what we're doing wrong? Code: public static void writeFile(OutputStream out, File file) throws IOException { BufferedReader input = new BufferedReader(new Fi...

webservice upload and progress

Please help me with this one, I'm not sure what the correct, or best approach is. Basically I have a webservice which takes a byte stream, enabling a c# winform application to upload files to the webservice. What I need is for the winform to upload in the background one file at a time (using basic multithread, it tries to upload them a...

Design of Android app to use web api

Hello, I'm starting an Android app which will have multiple Activities. It will be using a REST api with OAuth. I have tested the OAuth and have successfully parsed the returned xml. My question has to do with the architecture of designing a client like this. I have a HttpClient and OAuthConsumer objects which will be used from the var...