Spray - wrapping complex return types in custom classes
Posted by Udo Schneider on Nov 25, 2004; 5:26pm
URL: https://forum.world.st/Spray-wrapping-complex-return-types-in-custom-classes-tp3372137.html
Hello World(tm),
I'm currently finding (debugging ;-) my way through the Spray SOAP toolkit.
Currently I'm writing a wrapper for a WSDL service which returns complex
types most of the time.
One return type is e.g.:
<complexType name="Session">
<sequence>
<element name="sid" type="xsd:long"/>
</sequence>
</complexType>
Spray wraps this "Session" in a XeQStruct which works fine.
However, I want Spray to return my class named Session (which should be
build from the XeQStruct value of course). How can this be achieved?????
Digging through the BigDog Service I found this possible if your specify
the return type (e.g. "d:Session") in the method comment .... but I
didn't find a way to achieve the same for a WSDL based service.
Any pointers?
Thanks,
Udo