#🔒 SOAP Server with Spyne

6 messages · Page 1 of 1 (latest)

pine rain
#

Hello, i try do develop a python server who can use SOAP protocol to communicate with a SOAP Client C# but i have a problem with the return.

My python code is here : https://paste.pythondiscord.com/RR6Q
Also i have log : https://paste.pythondiscord.com/3VAQ

I have also the SOAP contract to respect :

public interface IPIEObjet
{
    [OperationContract]
    int openSession( string     ClientId
                   , string     Localization
                   , string     SessionIdToRecover
                   , uint       PIEOClientVersion
                   , out string SessionId
                   , out string VersionId
                   , out uint   PIEOServerVersion );
}```

Actually, my C# console have this return :
*** EXCEPTION ***: The formatter generated an exception while attempting to deserialize the message: An error occurred while attempting to deserialize the parameter http://Services:openSessionResult.
The InnerException message was 'An error occurred while deserializing the object of type System.Int32. Cannot parse the value '' as type 'Int32'.' For more information, see InnerException.

Thanks if you can help me.
dry stumpBOT
#

@pine rain

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

lusty robin
#

It seems you passed an empty string somewhere where it should've been an int

#

Also, why use SOAP in modern day? Why not use json on both ends?

dry stumpBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.