soap

ASP.NET 3.5 WebService Compression for Flex

We have Flex applications that connect to our ASP.NET 3.5 Web Applications and usually download lot of data. Now considering XML as transport, for every item, it transmits meta data twice for example.. instead of transferring int value as <Customer CustomerID=23/> it transmits <Customer><CustomerID>23</CustomerID></Customer> .. now here ...

How to Consume SOAP 1.2 Web Service Created in WCF by a Java Client?

I'm developing a Web Service Project in which I have to implement a web service that should be interoperable on all platforms. So initially I used basicHttpBinding as it uses SOAP 1.1 but I want the features of WS-* like reliable messaging, security, exceptions. So I used wsHttpBinding which is a SOAP 1.2 standard. Now after deploying o...

Qt SOAP install

Hi, I've ran into problems installing the LGPL version of the Qt SOAP component: http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtsoap/ I've followed the instructions in INSTALL but can't seem to get it to build the DLL. Unpacking and installation Unpacking the archive (if you have not done so already). ...

Adobe Flex Builder WSDL classes autogenerator generates weird files

Adobe Flex Builder WSDL classes autogenerator generates wierd files. For example: http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl After importing it generates these files: ArrayOfForecast.as ArrayOfWeatherDescription.as ArrayOfWeatherDescription0.as BaseWeather.as BaseWeatherSchema.as Forecast.as ForecastReturn.as ForecastReturn0.as...

Can XmlDictionaryReader really handle binary XML? If not, what does?

I'm trying to write a debugging tool that allows the user to view WCF's new binary XML format (application/soap +msbin1) in plain text. Once I found the XmlDictionaryReader class I thought I'd be done in minutes, but it's not working as expected. private string DecodeBinaryXML(byte[] binaryBuffer) { if (binaryBuffer == null) ...

Casting C# Soap Headers from one assembly to another

Briefly, I have been given a custom soap header class CustomHeader that contains a string representing the user's security token. public string UserInfo { get { return this.userInfoField; } set { this.userInfoField = value; } } I have two webservices that both use the sam...

Specify order of elements in a SOAP response using java

I have a web service that returns a dataset object that contains the current weather forecast along with 0 or more weather alerts for a county/state. The dataset object just contains a Weather object and an array of Alerts objects. One of the clients of this would like to have it so the response gives the weather first instead of the a...

How to accept a collection of a base type in WCF

The Setup I have a WCF service that exposes a base type (e.g. Animal) as well as a few derived types (e.g. Lion, Tiger, and Bear). Another type (e.g. Zoo) includes a property that is a collection of the base type. The base type is concrete, not abstract, so it is perfectly acceptable for the collection to contain instances of the base t...

Restricting access to ASMX web service

There id this existing ASP.NET (2.0) web service that's called from PHP. Runs fine. Now the need arises to restrict access. Constraint: I currently don't have access to IIS/Windows account management to implement something robust,. I'm thinking about adding a SOAP header to the PHP call, containing a secret key, and then checking the c...

Why does soap use its envolope messages?

Why does soap use its envolope messages? And why Restful doesn't? They all use HTTP (post,get etc.) , don't they? What is the real difference between soap and restful? ...

Sage CRM web services example in Python

Hi all, I am trying to write a Python consumer for Sage CRM using their Web Services interface. I am using SOAPpy as Python SOAP library (not married to it, was easy to install on Ubuntu so went with it). Managed to fetch the WSDL using the Proxy and executed the logon method exposed by Sage CRM. from SOAPpy import * proxy = WSDL.P...

Implementing a callback in XML-RPC or SOAP

I am trying to get an understanding of how I can use SOAP or XML-RPC to create a remote, open API for my product. Problem is, part of my API will require me to be able to get events pushed from my server to the client - I will need to be able to "send a callback" and not only "call a function" as part of my API. Is there a good way to do...

BlazeDS vs SOAP and web services

Advantage for one over the other? ...

SOAP-ERROR: Encoding: Violation of encoding rules?

Guys, I'm stuck, banging my head off the desk for the past few hours. I am trying to consume a service, and I have 8 other functions that I call that are almost IDENTICAL in nature to this one, but this one, results in a 'SOAP-ERROR: Encoding: Violation of encoding rules' error. Heres the function call (wsdl omitted for security): ...

Adding Custom Http Headers to Web Service Proxy

I have an old application that uses the classic Web Service Proxy to interact with a Java Web Service. A while back the Web Service hoster decided to require a custom HTTP header to be sent with each request in order to access the service - otherwise the requests are thrown out outright (looks like this is some sort of router requirement...

C# Amazon Product Advertising API

As of August 15, Amazon made it compulsory to sign all requests made to their Product Advertising API. I thought I had got everything working just fine but when the 15th finally came around, my web application stopped working and pretty much ever since I have been trying to find out how to sign the SOAP requests. Amazon has an outdated ...

Writing the interface to a web service API

I'm beginning to design a web-based API and the very first issue—how will users interact with it—left me at a loss. This is an API that is only going to be used by other folks within our company and will be used by people who have some programming knowledge, so there's a good bit of leeway in all respects, and it needn't be simple enoug...

ASP.NET Web Services troubleshooting?

Working with one of our partners, we have developed now two separate sets of web services for their use. The first one was a simple "post to an https URL" style web service, which we facilitated by building a web page in ASP.NET that inspected the arguments in the URL, and then acted accordingly. This "web service" (if you can call it th...

How to return a 500 HTTP status from a C++ CGI program

Hi, I have a small "SOAP CGI gatewqay" C++ program that reads an HTTP SOAP request from cin, get the request info from it and sends it to the legacy server. Then it taks the response, format it as a SOAP response and write it to cout. In case of an error, it writes a <SOAP-ENV:Fault> reponse to cout. However, the SOAP standard says that...

How to add custom SOAP-Header element to the generated WSDL in Spring-WS

Hi, we are migrating from WebLogic web-services to Spring-WS (1.5.X). There is currently one issue we are facing: We need to pass a context object (on WLS it is passed as SOAP-Header element) to other services that are still running on WLS from the Spring-WS powered service. The header element is still formulated on client side and the...