Open bjoernsteinhagen opened 5 months ago
Hi @bjoernsteinhagen, from the description I can only deduct that URL or port is not correct. But it is odd that it works on other computers. Seems to be a local issue.
Hey, I am having similar issues.
Windows: Windows 11 Pro (Version: 23H2) RFEM: 6.05.0003 Python-Client: 1.19.5
I run the following code on port 8081.
from suds.client import Client
client = Client("http://localhost:8081/wsdl")
print(client.service.get_active_model())
It gave me http://127.0.0.1:8082/
.
Passing this or http://localhost:8082/wsdl
as argument to Client
in the code above, leads to: suds.MethodNotFound: Method not found: 'RfemModel.RfemModelPort.get_active_model'
Passing http://localhost:8081/wsdl
and http://localhost:8082/wsdl
to my browser shows a XML-file.
Closing RFEM and killing the process that runs my localhost as described here
During writing this comment I came to this idea. This allowed me to use the API after restarting RFEM.
Currently this works. For me this is not the most elegant solution.
Hope this helps other users and leads to a possible solution where no such quick-fixes are needed.
Kind regards
Hey @JohannesSchorr,
I guess your issue was related to ports selection and their associated methods. Port 8081 is for the Application methods and port 8082 is for the Model methods which you may find in wiki of this repo. So, in your case you were getting active model with port 8081 which generally throws port 8082 and when rerunning code by changing port 8082 which is for model methods and in 8082, there is no such method like get_active_model() which is the cause of the error.
I hope this clarifies your issue.
Hey @heetrojivadiya,
thanks for investing your time.
For clarification
Further Questions
Thanks again for the clarification. Allways happy to learn something new.
Kind regards
Describe the bug The
connectToServer
function withininitModel.py
fails with the following message in terminal:Desktop (please complete the following information):
Additional context Working on other machines just not mine. RFEM6 has been uninstalled and reinstalled, Python Client has been uninstalled and reinstalled. Older version of Python client yielded following error: