web-services

.Net WebServices and out/ref WebMethod arguments

I've received some documentation from one of our suppliers for a webservice they're publishing and they're very specific that on one of their WebMethods that an argument has the out modifier(? not sure if that's the right descriptor) for instance consider the following WebMethod signature: [WebMethod] public void HelloWorld(out string s...

How to connect to a Oracle Database from Web Services Published on IIS

The situation is this: 1. Oracle database 10g on one server. Configured to accept connections. 2. Web service on different server (IIS), connecting to the database. This doesn't work. 3. Same web services running on the VS 2005 web server, work without a problem and can connect to the database. The problem: Do not know what is the issu...

XML Parse error while processing the SOAP response

I am using C# .Net 2.0 to write a webservices client. The server's soap implementation is tested and is pretty solid. gSoap/C++ applications had no problem reading the responses. However the .Net implementation complains "There is an error in XML document" while calling one of the methods. Similar responses recieved from the server were ...

Deploying .PDB files in IIS. Any benefit?

I am deploying ASP.NET and Web Service solutions to IIS for a development server. It looks like the last person that did this job deployed all the .pdb files too. I asked about it, and was told that they "provide better stack trace info in the logs" if they are left on the server. Is there any truth to this? I've always left them behind...

What is the best way to create RESTful complex queries?

Hello, What's the best way retrieve complex queries from a REST service? Suppose I want to get X collections, apply filters and equations to each one, combine the collections using some other operation and return one result, everything in one request. It is just too complex (and big) to put everything in the querystring since I could ...

What is a good design pattern to implement a dynamic data importer tool?

We are planning to build a dynamic data import tool. Basically taking information on one end in a specified format (access, excel, csv) and upload it into an web service. The situation is that we do not know the export field names, so the application will need to be able to see the wsdl definition and map to the valid entries in the o...

Is there a way to find out if a web service has security?

I've got a web service: http://machine001/Services/conversionService.asmx This web service has one method in it called convert(string pInput). I am trying to find out if there is a way to figure out, without logging into machine001 and without actually calling the convert method, if this web service has security applied. If I am able ...

consume a asp.net web service that returns json from an stand alone html page

I've developed a web service in asp.net and am able to test it from an in-project aspx page and can readily display the information that was returned in JSON format. I now need to consume the web service from a stand-alone html page. Does someone have experience with this? I'm puzzled by the part that would replace this <asp:ScriptMa...

WCF Exceptions thrown by ChannelFactory

I'm connecting to a service and using a Channel created by ChannelFactory. I would like to know what exceptions can be thrown while invoking service interface's methods (for example if there is a service interface named ICalculator and I'm invoking its Add(5, 4)). I can't google the topic because i don't really know how to name the probl...

Is RPC disguised as REST a bad idea?

Our whole system is being designed around REST and are now considering how processes which are quite clearly RPC in intent can be mapped to RESTful resources without using verbs in the URL. Our remote procedure call is used to rebuild our search index when a content listing has been modified elsewhere. What we are thinking about doing i...

wse 3.0 or wcf and where to start

I have created a web service which has a couple of methods developed using .net 3.5. The clients who will access the web service will be using .net 3.0. I have been asked to make this web service "secure" and having looked on the net have seen a number of options. First one is to use WCF with .net 3.5 for the service. If I develop the...

WebService attributes

Hi, I am creating a web service that generates the following in the WSDL file: <wsdl:portType name="myServicePortSoap"> and would like to have it renamed to generate: <wsdl:portType name="myServicePort"> How can I do that within the .asmx file to do so? Any ideas please? ...

best way to handle user id hash common to all rails requests

Each client is identified by a hash, passed along with every request to the server. What's the best way to handle tracking a users session in this case? I'm using restful_authentication for user accounts etc. A large percentage of requests are expected to originate without a user account but just the unique hash. My understanding of th...

Web Service Authentication using OpenID

I'm going to be developing a REST-ful Web Service for a new public website. The idea behind the web service is to have 3rd parties develop fully functional UIs for the business logic. For security reasons, I'd like to avoid users having to give their passwords for our service to the 3rd party applications. (Perhaps this shouldn't be a b...

C++ - gsoap : Parameter passing memory management issues

I am writing a web server and client test stub for it. I have questions regarding memory management of the parameters. From my client I am calling a soap function ns1_func1(input * pInput, output* pOutput) Now both input and output class contain pointers to other structs. For e.g class Output { class abc * p1; class def * p2;...

Error in webservice after publishing

Hi I created a webservice when it hosted on my local computer it works fine, but when i publish it to the web host, it doesnt work any more, i guess its a question about how the webserver is configured, but can i make some changes in web.config so it will work? The error i get is below: Configuration Error Description: An error occur...

What's a good book for learning WCF and services development?

Duplicate question: WCF Book Recommendation I'm an experienced developer, but almost all of my development has been focused on the desktop. In the very near future, I'm going to be responsible for creating services (web and otherwise) and will be utilizing WCF with .NET 3.5. Where should I start? Any recommended books or online gui...

WCF service settings problem. I added .svc handler in IIS but it keeps disappearing

Hi, my web service was working, then suddenly it stopped. After debugging I realized that there might be a problem in the config, and for some reason the .svc mapping was gone in IIS (Handler Mappings). I added the .svc mapping, and it is now updating my web.config and adding a node to the web.config (my previous web.config's didn't h...

Xml tool to test xml data

Hi guys, I'm in a project that loads a lot of XML from web services and I need to send the correct one and get the one I am expecting, a part that run the web app in Debug mode and add a breakpoint after getting the XML String, what can I have as a free plugin or even a trial program to let me see what XML is sending by my web applicati...

Detail question on REST URLs

This is one of those little detail (and possibly religious) questions. Let's assume we're constructing a REST architecture, and for definiteness lets assume the service needs three parameters, x, y, and z. Reading the various works about REST, it would seem that this should be expressed as a URI like http://myservice.example.com/...