Spray - wrapping complex return types in custom classes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Spray - wrapping complex return types in custom classes

Udo Schneider
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