It would be useful to have a SOAP plugin supporting migration from webservice.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpp created an issue. See original summary.

heddn’s picture

This would essentially depend on XML. Which has some working pieces already in migrate_plus and in migrate_source_xml.

mikeryan’s picture

I'm on a project now that requires importing from a SOAP service, so I'll be looking at this over the next couple of weeks. At first glance, this would probably be independent from our existing XML support, building on the PHP SoapClient class instead.

mikeryan’s picture

Status: Active » Needs work
FileSize
3.74 KB

Very basic POC, known to work for exactly one service...

mikeryan’s picture

Yep, so responses aren't necessarily XML (my real-world scenario turns out to return an object containing an array of objects), so going to need a more flexible way to handle responses. Perhaps a SoapResponseParser plugin type - it's plugins all the way down!

mikeryan’s picture

This seems to work (so far) for my use case. For now, the different response types are hardcoded - the type-specific code is a line or two each, so introducing a plugin type seems overkill.

mikeryan’s picture

Status: Needs work » Needs review

I've completed implementing the migration from SOAP for my current project - setting to "Needs review", if anyone else is doing SOAP migration please give it a whirl.

  • mikeryan committed fc622f3 on 8.x-2.x
    Issue #2726443 by mikeryan: SOAP Source plugin
    
mikeryan’s picture

Status: Needs review » Fixed

I've gone ahead and committed this - if anyone has any issues with it, please open a fresh issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.