web-services

How to add a "flat" message header to a flex web service call?

I have a flex client connecting to a web service that needs an authentication token added as a header, named "Identity". An example of the expected message is: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt; <s:Header> <Identity xmlns="ns">2188dcbe-0325-4c1e-9a77-19110e0ea99f</Identity> <To s:mustUnderstand...

Should I be using the xfire plugin with Gralis or is there a better way?

I have a web service in Grails, published using the xfire plugin. It's all fine and can be connected to no problem at all. But I'd like to modify the format of the request and response. Is that possible? The example structure is: Domain class Person, has many Siblings. Each Sibling has a Child. My web serice method currently looks som...

How do you consume a json or xml web service in Rails or Ruby?

An external web service is sending json or xml towards my app. What would be the best way to consume this data? Is there a built-in library in Rails or Ruby to do this or do I need to use a gem for this? ...

is WCF useful to build a client that uses a non-WCF web service?

I am brand new to WCF, and have limited experience coding against web services. At work it has been dictated to use WCF for everything network service oriented. The work I need to do involves querying a non-WCF web service, apparently built in Java, with a Netscape certificate server and related infrastructure (the service is not und...

iphone debugging help- see when objects are released?

I'm a little ways into developing my first iphone app, and I've been running into exc_bad_access a lot. (I'm sure it's because I'm not designing stuff in a very MVC-proper way yet.) It's extremely frustrating trying to hunt down why I'm running into these errors all the time... is there a way in the xcode debugger to keep a watch list ...

Throwing a XML Web Service Exception for invalid username / password

I've created a web service and am using a Soap header for authentication, as described here: http://aspalliance.com/805 I've adapted it, so that in every method, it calls a seperate "authenticate" method, which searches username and password in the db, and returns true or false. My question is, within this method, if it returns false (i...

Redirect WebService

I want to redirect my webservice A to another webservice B. So, i set the redirection in IIS. However, consumers of my webservice A get an error while accessing the webservice because they get a 302 message; and they dont handle it. I dont want to force all my consumers to change their code to handle this. I dont want to change my webm...

Web Service method signature changed to request/response objects for datatype string[]

I have two websites, both using .Net framework 3.5. One website is hosting a soap web service and the other is referencing this service. I'm having some unexpected happenings with my web method signatures. I have a simple method in my web service with a signature such as: [WebMethod] public string[] HelloWorld() { return new[] { "He...

how can I get the file version on the Internet but not download it ?

I get a file url,for example, http://cidian.youdao.com/download/YoudaoDict.exe how can I get it's version but not download it ? nots 1: if you download the file first on your computer,there are many ways to get it's version, for example ,you can use the window tools "filever.exe" to get the version. but i want to not download it ,at...

What is the best way to access SOAP WebServices from portable native code?

I need to access a SOAP webservice (written in .NET with MS SQL backend, FWIW) from several different platforms, so my common denominator is native C++. Is there a portable library for this or I should roll my own solution? ...

How do you know when to use an XML parser and when to use ActiveResource?

I tried using ActiveResource to parse a web service that was more like a HTML document and I kept getting a 404 error. Do I need to use an XML parser for this task instead of ActiveResource? My guess is that ActiveResource is only useful if you are consuming data from another Rails app and the XML data is easily translatable to a Rail...

Using dashed webservice methods names in .net

Im trying to use a cgi web service. The Web Service method names contains dashes and wsdl.exe removes them in generated proxy class. Trying to use the proxy class web service im getting an error : "Method 'q1:methodname' not implemented: method name or namespace not recognized" Then I've tried to change MedhodName parameters (with ori...

Consuming HTTPS web services

Hi, We needed to consume MOSS out of the box web services hosted on HTTPS protocol from a Java application running on WebLogic server. Do we need to import SSL certificate of the MOSS website into WebLogic server or can we simply bypass certificate validation? What is the best approach? We may need to support more than one web site as mo...

Received an unexpected EOF or 0 bytes from the transport stream when adding web reference to third party web service in VS2008

I am getting following error when I am adding the web reference to the third party web service to the web site in VS2008: There was an error downloading 'https://webservice-url?wsdl'. The underlying connection was closed: An unexpected error occurred on a send. Received an unexpected EOF or 0 bytes from the transport stream. VS complai...

Is REST suitable for document-style web services?

RESTful and document/message-style seem to be two trends to implement web services nowadays in general. By this, I mean REST vs SOAP, and document-style vs RPC-style. My question is how compatible REST is with document-style web services. From my limited knowledge of REST, it is utilizing http GET/POST/PUT/DELETE verbs to perform CRUD-l...

What is the most efficient/secure way to authenticate a web service in ASP.NET?

Background:** We have an ASP.NET web app which exposes simple ASMX web services such as: string GetOrders(string userName,string password,DateTime orderDate) : Return an XML string of customer orders based on the user (customer). void UpdateOrders(string userName, string password, Guid orderGuid, string orderXml) : Update an order's da...

Trouble Stepping Into Web Service...

Hi. I am wondering what is the best way to step into my Web Service? When I compile my code the application hangs when it gets to a web service method. If i try to set a break point and step into the service's code, it won't let me - catching "The operation has timed out". Things I have tried: 1) My SVC file has Debug="true" 2) M...

how to send request through web service proxy as a single packet (don't chunk)

Hello, I'm trying to utilize a web service through C#. In the web service documentation it states that the web service only accepts requests as a single packet/stream and not multiple packets. Does anyone know how to change this setting when accessing the web service through a web reference in Visual Studio? I am getting a SOAPExceptio...

.NET: Output caching for WebMethod?

Can I have the return value of a WebMethod outputcached? E.g. if the WebMethod has been called in the last X seconds or minutes, don't actually run the method again--just use the same result as it last served. Or should I roll my own caching internally in the class/WebMethod? ...

Is there a way to only return documents from a SharePoint Web Service Search?

If a query the SharePoint Web Service Search, is there a way to send a parameter so that it only return documents? There is of course the possibility to filter the result using the isDocument column, but is it possible during the query? ...