web-services

GZIP-Encoded HTTP Response in adobe air and flash builder 4 data centric web service

Hello, I am using data centric service in flash builder 4 (beta 2) to call betfair web service. I need to set the encoding to gzip when requesting the web service. I have found a nice tutorial at http://blog.dannypatterson.com/?p=133 to use GZIP encoded http response using WebService class in Flex. But I need it in new data centric fo...

Edit connectionstring of Web.config in webservice (ASPNET)

Hi! I'm using webservice for my Desktop application(C#). I want to edit my database connectionstring programmatically in web.config(in web service) through C#. How to do this? Any simple idea? ...

Access to restricted URI denied" code: "1012 - Cross domain Ajax request

Hello Guys I Need to do cross domain Ajax request - Here is my code $.ajax( { url: redirectURL, data: $('#login-container form').serialize() + querystring, type: 'post', cache: false, dataType: 'jsonp', jsonp: 'jsonp_callback', }); Error: [Exception......

how to set JAXWS_HOME location for jaxws , where is jaxws is located in windows machine

hi all i am creating a simple java webservice in eclipse IDE. webservice is published using Endpoint.publish method. when i started creating client for this webservice, it says i need to run " wsgen -cp . ch01.team.Teams " command which will generate Java types needed by the method Endpoint.publish to generate the service's WSDL.i am ...

Calling web services from ASP.NET application and connection management

I have an ASP.NET application that calls other web services through SSL (outside the application). I simply added a web reference (https://url/some.asmx) and used the web services and it works well. However, my questions are, how is the connection (channel) managed? is the connection to web services dropped after each web services call? ...

Make an interface structure appear in a WSDL

Hi all, I've exposed a method on a web service to return an interface and sending back conrete classes using the [ServiceKnownType] attribute which works very well. However, the wsdl description does not display any of its properties or any xml structure for this interface, this is the same when i send back List it gives it a default t...

Web Service error that has occurred several times

Hi, On a number of machines (with Asp.net 1 and 2) we have seen the below error with a random file name (with Dll extension) produced each time we try to make the web service call. In the past we have had to reinstall asp.net and that seems to have fixed it. However, on one occasion we tried to get the command prompt and windows came ...

Asp.net dynamic compilation

With Asp.net web sites and ASMX web services, can some explain what can change once an application has been deployed. For web sites, I can see that the you can change the aspx files but for web services, I am not sure what can be changed. Any real-world examples of where changing files and dynamic compilation is useful?. JD. ...

Web service for live Forex data for Eastern Europe currency?

Is there a Web service for live Forex data for Eastern Europe currency? The yahoo data is updated with a couple of minutes delay, so I don't want to use that. I've seen some Java Applets, but thy are no use, as I can't extract any data from them. As a specific request I'm looking for quotes on the Romanian currency, RON. ...

how to connect to a web service from windows mobile(when running emulator)

Hi I have as asp.net webserver that I hosted and I went to my mobile application I am building and made a web reference to it. So it finds it and stuff and now I can access the web methods because of the wsdl generated. However when it tries to connect I get this: Could not establish connection to network. So do I have to enable some...

Where do we need XSD.exe

I have been working with WebServices for sometime. I dealt with many services where XSDs were linked with WSDL for validation and such... But whenever I get any such requirement, I always used WSDL tool to generate proxy using .wsdl and .xsd files. The type defined in XSD were automatically generated in the proxy. I know what this tool...

Webservice to convert file to base64 string

Is there a webservice available that will take a url of a file e.g. http://example.com/images/image.jpg and return a base64 encoded string of that file preferably in json format? ...

Java Web Services: sending files using DataHandler class

Hi I'm new to Java Web Services, so I might be doing things wrong. I'm trying to transfer a file using the DataHandler - this is what I've got: Web Service: import java.net.MalformedURLException; import java.net.URL; import javax.activation.DataHandler; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebServic...

Access List items in hidden "Forms" folder using Lists.GetListItems

Is it possible to access the list items in the (hidden) "Forms" subfolder of a document library using the Lists.GetListItems web service method? I need to set the content type of uploaded document templates using Lists.UpdateListItems, otherwise, document created from these templates will have the 'Document' content type and not the cont...

wsdl2java ant task: howto include wsdl file name in java file comment

We're generating Java files from WSDL descripitons using the axis-wsdl2java ant task. <axis-wsdl2java url="${src.dir.etc}/wsdl/BLAH.wsdl" output="${build.dir.generated_src}" timeout="240000" testcase="false" verbose="true" skeletondeploy="false" serverside="false" debug="false" helpergen...

Automatic Deployment of Webservice

We've been using Visual Studio 2008 to deploy/publish our webservices for a while now and we'd like to automate the build (get code from sourcesafe, build, label the code, copy files to test pc,...). For our other projects we use Kinooks Visual Build but I can't get it to deploy as Visual Studio does. As the developers at Kinook advised...

Do I use a web service or a HttpHandler to serve images ?

Hi guys very simple question for you.. To serve Images is better a web service or a HttpHandler in asp.net c# ? what is the difference ? Why I should prefer one instead another ? thanks ...

DTOs vs Serializing Persisted Entities

I'm curious to know what the community feels on this subject. I've recently come into the question with a NHibernate/WCF scenario(entities persisted at the service layer) and realized I may be going the wrong direction here. My question is plainly, when using a persistent object graph(NHibernate, LINQ to SQL, etc) behind a web service(W...

How would you explain the term 'Web Services' to a non-technical person?

As a person of finance, how would you explain the term 'web services' to me. I've looked around and all definitions seem really technical. I've asked my colleagues and it's still not very clear. What's your take? ...

Web services and SQL Server 2005

Is it possible to set up SQL Server with a web service to receive and store data bypassing the IIS/ASP.NET layer altogether? I know it's possible to set up a web service via HTTP End Points and such to return requested data but I can't seem to find examples to show the opposite process. ...