soap

File Attachements with PHP5 SOAP

本小妞迷上赌 提交于 2019-12-22 14:02:09
问题 I'm writing some code to talk to a web service via WSDL-SOAP. I'm using php5's native soap implementation. So far so good. However I now need to download files as "attachments" over soap. The interwebs is mysteriously silent on how to do this. Surely its possible or the PHP docs would mention it as a limitation ? :\ I did this a few years ago with Pear soap but would really prefer to use the native Soap implementation. 回答1: Please see my answer here. Perhaps this may be helpful. 回答2:

Versioning SOAP body vs entire service?

给你一囗甜甜゛ 提交于 2019-12-22 14:02:07
问题 Trying to understand versioning with SOAP and web services. From what I have found it seems acceptable to do something like this with the URL: www.company.com/service/01-12-10/ and www.company.com/service/03-08-10/ and www.company.com/service/ support the latest version. I understand this is the way to go as opposed to just versioning the SOAP body/payload like this: [client] someRequest = newRequest(){ ClientVersion = "1.0.0" }; webService.Go(someRequest); [web service] if request

Axis2C unofficial vs. Axis2C Staff

馋奶兔 提交于 2019-12-22 13:58:39
问题 I´m going to be developing an application that will be using some framework for SOAP based web services. I did some research and I kind of like Axis2C framework but here in some topics I found out that original Axis2C implementation suffered from memory leaks and that it´s official development has been stoped. Luckily, there exists Axis2C unofficial branch and also Staff framework based on Axis2C. Now, the question is, which of this Axis2C descendants is better or easier to use? I know, that

To SOAP, or not to SOAP? That is the question

落花浮王杯 提交于 2019-12-22 13:46:17
问题 I have a background in protocol stack - for 3g handsets. Now I need to communicate from an Android slate PC to a server, and I will code both sides of the interfacet. Update: I ought to have said, from Android (multiple) slate to local server (multiple), then over satellite to a single central master server. And now I think that I might not be implementing, just designing so looking for something easy for junior engineers to handle SOAP looks ok, but are their any good IDEs to develop

C# Serialize object to SOAP string array issue

徘徊边缘 提交于 2019-12-22 13:00:49
问题 I have an issue where trying to serialize an object containing a string array to soap causes an exception in my application. I am doing the following to create the soap formatter: XmlTypeMapping mapping = new SoapReflectionImporter().ImportTypeMapping(obj.GetType()); XmlSerializer serializer = new XmlSerializer(mapping); when I call Serialize on the serializer I get the following exception. "Token StartElement in state Epilog would result in an invalid XML document." However if I just want

C# Serialize object to SOAP string array issue

£可爱£侵袭症+ 提交于 2019-12-22 13:00:21
问题 I have an issue where trying to serialize an object containing a string array to soap causes an exception in my application. I am doing the following to create the soap formatter: XmlTypeMapping mapping = new SoapReflectionImporter().ImportTypeMapping(obj.GetType()); XmlSerializer serializer = new XmlSerializer(mapping); when I call Serialize on the serializer I get the following exception. "Token StartElement in state Epilog would result in an invalid XML document." However if I just want

PHP Soap Issue: Server was unable to process request. ---> Object reference not set to an instance of an object

旧巷老猫 提交于 2019-12-22 12:45:11
问题 I'm using PHP 5.2.5.5 with Moodle 1.9. When I make a simple SOAP call without parameters, it works. However, as soon as I use a call with a parameter, it fails. If I capture the SOAP request with Fiddler, I see that it's not adding the parameter to the soap request at all. Here's my sample code: $WSDL = 'http://www.nanonull.com/TimeService/TimeService.asmx?WSDL'; $client = new SoapClient($WSDL); $response = $client->getUTCTime(); // WORKS $response = $client->getTimeZoneTime('ZULU'); // SOAP

Using a SOAP 1.1 web service from .NET 3.5

旧时模样 提交于 2019-12-22 12:22:11
问题 It appears that .NET 3.5 is enforcing the SOAP 1.2 schema when dealing with web services, even if the service specifies SOAP 1.1 in the schema for the SOAP envelope. Is there a setting to for the service reference to recognize SOAP 1.1? EDIT: The issue is the formatting of SOAP Faults returned from the web service to the .NET 3.5 client. In SOAP 1.1 it's acceptable to have the first sub-element of the fault to be <faultactor> . In SOAP 1.2 this is no longer valid - the first sub-element must

Hand rolled SOAP request

陌路散爱 提交于 2019-12-22 11:25:05
问题 I am trying to construct a hand rolled HTTP request in order to return a response from what I thought was a fairly simple SOAP web service call. However, I am having trouble constructing the request properly, and am not getting the response I expect. Applicable wsdl statements: wsdl Target Namespace: targetNamespace="http://tempuri.org/" wsdl Service <wsdl:service name="TrackerService"> <wsdl:port name="BasicHttpBinding_ITrackerService" binding="tns:BasicHttpBinding_ITrackerService"> <soap

Adding authHeader to Perl SOAP::Lite request

為{幸葍}努か 提交于 2019-12-22 10:54:17
问题 I am having some trouble creating a request to this WSDL that works; it requires authHeaders and I am not having much luck adding them. This is what I am trying: # make proxy for the service my $soap = SOAP::Lite->service($wsdl); # add fault hanlder $soap->on_fault( sub { # SOAP fault handler my $soap = shift; my $res = shift; # Map faults to exceptions if(ref($res) eq '') { die($res); } else { die($res->faultstring); } return new SOAP::SOM; } ); # authentication request headers my @headers =