web-services

How can I pass complex types like objects using Webservices ?

Hi, This may sound like a simple question but as am newbie in Webservies and this is my first time using it and so am asking my doubt. Q: How can I pass objects or complex types using Web Services ? I have created a simple webservice and am passing string and integer types but I am not sure how can I pass objects using webservice and...

Best Practices for Designing a Simple Web Service w/ Return Codes

I'm designing a WCF service that will return a response code (such as 0 for success, or another number for errors). Also, all methods of the web service will perform several common validations (such as authenticating an apiKey). I am wondering if there is a best practice approach or organizing and retrieving these response codes and mes...

Encoding in SOAP-Faults (Spring Web Services)

I want to encode a String with special characters in a SOAP-Fault. The client is complaining that in the SOAP-Faults, the encoding is not correct, in the usual SOAP Responses it is. I can't find out how to specify encoding (with Spring Web Services) for SOAP-Faults. The only way I found is specifying the Locale for the Fault text with S...

WCF XMLSerializerFormat: I keep getting casting errors if I use it!

I keep getting an error when I have an interface with more than one method tagged with the XMLSerializerFormatAttribute and I'm not sure why... [ServiceContract(Namespace = "http://www.mysite.com/Services/Foo", ConfigurationName = "IFoo")] public interface IFoo { [OperationContract(Action = "http://www.mysite.com/Services/Foo/Select...

Best way to access a Rails 3 REST-ful web service using a VB.NET consumer?

What is the best way to access a Rails 3 REST-ful web service, developed using standard Active Resource techniques including HTTP authentication over SSL, from a VB.NET consumer? Consumer can be .NET 4.0 if that is necessary. Are there any .NET libraries yet that can bridge the gap? I have already come across links like this (http://...

How to extract attachments from a Soap Message in Spring

The soap message successfully comes across, and I can print out the envelope just fine, but the attachments are always zero. Even though I put the exact request through SoapUI, and the attachments show up fine in that. Maybe this isn't a valid way to extract the attachments. I'm adding this to the sendandreceive method. private class At...

Implement repository service in java

I want to have a repository of Url to music(audio and video) with different file types (mp3,ogg,flv,avi) which can be used as a web-service. Is there a free or open source solution for a repository (for example written in Java) which could help me, or do you have some recommendations, or patterns that could help me? ...

Getting started consuming web services in a Ruby on Rails 3 application

So I'm getting started learning Rails. Now that Rails 3 is out, I want to stick to learning the Rails 3 way of doing things. One of the things I want to learn how to do is how to consume web services / work with third party REST APIs / create "mashup" applications. I've only done minimal work like this with PHP and pre-built libraries. ...

WSDL generation problem

Hi, I have a WSDL, and when I import it in visual studio, i have not the mmboxError code generated. When the request is good, i have a good LogonResponseType with all my informations. But when I have an Exception,I can't have the mmboxError in Detail of SoapException. The result of exception is like this : <?xml version="1.0" encoding...

c# client soap with multipart/mixed

Hello, I have a web service who sends xml soap with multipart mixed like this : <GetMultimediaMessageResponse xmlns="http://www.logicacmg.com/mmbox/schema/REL-1-0-0"&gt; <Status> <StatusCode>1000</StatusCode> <StatusText>success</StatusText> </Status> <MultimediaMessage> <From><![CDATA[maurice <[email protected]>]]></From> <Subject>...

Factory pattern for test and live web services

Can web services be used in a factory pattern given that the code is auto-generated and I do not want to alter it (to add a base class for example)? A reason to do this would be if you had 2 web services that were identical but one was for test data and one was for live data and you wanted to switch between the services based on the env...

REST web service in python 3?

Hi, I'm new to the python world and I'm currently in a new project using it. So since we we're there to learn, we chose to start with python 3. Now, we need to make a RESTful web service. After reading a few, I found out that the most used framework for web services is Django... and I also read on the Django website that it does not yet ...

Making a class a full fledged webservice.

I am not using Visual Studio 2010. I have a class file that I marked as a webmethod. I am able to compile it using C# compiler targetting the .NET 3.5 framework. How can I make this a webservice? Any ideas? ...

PL SQL every other web service call times out

I have a .net webservice I am consuming in PL SQL using utl_http (Oracle 10G). The webservice call times out on every other call right now. This is only happening when I execute the PL SQL block, if I use something like SOAPUI I can spam requests. My code is following this example http://www.lostechies.com/blogs/joshua_lockwood/archive...

Working with objects received from web services

When working with web services, is it a good practice to have some sort of converter that converts the object from the web service to your domain object even if they have almost the exact properties? If it is not a good practice, why not? ...

Geocoding with Timezone information

Is there a good way to get Timezone information with DST information from a lat/long coordinate or a physical address? I've found some web services that seem to offer this service, but I can't tell how reliable they might be, or if they might disappear at some point. I need something for my application that will be around long term. ...

Separate servers handling WSDL file differently

Hi, Within a project I've been writing for the past two years I have a WSDL file which works nicely for use with my SOAP calls however we are now moving all of our code over to a new server and it seems to handle this differently. On the old server if I type in the file path for the WSDL file I can simply read it as if it's a text doc,...

Validate XML Schema in Delphi received by c# web service as a parameter

I have a C# Web Service that returns a XML as a result that will be consumed by a Delphi 7 application. Normally, I would return a .Net XmlDocument class if I had a .Net client, but, for Delphi, I'm returning a string. Below is the C# Web Service Code: public String ReturnXML() { XmlDocument xmlDoc = GenerateXmlMethod(); String ...

Could not establish trust relationship with remote server

Unable to download file from https://www.test.com/AssemblyDepot/v1.1/version600/1.1.3173.36029/xxx600.dll to C:\Program Files\Gateway\bin\xxx600.dll --> The underlying connection was closed: Could not establish trust relationship with remote server. Please any help me to resolve this issue, Thanks in advance, Pradeep ...

How can we call the CLI executables commands using Python

How can we call the CLI executables commands using Python For example i have 3 linux servers which are at the remote location and i want to execute some commands on those servers like finding the version of the operating system or executing any other commands. So how can we do this in Python. I know this is done through some sort of web...