Module, Plugin

Developer
Supported

Rest

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Phil Sturgeon

     

You must be logged in to post.

SOAP Requests

General

timmo26
timmo26

This looks great, will it also handle SOAP requests?

philsturgeon
# 1
Developer
philsturgeon

It would depend on the content. This works with any API that expects normal HTTP requests and outputs XML, JSON, CSV, Serialised, etc.

You could point it at a SOAP request and pick it apart, but it does not handle WSDL’s or anything crazy like that. If you’d like to post an example of a response I could tell you how easy or hard it would be to work with.

uuitservices
# 2
uuitservices

Phil,

I may have a need to work with SOAP 1.2 and saw this thread.  I have your plugin on my EE site and love it!  Here is an example Request Response from this SOAP Service.  Any chance we can work with it?

Request:


<?xml version=“1.0” encoding=“utf-8”?>
<soap12:Envelope xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:soap12=“http://www.w3.org/2003/05/soap-envelope”>
  <soap12:Body>
  <GetEventTypes >
    <userName>string</userName>
    string</password>
  </GetEventTypes>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

Response:

<?xml version=“1.0” encoding=“utf-8”?>
<soap12:Envelope xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:soap12=“http://www.w3.org/2003/05/soap-envelope”>
  <soap12:Body>
  <GetEventTypesResponse >
    <GetEventTypesResult>string</GetEventTypesResult>
  </GetEventTypesResponse>
  </soap12:Body>
</soap12:Envelope>

philsturgeon
# 3
Developer
philsturgeon

Sorry but I’m going to guess at no. SOAP is just such a mess its hard to generically resolve such data.

uuitservices
# 4
uuitservices

Yea I figured!  Thanks for your very prompt response!

esotm
# 5
esotm

If you don’t mind me asking, what was your solution for handling SOAP requests?