Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi Everyone,
I am trying to import a web service description through Configuration/ Web services/Import web service description. I pasted the whole wsdl into import section and clicked on Import. It comes back with Import failed. The web service am trying to import is http://www.w3schools.com/webservices/tempconvert.asmx?WSDL . Please let me know what am i missing.. Is there any documentation for this module on how to use this ..
Please find attached screenshot.
Please assist.
-Kavitha.
Comment | File | Size | Author |
---|---|---|---|
#3 | wsclient-2158545-03.png | 29.07 KB | dman |
#3 | wsclient-import_help-2158545-3.patch | 700 bytes | dman |
import_error.jpg | 170.04 KB | kavithasethu |
Comments
Comment #1
dman CreditAttribution: dman commentedAh. Well that is a huge misunderstanding.
The "Import web service description" action refers to importing a configuration set for the Drupal wsclient component - such as for moving settings between sites. It uses similar methods as exporting and importing 'views' or other 'exportables'.
What you are expected to paste there is a PHP config array, such as gets produced when you first 'export' a wsclient instance using the UI. Unfortunately, the /admin/config/services/wsclient/import path is not even managed by the wsclient module, but auto-provided by entity API, so I'm not sure how much control we have on documentation there. Maybe further instructions could be added via hook_help.
At no time is anyone expected to directly paste WSDL XML into that area, so that was unexpected :-}
Though I can see why it looks like an interesting thing to try.
Did you try following the documentation linked to in the project page? It could probably to with some editing for clarity, but step 1 is to "Add" a web service and enter the URL.
I'll set this as documentation : Needs work - to maybe put a warning up on that import page that provides a link to the documentation, as I can see why someone can get confused about the difference between "importing" a "Web Service" and importing a WSDL. Web service terminology and concepts are difficult enough as it is.
Just looking at that screen shot it took me a while to figure out why it was wrong, the page and the error were not informative enough.
Comment #2
dman CreditAttribution: dman commentedSmall UI text change needed - I'm picking this up for a quick fix now.
Comment #3
dman CreditAttribution: dman commentedOh Bother, this form is included from entity API, EntityDefaultUIController::operationForm(). It's not in this module at all.
Clever and handy, but how to get text in there?
Shall I choose hook_form_alter() or hook_help() ?
... It seems that Drupal hook_menu has been swallowed by WSClientUIController in wsclient_ui... It's all magic there. hook_help : I choose you!
If there is a better way or place to insert better help text into this twice-abstracted form - I'd be interested to hear about it. In the meantime:
Comment #4
klausiSince this is help text I think hook_help() is fine.
Comment #5
joelpittet