soap

Trouble connecting to SSL-encrypted web service with PHP

I got two certificate files from the provider, one in a .cer-format and one in a .p7b-format. I then converted the p7b-certificate to a p12-certificate. With this certificate I'm able to connect to the wsdl from my browser. Then I proceeded to convert that certificate to .pem-format, using some instructions I found on this site. openssl...

Namespace of struct instance in SOAP

Imagine a SOAP RPC method getBill that returns an instance of this class: class Bill: customer = String total = Double Now, assume that the Bill class and the getBill method are defined in two different namespaces, foo:getBill and bar:Bill What should be the namespace of the accessor element of the response message? The names...

param0 disappearing in Soap request in PHP using SoapClient class

I am trying to call a web service from PHP code using SoapClient. $service = new SoapClient($wsdl); $service->myFunction('something', 'anotherthing', 'onemore'); If I turn on trace and get the last request, I can see that the first parameter is always missing from the Soap message, i.e. param0 is never there. It's the same in function...

How to cache php soapclient responses ?

I know that you can cache the WSDL but is there a way to cache the soap responses through configuration of the php soapclient? Obviously, we could "cache" ourselves by constructing some tables in a database and running a cron. This will take much more effort and I am wondering if there is a way to specify caching abilities of the exp...

REST vs SOAP - Is SOAP really more secure than REST?

Hi folks, I am not an expert in SOAP, but from my knowledge SOAP is just an HTTP request formatted in XML in order to supply structured data. I need to implement a simple API with a list of parameters. I proposed using a simple REST interface, but I have been told that SOAP is more secure. Any ideas on this topic? ...

Soap - Element doesn't have xsi:nil as a property, but deserializing doesn't make the object not null

I'm a total noob when it comes to XML and SOAP messages. ...Here's the SOAP message. <?xml version="1.0" encoding="utf-8" ?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt; <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <CR> <...

C# WSDL proxy methods

I need to consume a SOAP web service from a C# .Net 4.0 client. I've added the WSDL as a Service Reference in VS 2008 and can now see the XML types as classes so I can construct the SOAP message. The WSDL Port is defined as an Interface and the two operations defined in the WSDL (UploadMessage and ValidateMessage) are visible methods...

How do I validate WSDLs and SOAP responses?

I am looking to build web services using SOAP. What standards should I follow for formatting WSDLs and SOAP responses and what tools are available to verify I am using the correct standardized formats? I was thinking something along the lines of W3C's HTML validator but for SOAP and WSDLs. Does any such thing exist? ...

Return a complexType class with nested arrays breaks web service, why?

I'm developing a simple web service using Eclipse, Axis1 and JBoss. The web service class looks like this: public class MyService { public ComplexClass getSomeData() { ComplexClass complex = new ComplexClass(); Children children[] = new Children[2]; children[0] = new Children(); complex.myFirstArray =...

PHP repeated elements in a soap call

I am having a problem with a soap call I'm trying to do from PHP. First some background information: The call is going to a system that does a person search on a big CRM system. It requires information like name, city, birthdate, etc. ) When successful, it should return one or multiple id's. The soap interface is a standard piece of th...

Zend_Soap : How to define return type struct in doc block?

I have a Web service set up using Zend_Soap, and some public methods in that Web service. The fact is i want to return a complex type. For instance, if i want to return a bidimensional array, like a rowset of a table how should i specify the doc block? This is one of my cases. I want to return an array each element having an int and two...

Two Easy PHP SOAP setHeaders Questions

Here's the code I'm using to generate the request headers: $headers = array( new SOAPHEADER($this->_ns,'username',$this->_username,false, $this->_actor), new SOAPHEADER($this->_ns,'password',$this->_password,false, $this->_actor)); $this->_client->__setSOAPHeaders($headers); This generates: <SOAP-...

Is there a better way to form a soap request in C#?

Is this even valid? XmlDocument doc = new XmlDocument(); doc.InnerXml = @"<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'&gt; <soap:Bod...

AxisFault: What does Server.userException mean?

What does the following AxisFault mean? Does it mean that: The request that is issued and received by the server and the server throws an (uncaught) exception, and therefore the exception is returned back to the client. or My web app fails to create the SOAP request (so the request is not even sent from the client app) NB. I'm n...

Any good open source web service testing tools?

Hi All, I m fairly new to SOAP based web services. I m looking for a good open source testing tool , that will help me automate regression testing. I found webinject. Was wondering , if there are any other tools. thanks. ...

WCF Client consuming ASMX Web Service with Soap Header

...

ResponseSoapContext.Current is null

Hi, I have been running a web service code on my own machine along with the client code. It was running fine and managed to receive the Dime attachments sent from the web service to the client. The web service uses WSE 2.0 and Dime attachments. The client code sits on the same machine that calls the web service. However when I go t...

What are some of the pitfalls/tips one could give for developing a web service

Looking to develop a web service (api) in PHP to offer customers an easier way to integrate with our platform. There are workflow calls that will be validated with user/pass as well as some reporting options. Sorry I can't post more details or code on the subject and I have never developed a web service but have had experience in using ...

Visual Studio 2010 SOAP service reference returns only null values

A client generated using Visual Studio 2010's 'Add Service Reference' tool returns a null value for calls to any remote function. The server is a Perl CGI script (SOAP::Transport::HTTP::CGI) that I know is functioning correctly through testing with other clients. I used POD::WSDL to generate the WSDL file that the 'Add Service Reference'...

Good idea or bad idea, to use non-deterministic ordering of xml elements in the output of a REST service ?

Hash.to_xml and other such Railsisms may result in element orderings being different in the output of a REST service. XML Elems are order sensitive, so this would not be a problem for JSON or XML attributes. What aspect of service definition best practices is this breaking that makes me think it is a smell ?? ...