soap

[xfire] How to return a mixed array?

Hi all, I'm working on XFire (on Grails) to expose a simple web service. The GaUser class has several subclasses (e.g. employee, admin, etc). The problem is that from this service, I only get the GaUser object, without the fields in the subclass. GaUser findUserByUserId( String userId ){ GaUser user = GaUser.findByUserId( userI...

WSDL: Function 'foo' doesn't exist

I am in the process of developing a WSDL for my SOAP API, and I've run into a bit of an issue. I started off with a single operation, and it worked fine. But as soon as I added another operation, I'm getting a rather weird error. Consider the following (stripped down for brevity): <message name="doSomethingRequest"> <part name="foo...

Is it possible to get the url of the customer who uses our Web Service SOAP

I'm new to SOAP, I work with PHP5 and I got my wsdl file with some functions in my .php file. I'm wondering if I can get the url from the customer who uses my Web Service. I want to validate the url in a php function server-side. ...

Does PHP SoapServer class allow to stream large amount of data?

is it possible, using PHP SoapServer class, to stream data back to the client along the computation? i know this is possible using ASP.NET http://msdn.microsoft.com/en-us/library/aa528818.aspx if not, is it possible to implement it? as far as i understand the php soap facilities, they only allow my functions to return a big chunk of d...

(soap:Server) Server was unable to process request. ---> String reference not set to an instance of a String. Parameter name: s

I am using savon to consume an API. Below are lines from my code. wSDL = "some_wsdl" client = Savon::Client.new(wSDL) response = client.soap_action do |soap| soap.body = "<sample>string_value</sample>" , "<sample1>string_value</sample1>" end I am getting an error (title) and below is the application trace. Btw, my wsdl is i...

Setting the detail field of a `FaultException` without object serialization

I'm trying to adapt a framework originally written for WSE to WCF. The framework sometimes throws SoapExceptions from deep in its bowels, which I would like to catch and transform into FaultException objects that the WCF framework will handle. In order for the existing clients of this framework to continue working, I need the <detail> f...

JAXB and XHTML inside XML

Hi, I'm using Apache cxf to create objects from a WSDL. Everything works fine but I have some XHTML inside the SOAP message and i don't know how to access it. The resulting xml is <folder> <id S="ID-KMEHR" SV="1.0" SL="idfolder">1</id> <patient> <id S="ID-PATIENT" SV="1.0" SL=" ">05040199</...

Problem with Web Service call on complexType data element using SOAPY in Python

I am trying to use SOAPy to access a temperature conversion Web service, for example to do a FahrenheitToCelcius temperature conversion. The WSDL file of the webservice defines the input message of the FahrenheitToCelcius operation as:- <input message="tns:FahrenheitToCelciusSoapRequest"/> with the FahrenheitToCelciusSoapRequest messa...

iPhone dealing with xml vs soap vs JSON vs RESTful

I do not have much experience coding systems dealing with web-services. Please help me in solving following confusion. One of my clients want me to build an iPhone App that had native UI controls but deals extensively with Web Services. Right from authenticating the user into a network to loading a list of users or anything related in t...

How can I create and Apache Axiom element from a E4X object from a script running in Rhino?

I am running a script running in Rhino, which creates an E4X object like this: var s = <product id="123"> <name>Google Search</name> <source>https://google.com&lt;/source&gt; </product> I want to include such XML in a SOAP message. I am using Apache Axis 2 ServiceClient for creat...

Best soap tutorials

I am looking to start a project that will involve the use of soap quite extensively. However... I know nothing about it! I was wondering if the community here could point me towards a few of the choicer tutorials on the net instead of having to wade through countless sub-par search results. And when I say I know nothing about it, I mean ...

PHP SOAP server is sending back a partial response.

I've written a SOAP service so my Silverlight application can add entires into my database. The server is written in PHP, and in order to test everything, I've written a PHP client. My client seems to be sending its request correctly. This is what is generated when I call _getLastRequest(): <?xml version="1.0" encoding="UTF-8"?> <SOAP-...

PHP Object has values but when I try to use it in FOREACH() I am getting NULL value

I am writing a php app that interfaces with a companies SOAP API. I am making a call against one of the APIs functions and receiving an object back. However when I try to use a foreach on one of the objects variables I am receiving the error: Warning: Invalid argument supplied for foreach() in ... My code: // Make Call and get res...

What options could affect php SOAP/WSDL output

I am getting two different responses from different Magento installations. They considered to be the same and both should work but second response can’t be parsed by my Axis Java client app. And I don’t know if certain newer version of Axis can parse both. Both installations use the same Magento version 1.3.2.4. Second installation is r...

Designing WCF Contracts (Operation / Data)

I am currently looking to design some WCF services and wanted to get the community's opinion on the best way to handle operation / data contracts. I have 2 basic operation contracts, the first creates a quote and the second adds an item to a quote (and calculates totals behind the scene). The first takes in customer information and sto...

Attachments with php's built-in SoapClient?

Is there a way I can add a soap attachment to a request using PHP's built-in SoapClient classes? It doesn't look like it's supported, but maybe I can manually build the mime boundaries? I know the PEAR SOAP library supports them, but in order to use that I have to rewrite my entire library to use it. ...

What are some good technologies in ASP.NET for providing APIs to your clients?

I've been looking into WCF services. Is there anything out there that is built on top of WCF that is able to provide APIs in different formats (SOAP, REST XML, REST Name Value Pair, PIPE-DELIMITED, CSV, etc...?) ...

What is the size limit of a SOAP message's input parameter

Is there a size limit on a SOAP message's input parameters? I currently need to get a potentially large-ish string with the request, so I'm trying to decide if I will have to use SOAP attachments or not. I am using Java Web Services. Thanks, Alex ...

Service android json or soap?

Hi! iam about to call a service from my server. Should I use Json or Soap? My service is in asp.net Are there not any packages in android that has to do with the service connections? ...

How web request executed via internet?

I want to know how web request executed while requesting any information from other server. I want to know internal of this message processing means when we click any button on web page then how it converted to GET/POST request in proper message format inclucing SOAP etc. Is there any link or book from where i can get these info. Please ...