Closed (fixed)
Project:
SOAP Server
Version:
6.x-3.0-alpha1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2011 at 09:00 UTC
Updated:
13 Oct 2011 at 08:16 UTC
As far as I can tell, there is a mechanism for altering the WSDL, but it isn't documented at all. Is there a small example somewhere about how to define a return object for a given function in my service? I'm having problems getting a .Net client to consume anonymous objects nicely.
Comments
Comment #1
marcus_clements commentedYou need to create your own resource.
http://drupal.org/node/783460
Comment #2
fuzzy76 commentedThere is nothing in the resource definitions about return types as far as I can tell. Which really isn't surprising, since the services module is very XML-RPC/REST centric. SOAP on the other hand, works much better across platforms if you define your returned objects explicitly.
I have my own resource as it is, but the WSDL insists I only return "struct".
Comment #3
marcus_clements commentedIf you want to define return types other than xsd:struct then you need to override the wsdl using hook_soap_server_wsdl and return the wsdl in your implementation of the hook.
See soap_server.module line 126