Replies: 1 comment
-
Did you read this? http://spyne.io/docs/2.10/manual/03_types.html#customization IdType = Unicode(10, type_name='IdType')
class HelloWorldService(ServiceBase):
@rpc(IdType, Integer, _returns=Iterable(Unicode))
def say_hello(ctx, TxnIdType, times):
for i in range(times):
yield 'Hello, %s' % TxnIdType Does this produce the wsdl you need? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We are trying to build a SOAP app with Django + Spyne building specific required endpoints. The exposed WSDL has to precisely match a predetermined XML file, including the custom simpleType definitions. We're currently failing to show the simple type definitions on our WSDL, everything else matches up precisely.
A simple example is the following hello world app:
Which yields the following WSDL:
As you can see, the simpleType "IdType" does not show up. Is there a way to force Spyne to reflect these tags? Currently our output WSDL does not pass the required validation since it does not recognize the custom simpleTypes.
Our expected output is the following:
Any help will be greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions