How to use C # client to use Django / Python web service (all methods return null)?

I have a C # command line client that I am testing to use SOAP / WSDL through the generated WSDL Django / Python / soaplib. I was able to successfully connect to the web service by adding a link to the service. Then I call one of the service methods, and the service processes the data that I send, but returns null instead of the integer that I expect. Any ideas on how to return something other than a null answer? Thanks for any help or suggestions!

+3
source share
2 answers

One thing you can do is start by creating a manual proxy using WebClient or WebRequest / WebResponse. Build your own manual proxy server to send the desired data to WS for testing.

A few things to check for WSDL implementation:

  • The definition of WSDL should match exactly , including the case, for a C # proxy to recognize values
  • Namespace definitions must match exactly , including trailing slashes
  • Check the profile of the generated proxy server and make sure that it matches the desired profile (i.e. base or none if necessary).

If you publish your generated proxy server, we can look at it and see if there is anything unusual.

0

-, , UTF-16.

, , .

0

Source: https://habr.com/ru/post/1727387/


All Articles