web-services

Loop through JSON object List

Hello, I am returning a List<> from a webservice as a List of JSON objects. I am trying to use a for loop to iterate through the list and grab the values out of the properties. This is a sample of the returning JSON: {"d":[{"__type":"FluentWeb.DTO.EmployeeOrder", "EmployeeName":"Janet Leverling", "EmployeeTitle":"Sales Representative...

Invoking WCF service method through a browser

I've a WCF service which uses basic http binding. How do I invoke its operations/methods through a browser? ...

Trace Host of a SOAP Request

The software my company uses has a web service which signature is more or less like this: [WebMethod] public DataSet MakeQuery(string sql) { } NOTE 1: I don't have the code for this. Recently, we noted the Sql Server gets a lot of processes without dying, so I want to trace the input of this webMethod. Is any way I can do this? I...

Tool to test web services

Hi Guys, I was looking for a tool to test all my webservices whether they are up or down. Sometimes you run your application and you get exception. Later you find out that the abc or def webservice is down by looking into log files. So I want to run that tool before hand to know whether all my webservices consumed by my application is up...

Setting the default SocketFactory

I recently migrated my web services from Axis to CXF (2.1). It appears that while Axis needed the "axis.socketSecureFactory" set, CXF grabs the default. How do I set the default SocketFactory in Java to my own implementation (such as a property)? What I am not looking to do is to set the default SocketFactory properties like setting t...

How can I manually add assemblies to IIS's caching system?

My web service needs to access classes from external assemblies. The names of the external assemblies are only known at run time. Because the external assemblies are not explicitly referenced by the web service at compilation time, they are not cached by IIS. The result is that these assemblies are left in the web service's root director...

Connecting to a .NET webservice via a SOCKS5 proxy

Hi All I'm attempting to connect through a SOCKS5 proxy to a webservice. Currently, my app.config is as follows: <system.net> <defaultProxy enabled="true" > <proxy proxyaddress="http://xxx.xxx.xxx.xxx:yyyy" bypassonlocal="True" /> </defaultProxy> </system.net> This works fine for http proxies, however it just doesn't connect to...

F5 works, CTRL + F5 doesnt...?

Hi, I have a simple solution with a windows client and a website. The website exposes a web service that the windows client consumes. So far so good. Here's the weird part. When running my solution in VS, the call to the web service doesn't work when I hit CTRL + F5 unless I run it with a simple F5 first. So each time I open the solutio...

ASP.NET Web Service WebMethod

I have a .asmx web service webmethod that I am successfully calling from jquery.ajax. The webmethod is functioning properly. However, it performs very slowly. The method itself does very little work right now. I have added CacheDuration = 120. That did not help. My real concern is how long it takes to actually call the method. When ...

Why WCF formatter is throwing an exception?

Am getting following error message on calling WCF service: "The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:fieldText. The InnerException message was 'There was an error deserializing the object of type System.String[]. The maximum ...

Downloading images via WCF vs WebClient

I'm fetching data (images, 200-400kb) from WCF service to Silverlight client and notice that the Silverlight stops for a fraction of second every time such message arrive. It's not really serious but the animation stops for a while and the whole user experience is ruined. Question time: 1) Do you think it would be beneficial to use Web...

Strategies to mock a webservice

I'm implementing a client consuming a webservice. I want to reduce dependencies and decided to mock the webservice. I use mockito, it has the advantage vs. EasyMock to be able to mock classes, not just interfaces. But that's not the point. In my test, I've got this code: // Mock the required objects Document mDocument = mock(Document.c...

custom field not show

hi, I have make a custom textfield and put a default value in. That's working good but the value i wanne have in the textfield is using a webservice. When i try to initiate the webservice the custom field doesn't show anymore. I initiate my webservice like this public CusterNameService.ServiceSoapClient demo = new CusterNameService.Ser...

How to keep link alive on mongoose web server

I try to use keep-alive connection mongoose, but it seems mongoose close the connection first. I changed the embed.c to send back the connection: keep-alive. The connection is still closed after response. border@ubuntu:~$ nc 127.0.0.1 9999 GET /test_get_request_info HTTP/1.1 Connection: keep-alive HTTP/1.1 200 OK Content-Type: text/pl...

Bind ObjectDataSource to Webservice

Is this possible, does anyone know of any good examples ...

CXF & SSL: Timeout Troubles

Hi all, I've got the following code that I am trying to use to access a webservice via HTTPS using Apache CXF. But whenever my message goes out, I get nothing back until my code times out. Can someone give my code a once over and let me know if I'm doing anything wrong. I've tried to access the service via SoapUI and that's fine, so ...

Transformation error: "The current event is not START_ELEMENT but 2"

Similarly to an older post I'm trying to access a web service with JAX-WS using: Dispatch<Source> sourceDispatch = null; sourceDispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD); Source result = sourceDispatch.invoke(new StreamSource(new StringReader(req))); System.out.println(sourceToXML(result)); where:...

Design a client layer over a set of web services

In a rather large .Net application I have a web services layer that I use both as an external API and also in my own web pages. I am thinking about implementing another layer, a client layer that will communicate with the services and to use these client objects in my pages. Since each web services corresponds roughly to a functionality ...

web service

I have web service, which use integrated security in IIS. Now, I want to test my web service. I created a console application and adding web reference. now, when i m trying to use web method. It show 401 error. m i missing any authentication. I think i need to pass user name and password programatically. can anyone direct me in right di...

Web Service SoapDocumentMethod OneWay Issue

First, I'll say I am not making this up. I have a web method implemented in a asmx file like this: [WebMethod] [SoapDocumentMethod(OneWay=true)] public void Method1(INPUT oInput) { // Call SQL stored procedure SP1 // Call SQL stored procedure SP2 } Using SQL Server Profiler I see stored SP1 get called, but SP2 does not. If I set...