web-services

"The specified module could not be found" error when running C# ASP.NET web service referring C++ dll

I have C# ASP.NET web service project in visual studio 2005 which refers a C++ dll. But when I try to run the web service I get the following error which is shown in the web browser: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the cu...

Accessing a password-protected WSDL in Weblogic when calling a web service

We're using Spring and JAXWS-generated client classes to access web services in a weblogic-deployed app. The WSDL defining the web service is remote and password-protected (basic http authentication). In a unit test it suffices to define a proxy in ~/.metro folder with the url and http password to use when accessing it. Is there a simila...

What is the good starting point to developing RESTful web service in Clojure?

I am looking into something lightweight, that, at a minimum should support the following features: Support for easy definition of actions through metadata Wrapper that extracts parameters from request into clojure map, or as function parameters Support for multiple forms of authentication (basic, form, cookie) basic authorization based...

NULL Guid in Soap/xml call

I am developing applications that communicate to a web service to access a database. One of the web service calls returns data held by a node in a tree structure by taking either the GUID of the node, or NULL to return the root node. Adding a web service reference to a managed project easily allows null to be sent as a parameter, but ...

CXF - Webservice method with parameter type as Element

Hi, I am trying to develop SOAP based webservice using CXF. My requirement is to accept any XML data structure as method parameter and then the logic to parse/handle this data would be internally taken care by webservice (A generic webservice for accepting request). Hence I want to declare the method parameter as either org.w3c.dom.Elem...

C# Cant reuse Http connections. No KeepAlive header. HttpWebRequest.KeepAlive = true;

Ok. Here is the full code. I tried to reuse connections setting KeepAlive but it simply doesnt work. I looked in the Http messages using Feedler and Charles but all I can see is Connection: close in response. I see 600 TCP connections in wait state opened by 10 threads. Each thread run one http requst at a time. There is also bunch of ...

C# How to force reusing authenticated Http connections?

I cant make my Http connections to be reused. HttpWebRequest.KeepAlive setting makes no difference. I found this article which says that if you have NTLM authentication then use UnsafeAuthenticatedConnectionSharing = true. So I set it to true and still have same bunch of TCP connections and nothing similar to reuse.. Any thoughts? ...

.NET Web Service "Could not create type"

The markup and code-behind file contents for my .NET Web Service are as follows (pretty much what VS generated): Services.asmx: <%@ WebService Language="VB" CodeBehind="Services.asmx.vb" Class="Services" %> Services.asmx.vb: Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel <System.Web....

receive JSON array as argument in web service

I'm using a web service programmed in Visual Basic .NET 3.5 to receive a JSON Array sent from other application. I'm sending a JSON string like this one: [{"idRecoleccion":1,"PIN":"553648138"},{"idRecoleccion":2,"PIN":"553648138"}] And I'm receiving the code in Visual Basic .NET as follows: <WebMethod()> _ Public Function ConfirmaR...

Deprecating ASP.NET Web Methods

I have some internal-facing ASP.NET web services that have had numerous API additions over the years. Some of the original web methods, while still available for consumption, have recommended replacements available. I would like to steer consuming clients toward using these new methods so I can retire and eventually remove their elders...

Create Outlook Calendar through .net application

Is it possible to create a shared calendar in Outlook programmatically through a WebService, I am looking for behaviour similar to the calendar integration in SharePoint? The calendar would need to be read only and would not need to reflect changes back to the WebService (at this time) ...

How to hide Web Reference from another project

I have two Visual Studio 2008 projects which are in the same solution. How can I add a Web Reference to project A so that project B doesn't see it? Project A needs web reference to WebService1 Project B shouldn't be able to see A.WebService1.* but needs reference to project A I don't want to manually modify the generated classes for ...

Pass windows credentials to Exchange 2007 web service VB.NET

I am trying to interop to Exchange 2007 via its web-services and have the following issue; Authentication mode = “windows” in the web.config…. Why isn’t the default credential passing the current user to the exchange webservice (EWS)? Dim esb As New mailserver.ExchangeServiceBinding() 'Provide the NetworkCredential esb....

webservice that returns JSON data

Hi frnds.... I have tiered of Googling but did't get any clue for myself. I want to make a web service which will have any method (let say-ProductInfo) & when i pass a productId in this method this will return the entire information of Product(like-ProdName,ProdPrice etc) in JSON format(File is downloaded with the Information of product...

Calling a WebService caused a "org.xml.sax.SAXException: Bad envelope tag: sProfile" exception

THe WSDL is: https://webqa.cfwebservices.dealerconnection.com/cfwebservices/fcsdwsdlservlet?wsdlfile=CMDPrv I mocked a WebService response as: <% response.setContentType("text/xml;charset=utf-8"); response.addHeader("Pragma", "No-cache"); response.addDateHeader("Expires", 0); response.addHeader("Cache-Control", "no-cache"); ...

Passing generic type of webmethod

im passing a array of KeyValuePair<string,string>[] how ever when it get to my sliverlight client it turns into {web service name}.KeyValuePairOfStringString and i cant get the values from it. any one got any ideas how i can access the key and value propties? ...

Help: Contract First Webservices

I want to write a high level design document for a application which will expose it's webs ervices for various clients. For this purpose I need to provide the WSDL of webservices that we will develop in the future at server side. I've use web services earlier but never drill down in the details of WSDL. I searched a lot and found that I...

Deleting a document via sharepoint web service using JQuery

I am trying to delete a document, using the sharepoint webservice, if someone uploads a document and then hits cancel. I have created the following function function DeleteDocument(libraryName, ID) { debug.log('DeleteDocument (Entry) libraryname = '+libraryName+' ID='+ID); var batch = "<Batch OnError='Continue'> \ ...

Best Practices to Deprecate WCF Services

Is there any attibute or similar mechanism to inform a web service consumer that a Service/Operation contract has been deprecated? I have a set of WCF services that need updating. As part of this update I would like to simplify some of the original design. I plan on leaving the existing operations in place but I would like to somehow ...

Ignoring webservice errors. TryXXX pattern

I have a method that need to try to update my twitter status. I will send a lot of messages and I want to continue if some message throw a error. Today I catch everything, but I dont like. Maybe should I put this catch at the caller? Or return exception instead bool? public bool RefreshStatus(string status, out Status newStatus) ...