web-services

How to call a web service from within a webservice

Hi, I am trying to create a web service which is a consumer to another webservice. Here is the layout.. I developed a java class and created a webservice out of it. Then i used eclipse tools to generate a client side stub and other files. I packed these files in a jar and used it in another project. I tested the files in the jar I w...

How to call Spring web service from RPG ?

We have developed SOA architecure for our intranet application, so our web-start java applications are connected to central app. server which is running on Spring HttpInvoker, things work pretty well. Now, we came up with need to centralize our business logic, so our need is to call these web services from DB2 RPG stored procedures. Is t...

Mapping WSDL enumeration to string in ASP.NET webservice

Hi, Background: I'm in the process of creating a web service using ASP.NET 2.0. This web service provides another interface to an existing web form which contains selection boxes dynamically populated from a database. My first draft of the web service accepted a string for each of these and then ensured that it was valid, throwing back...

Where/how do I localize exceptions raised in a web service?

Let's say I have a web service which returns a collection of images based on a passed in user. Now I call the web service with a invalid user. The call throws a UnauthorizedAccessException with a message saying the user is not authorized to get the collection. I want this message to be localized. Where do I localize this message, on the...

Calling a webservice from a subfolder

I'm using ASP.net and I'm trying to execute a webmethod from jquery. I have the following file structure: /MyWebService.asmx /MyPage1.aspx (referencing a javascript file which calls a webmethod in MyWebService.asmx) /MySubFolder/MyPage2.aspx (MyPage2.aspx referencing the same javascript file) My problem is that MyPage1.aspx can ca...

Web Service vs Form posting

I have 2 websites(www.mysite1.com and myweb2.com, both sites are in ASP.NET with SQL server as backend ) and i want to pass data from one site to another.Now i am confused whether to use a web service or a form posting (from mysite1 to a page in myweb2) Can any one tell me the Pros and Cons of both ? ...

WCF + SSL no endpoint found

hello guys, I'm figthing for hours now to figure out this problem. I have a wcf service that I host on II7, all works fine when I use the normal http protocol. I added SSL capabilites and since then I cannot access it from code. I can create a client but cannot run any of its methods. here is what I have <system.serviceModel> ...

Catching SoapExceptions from ASP.net Webservices

I have a windows forms client that consumes an ASP.net web service. It's my understanding that when an exception is thrown by the web service it will be converted to a SoapException in the .net client software. Well, I am catching the SoapException, but when I display the message on the client end in a messagebox, it shows more informa...

Calling webservice in C# using SSL - '(401) Unauthorized'

I'm calling a method on a web service from behind a proxy server using the following code: myWebService.TestWebService webservice = new myWebService.TestWebService(); webservice.Url = "http://test.com/webservice?wsdl"; WebProxy proxy = new WebProxy("1.2.3.4", 8080); proxy.Credentials = new NetworkCredential("username", "password"); web...

.NET Application receiving 503 Service Unavailable error when calling web service.

This is a bit of unusual problem that I'm experiencing, but recently one of the users of a production application started reporting errors in the system. These were traced to a 503 Service Unavailable error when making a call to a web service used by the application. Now here's the odd part, only the one user is affected by this issue....

Exposing an Enum to a WebService's client JavaScript without using it in a WebMethod?

I'm building an ASP.NET 3.5 application and would like to expose an enum I have in my WebService class without using it as a parameter in once of my WebMethods. I have a really simple example to illustrate what I want... Let's say I have the following WebService (I'll call it Agent.asmx): <System.Web.Script.Services.ScriptService()> _...

Exposing large webservice datasets for consumption by Access or Excel

I have a large dataset, say 1,000,000,000 rows, that lives on a server. I need a user to be able to consume (i.e. "run queries upon") that data seamlessly, over the web, from within Access and/or Excel. Additionally, I need to filter the data on the server-side according to the user connected to it. My current approach is to create a we...

Problem consuming deployed asp.net webservice to IIS6

When trying to update the web reference to a deployed asp.net webservice from a windows forms app, I get an error. Unable to download following files from .https://webserver/webservices/myservice.asmx?wsdl For some reason it is looking at a host called webserver, but that isn't what it needs to look for for the WSDL. It needs to look a...

Is there any way for an ASP.NET webservice method to use async methods?

I have an ASP.NET webservice (.asmx) with a simple method that reads something from the DB with a sync call (ExecuteReader) and returns the result. There is any way to optimize the Thread Pool usage (ie. by calling an async call (BeginExecuteReader)) without changing the method's signature? The intention is to not block a thread pool th...

WCF: Service that only allows a single client and rejects others

I need to create a WCF service that only allows a single client at a time. All other requests should be rejected, and the client must retry again later. The service will take around a minute to complete the request. I've tried: [ServiceBehavior(IncludeExceptionDetailInFaults=true, InstanceContextMode=InstanceContextM...

What are some good resources for developing RESTful Web Service Schemas?

So, I'm looking at building a brand new REST WS API for my application. I've done my homework on the technical side and feel fairly confident about setting up paths/to/resources.andTheirRepresentations. However, does any one have any suggestions on good resources for processes to develop what those paths should be? What methods should be...

Example of a good Webservice

Hi guys, I'm tasked to design a new API for our infrastructure. Some of the things I'd like to do is: implement oauth for authentication good xml-based structure, adapting ATOM, GEO-RSS and other xml schema standards where applicable. JSON output Some of the things I've been thinking about is applying REST. In practice I find it's n...

How to do a get and post in php with restful web service server side

Hi can anyone past some code how to do a restful web service get and post method. This would be server side so I would be able to invoke the two services from a client. Thanks! ...

Why am I getting this WCF Error Message?

I am getting the error below when I call my WCF service. What am I missing here? 'System.String[]' with data contract name 'ArrayOfstring:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or b...

Why does this Flex "Hello World" app not pick up the result of my remote HTTPService call?

When I go to http://localhost:3000/hello/sayhello, Rails outputs: hello world! as HTML. But when I run this Flex remote "Hello World" app, I see a button and a textbox but it does not pick up the output of the HTTPService call to my Rails url. Any ideas why? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http:/...