Questions tagged [soap]

Simple Object Access Protocol (SOAP) is a protocol specification for exchanging structured information in the implementation of Web Services.

The SOAP specification defines the messaging framework which consists of:

  • The SOAP processing model defining the rules for processing a SOAP message
  • The SOAP extensibility model defining the concepts of SOAP features and SOAP modules
  • The SOAP underlying protocol binding framework describing the rules for defining a binding to an underlying protocol that can be used for exchanging SOAP messages between SOAP nodes
  • The SOAP message construct defining the structure of a SOAP message

XML was chosen as the standard message format because of its widespread use by major corporations and open source development efforts.

Frequently Asked Questions

People often ask these questions related to SOAP:

27664 questions
61
votes
3 answers

How to dump SoapClient request or response for debug?

I need to debug some code which uses the SoapClient class. I found methods documented like __getLastRequest(), but it only returns null. $client = new SoapClient("https://example.com/service.wsdl"); $response = $client->DoFunction([ …
Denis Kreshikhin
  • 8,856
  • 9
  • 52
  • 84
60
votes
5 answers

Create WCF service for unmanaged C++ clients

I need to get unmanaged Windows C++ clients to talk to a WCF service. C++ clients could be running on Win2000 and later. I have a control over both WCF service and which C++ API is being used. Since it's for a proprietary application, it is…
galets
  • 17,802
  • 19
  • 72
  • 101
59
votes
5 answers

Why use XML(SOAP) when JSON so simple and easy to handle?

Receiving and sending data with JSON is done with simple HTTP requests. Whereas in SOAP, we need to take care of a lot of things. Parsing XML is also, sometimes, hard. Even Facebook uses JSON in Graph API. I still wonder why one should still use…
Umair Khan Jadoon
  • 2,874
  • 11
  • 42
  • 63
58
votes
2 answers

Difference between REST and WebServices

What is difference between REST and WebService (SOAP), I looked at the facebook api, they use HTTP headers and some parameters (probably xml or non) and return result in xml, where else SOAP does exactly same, HTTP headers + xml parameters and…
Akash Kava
  • 39,066
  • 20
  • 121
  • 167
57
votes
4 answers

org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it

I'm getting an error when I try to generate an element that should look like Using the java client code generated by Axis2. java snippet HoldPayment hold = new HoldPayment() cr.setHold(hold); but when I fire it off I get an error of…
yurl
  • 641
  • 2
  • 6
  • 6
57
votes
2 answers

SSLHandshakeException: No subject alternative names present

I am invoking HTTPS SOAP web service through java code. I have already imported self-signed certificate in jre cacerts keystore. Now I am getting : com.sun.xml.internal.ws.com.client.ClientTransportException: HTTP transport error:…
shashankaholic
  • 4,122
  • 3
  • 25
  • 28
56
votes
7 answers

Calling a SOAP service in .net Core

I´m porting a .net 4.6.2 code to a .net Core project, that calls a SOAP service. In the new code I´m using C# (because of some config reasons I just can´t remember why right now). But I´m getting the following exception. An error occurred while…
Sturla
  • 3,446
  • 3
  • 39
  • 56
56
votes
7 answers

How to post SOAP Request from PHP

Anyone know how can I post a SOAP Request from PHP?
Jin Yong
  • 42,698
  • 72
  • 141
  • 187
53
votes
11 answers

SOAP - What's the point?

I mean, really, what is the point of SOAP? Web services have been around for a while, and for a while it seemed that the terms 'SOAP' and 'Web service' were largely interchangeable. However SOAP always seemed unwieldy and massively overcomplicated…
DanSingerman
  • 36,066
  • 13
  • 81
  • 92
50
votes
7 answers

How can I output what SUDs is generating/receiving?

I have the following code: from suds.client import Client import…
alfredo
  • 961
  • 3
  • 10
  • 11
49
votes
6 answers

What is the difference between a top-down web service and a bottom-up web service?

In Java, what is the difference between a top-down web service and a bottom-up web service? Also, what is the difference between a SOAP and a REST-ful web service?
Maverick
  • 2,738
  • 24
  • 91
  • 157
49
votes
8 answers

java.lang.NoClassDefFoundError : javax/xml/soap/SOAPException

I have created a Web Service using Spring. It works fine when running it on my embedded tomcat server. However when I package it as a JAR file and run it with java -jar command, I am receiving this exception. My service sends a simple soap request…
grangos
  • 501
  • 1
  • 4
  • 4
48
votes
8 answers

Examples of the best SOAP/REST/RPC web APIs? And why do you like them? And what's wrong with them?

At my company we're starting to branch into web APIs to access and update our data; initially for partners but then likely to the public in future. At the moment the way the API will look (e.g. SOAP, REST, RPC) is completely open and we haven't made…
Greg Beech
  • 133,383
  • 43
  • 204
  • 250
48
votes
3 answers

Alternatives to REST API pattern

I am writing a thesis which involves a comparison between RESTful web APIs and their corresponding alternatives. The problem is, I am quite biased towards REST and am failing to find any noteworthy architectural patterns that could be compared. My…
Crossfire
  • 1,801
  • 3
  • 21
  • 37
48
votes
7 answers

Why isn't SOAP-based web service RESTful?

I understand RESTful is an architecture style, but what exactly makes SOAP-based web service not count for RESTful? It's not clear to me which points below (from Wikipedia), is not conformed by SOAP. Client-server Stateless Cacheable Layered…
bryantsai
  • 3,405
  • 1
  • 30
  • 30