calling the web service directly from the client module [message #1816373] |
Mon, 28 October 2019 14:48 |
Krzysztof Leja Messages: 55 Registered: April 2019 |
Member |
|
|
Hi,
In my application I would like to use the web service consumer. For this purpose, I used the built-in wizard (File -> New -> Scout -> Scout Web Service) and generated a new server.ws module from wsdl file. By default, it was associated via pom.xml with the server module.
Is it possible to call these web services directly from the client module without using the server module?
[Updated on: Mon, 28 October 2019 15:15] Report message to a moderator
|
|
|
|
Re: calling the web service directly from the client module [message #1816651 is a reply to message #1816502] |
Mon, 04 November 2019 08:42 |
Krzysztof Leja Messages: 55 Registered: April 2019 |
Member |
|
|
Hi,
Thanks for the detailed explanation.
Do you have any issues with calling the webservice from the backend or why do you want to move it to the client?
I have to use a passive web service to download information directly to the form . I don't need to do additional business logic or write results to the database here. Thus, the use of the server module forces unnecessary overhead of communication and conversion/copying of data, because web service data structures are not stored in the shared module but in server.ws module. If the web service in the scout platform are so strongly associated with the server module, then I will go in this direction.
By the way, I will ask about one more problem encountered:
I am trying to generate the server.ws module using the Eclipse Scout wizard, where I need to load WSDL using SOAP version 1.2 tags: "soap12:"
When I point to the WSDL file in the "Create new Web Service Consumer" -> "WSDL URL" field, I get this error message:
Either this Web Service uses SOAP encoding (use=encoded) or contains no operations. Ensure the Web Service uses literal encoding.
The web service schema is correct: it contains operations and use = "literal". When I replace the tags "soap12:" with "soap" in WSDL file, then the error message disappears and I can load it without any problems.
Does the Eclipse Scout web service wizard support "soap12:" tags?
[Updated on: Mon, 04 November 2019 08:44] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04383 seconds