How to set name and binding of a port in Spyne?

Viewed 859

I have written a Spyne web service via Django. I'm simulating some application, so I need to implement exact interfaces. I have following port definition in the original application:

< wsdl:service name = "SendSmsWebServiceImplService" >
  < wsdl:port binding = "tns:SendSmsWebServiceImplServiceSoapBinding" name = "SendSmsWebServiceImplPort" >
      < soap:address location = "http://192.168.100.31:8181/smsgateway/sendsms" / >
  < / wsdl:port >
< / wsdl:service >

And this is what I have in the simulator:

< wsdl:service name = "SendSmsWebServiceImplService" >
  < wsdl:port name = "SendSmsWebService" binding = "tns:SendSmsWebService" >
      < soap:address location = "http://127.0.0.1:5000/smsgateway/services/SendSms/" / >
  < / wsdl:port >
< / wsdl:service >

I'm trying to set name and binding for the port. I'm using module spyne.application.Application to implement main application. What is the way to set these properties?

1 Answers
Related