Using the wsclient_soap.module against a private web service, we are running into the following notice on each request:

Error message
Notice: Undefined offset: 1 in wsclient_soap_parse_operations() (line 203 of /wsclient/wsclient_soap/wsclient_soap.module).

Mulling through the WSDL, the following operation seems to be causing the problem:

<message name="getSearchResultFields"/>
<message name="getSearchResultFieldsResponse">
  <part name="getSearchResultFieldsReturn" type="xsd:anyType"/>
</message>
...
...
<operation name="getSearchResultFields">
  <documentation>
    Get search result fields.
  </documentation>
  <input message="typens:getSearchResultFields"/>
  <output message="typens:getSearchResultFieldsResponse"/>
</operation>
anyType getSearchResultFields()

So it looks like wsclient_soap has problems with operations that do not have any parameters.

Patch attached to address this...

CommentFileSizeAuthor
wsclient_soap-notice-on-params.patch1.26 KBmr.baileys

Comments

klausi’s picture

Status: Needs review » Fixed

Thanks, looks good, committed, attributed to your account.

Status: Fixed » Closed (fixed)

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