web-services

Web Service Access Denied

Dear all, I have a problem with web service against Internet Explorer 7 or 8 I have a web application (ASP.Net), contain a page with textbox extends an autocompleteextender which fire a web service to retrieve the category list from SQL DB. The problem come after upgrading my IE from version 6 to 7 it give me an "access denied" error. Be...

How to authenticate and keep track of users with WCF/JSON?

I'm implementing a service in WCF and need to have custom user authentication, by means of a username/password. This service is configured as a WebScript(JSON) service. I would like to know if it's possible to obtain a security context so I don't have to include a hash or user/pass in every call. I know I can use a certificate for this,...

How to test Webservices with PHPUnit?

I neet to test a couple of SOAP webservices. What types of tests can I run? ...

what is the difference between XSD and WSDL

Hi what is the difference between an XML Schema and WSDL, I have been reading a lot of stuff, but I still get confused ... The difference I noticed is that WSDL contains XSD and in WSDL we can declare operations, but not in XSD. Is that correct? Thanks for your time and replies, ...

Create a reusable stub for multiple webservices (ASMX)

I'm having a couple of websites hosted different places, which I want to backup regularly. However I only need the user-uploaded files, so I've made a simple Web service on each site, with the same definition: public class BackupService : System.Web.Services.WebService { [WebMethod] public string[] GetFileList() { /...

What's the problem with this web service method?

Update: Problem solved. I have to call a web service method (dduLogin), which returns 3 parameters. I generated the code by "adding a web reference" through visual studio. This is the relevant part of the wsdl: <message name="dduLoginRequest"> <part name="Ticket" type="xsd:string"/> <part name="ServiceId" type="xsd:string"/> ...

Web services creation and consumption

I'd like to learn how to create a java web service that can be consumed by a web tier, which is constituted of java and flex. What books can help me learn how to create a java web service and consume it via java & flex? Should I look to build a web service from scratch or from frameworks like: XFire, Axis, CXF, Spring Web Services, et...

C# accessing folder/files thru webservice

How can I have a webservice read/browse a folder content ? For instance this type of code: FolderBrowserDialog folderBrowser; folderBrowser = new System.Windows.Forms.FolderBrowserDialog(); folderBrowser.Description = "..."; folderBrowser.ShowNewFolderButton = false; folderBrowser.RootFolder = Environment.SpecialFo...

Failed to initialzie DataContext in Silverlight RIA app (PDC'09)

I'm using Silverlight Business app template with RIA services (PDC'09 release). I've created DomainService, let's call it ListingDomainService (based on EF model). Then build the solution. Ok, now I can in SL project private void GenerateReport_Click(object sender, RoutedEventArgs e) { ListingDomainContext ...

Can AJAX calling a external webservices functions

<asp:ScriptManager ID="ScriptManager1" runat="server"> <Services> <asp:ServiceReference Path="WebService.asmx" /> </Services> </asp:ScriptManager> <script type="text/javascript"> WebService.GetUpdate("hhh",OnComplete, OnTimeout, OnError); </script> this code is working ...

Help me to understand <script src="some.js?param1=one;param2=two" />

I observed chunks like below sometimes on web pages. So i am curious to know what this really does? or why its written in such a way? <script src="somefile.js?param1=one&param2=two" /> i can only make out following few intentions behind it Its not page URL (i mean .aspx/.php/.jsp etc.) so its not hacking kind of code where user can ...

Return more than a single value from a WebService

I have to return a lot of values back to my windows application from my webService. But how would I return more than just a single string/int/boolean from my WebService to my Application. How would I return a collection, keyValuePair, or even better, a DataSet? Or is this just imposible? thank you :) ...

Using CXF web service from java web start

UPDATE: I have submitted my question to the CXF User's mailing list, here. UPDATE: I have currently signed all of my jars. I still can't seem to get CXF setup in a way that it can find the WSDL. My last attempt was to place the WSDL inside of my WAr file so I can access it through a web browser. I set the wsdllocation inside of the clie...

How can I make WCF talk to this web service?

This is a follow up of this question. As suggested by @Benjamin here, I am trying to add a service reference for my wsdl now (in stead of a web reference). Here is the url to the wsdl in question: https://eu.link.fiatauto.com/tsi/DDUWsAut.php?wsdl The problem is that Visual Studio generates an empty codefile: //------------------...

C# Error Report E-Mail - Web Service

Hey guys, I am trying to add the capability of my Windows Form application being able to send me an e-mail message when my application generates an error message. How do I setup a web service for my application? Any feedback would be greatly appreciated. ...

Does this "invite friends" system for my website sound flawed to you?

I would like to have a system where my users can invite their friends. We prefer not to use a URL shortener when sending the invite link but it is also important that the link be relatively short. I am thinking the best way to accomplish this is just give each user a "profile username" like "tonyamoyal12" and let them request a new uni...

Can a jax-ws web service use an rpc type call and receive raw xml?

Hello. I have a web service that I've been working on and it's wokrring fine so far by creating a port in the client and then calling a method on the port. However, I've just been told that a couple of the clients who will be using the web service plan on sending it raw xml based based off of the schemas used by the web service and I was...

Is there a .NET equivalent of WebGoat

Looking at this question the OWASP WebGoat project looks like a great way to learn about web security. Although the principles will equally to .NET applications I would prefer to use .NET based application. Does anybody know of a suitable .NET alternative? ...

Have a webservice and website in the same web root?

Hi I have an asp.net mvc site and a asp.net web service. I am wondering if it is possible to have them in the same root(wwwroot) folder? Like could I have wwwroot -> all mvc files wwwroot -> webservice folder -> webservice files Would this work? I don't want them all mixed together and I am sure having 2 web configs in the same roo...

Are 'by ref' arguments in WCF bad or good?

I've recently seen a WCF service declaring operation contracts with by ref arguments. I don't know why this design decision was taken (operations are void), but furthermore, I'm not able - from my WCF knowledge - to say if this is a good practice or not. Or if this is not relevant. What do you think? ...