web-services

what happens to asp.net web application (asmx ws) on IIS 6.0 when it's idle for hours or so?

I have an asmx web service and I load bunch of system data to internal data structures. This system data is used to check the validity of requests. However when there is no requests for say 3 hours (maybe less) the initializations are done again. The object that serves the requests has private static bool _initOk variable that contro...

How to deploy and activate SharePoint solution in SharePoint Server 2010 using web services?

In SharePoint 2010, site templates (.stp files) are deprecated. Instead, solutions (.wsp files) are used to achieve the same effect, but also beyond that. Uploading .stp file and using it was straight forward in MOSS and WSS. However, in SharePoint 2010, it is necessary to upload a solution and to activate it before using it. I need th...

Is it possible to use SharePoint web services to retrieve all items in a folder with a given ID?

I'm using the GetListItems method of the SharePoint List web service. I would like to get all items in a given folder, with a given ID (not path). The method allows you to pass in QueryOptions xml, which lets you set the Folder path. However, since paths can change, this is not that useful to me, and it would be much better to be able to...

Stoping web service in flex?

is it possible to stop a web service from executing? I have a flex web application that searches clients with both full name and client id, when searching by name sometimes the usuer just types the last name and it takes a long time. Since the app is used when clients are waiting in line, I would like to be able to stop the search and...

Communication between 2 web services on 2 systems.

We have a java ws deployed on Glassfish talking to another java ws deployed on glassfish (both are JEE 5 and both are being developed on netbeans 6.7.1). So neither of these ws use SSL, but when the main ws calls the other we are getting this error: WSTX-COORDINATOR-3005: registerResponse sent to EPR '<?xml version="1.0" encoding="UTF-...

Using variable value as name of variable for which to return value in C#

I am writing a web service to expose certain pieces of data to one of our third party applications. Their team requires a generic way to retrieve values of fields in our system. I have written a class where the only public members of the class are the values they need. What I would like to do is have them pass an enumerated string that i...

What to send back when deleting a dto from list

I have a service oriented architecture. The client holds a list of parent and child dtos that are bound to the front end. The service for this is a get that returns the full list of everything. When deleting is it better to: a. remove the object from the list on the front end on success of the service delete method (return bool for su...

Using Amazon services to query products on the amzon website.

Hi I'm creating a application where the user will type in the name of a video game and a query will be sent to a servelt. I want this query to search the amazon product database and if the game is found i want to grab the information such as the name, publisher, platform genre etc and add this information to my database. Just like price...

VB.Net: how can I get the source path of the assembly while running MSTest?

I'm trying to switch from NUnit to MSTest (for the Code Coverage option). We have some of the configuration for the application stored in files (the application finds them by using a relative path, starting from the "bin" folder, where the .dlls are). NUnit worked fine with this configuration. MSTest copies the .dlls in a test folder ...

Metro UsernameToken Policy

I created a web services client prototype using api's available in weblogic 10.3. I've been told I need to use Metro 2.0 instead (it's already being used for other projects). The problem I have encounter is that the WSDL does not include any Security Policy information but a UsernameToken is required for each method call. In weblogic I w...

pass multiple byte[] in a single parameter in webservice

how do you pass a multiple serializable byte[]? I assume i can't pass it as a strongly-typed array like this List<byte[]> to a webservice. So how do you do this? I need to pass multiple objects of byte[] to a single webmethod, what is the best way? ...

Little known or useful Web Services we all should know about

Web services and web APIs have managed to increase the accessibility of the information stored and catalogued on the internet. They have also opened up a vast array of enterprise power functionality for smaller thin client applications. By taping into these services developers can provide functionality that would have taken them months ...

Add request header field to JMeter WebService(SOAP) Request

It seems like the WebService(SOAP) Request of JMeter does not include headers in the request defined in a HTTP Header Manager. I want to send Accept-Encoding: gzip, deflate with every SOAP request of my JMeter test - is there a way to achieve that? ...

Does JAX-RS require data transfer objects (DTO)?

If a method of a JAX-RS application would return a domain object, the representation (say JSON) would contain all attributes of this object - right? But what if this object would contain "private" data, that shouldn't be exposed to the web? And what is about the other direction from outside in: how could be prevented that private fields...

security for web service with many methods

I am planning to write a .net web application using SOA, which means data operations are made using web methods. There will be many, many methods so I got the next questions: how should i handle security? should i split them into more services? call them using reflection? Any tips will help because i am new to SOA.. ...

javascript parallelism

Well, first I want to say I'm a bit new in the world of Internet dev. Anyway, I'm trying to know if its possible to run two pieces of code in parallel using javascript. What I really need is to call two methods that are in a remote server. I pass, for both, a callback function that will be executed soon the data I want is ready. As t...

ASP.NET WebService is Wrapping my JSON reponse with XML tags.

I'm not sure where I'm going wrong of what I'm missing. I'm building an ASP.NET 2.0 (on the .Net 3.5 framework) Web application and I am including a webservice. Note that this is not an MVC project. I wish to expose a method which will return a JSON string; formatted to feed the jqGrid jQuery plugin. This is the preliminary test metho...

Add webrefernce problem

I'm using Visual Studio 2008 and I'm trying to add a web reference. After putting in the URL the left part of the Add Web Reference dialog shows the methods in the webservice, but it won't let me add the reference because on the right I get back an Error message that says: HttpListeningConnectorUtility.initializeISRequest(). Invalid...

Mocking webservice calls...sometimes

I am trying to write acceptance testing for an existing app. I've run into a problem though when calling a web service that tells us if a person is, in short, in the office or not, what hours, and who the backup is. In most of the tests, actually calling the web service is fine... yes, ideally it shouldn't, but creating inputs and outp...

Advantages of Name Value Pairs to SOAP/WSDL

I see APIs such as PayPal, etc. offering to call their services using NVP or SOAP/WSDL. When using a .NET environment (3.5) using traditional web services (no WCF) which is better and why? I know WSDL lets you drop in the API URL and it generates the wrappers for you. So then why do companies even offer NVP? ...