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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dman’s picture

Component: User interface » Documentation
Category: Bug report » Support request
Status: Active » Needs work

Ah. 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.

dman’s picture

Title: Import web service description not working!!! » "Import web service description" UI misleading - need to clarify that it's NOT a WSDL.
Priority: Major » Normal

Small UI text change needed - I'm picking this up for a quick fix now.

dman’s picture

Status: Needs work » Needs review
FileSize
700 bytes
29.07 KB

Oh 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:

new help text on import page

klausi’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

Since this is help text I think hook_help() is fine.

joelpittet’s picture

Category: Support request » Task