[SWS-821] Not possible to create wrapped doc/literal wsdls with SuffixBasedPortTypesProvider Created: 22/Dec/12  Updated: 04/Apr/13  Resolved: 04/Apr/13

Status: Resolved
Project: Spring Web Services
Component/s: Core
Affects Version/s: 2.1.2
Fix Version/s: 2.1.3

Type: Improvement Priority: Minor
Reporter: David J. M. Karlsen Assignee: Arjen Poutsma
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


Reference URL: http://www.ibm.com/developerworks/webservices/library/ws-usagewsdl/index.html


http://www.ibm.com/developerworks/webservices/library/ws-usagewsdl/index.html says that doc/literal wrapped style request elements should be named the same as the operation.

4. Input Wrapper Element name should match with Operation name 
The name of the input wrapper element must be the same as the web service operation name in WSDL.

But it's not possible to set the request suffix to an empty string (and I also guess that the rest of the code could not work with an empty request suffix:

Caused by: java.lang.IllegalArgumentException: 'requestSuffix' must not be empty
        at org.springframework.util.Assert.hasText(Assert.java:162)
        at org.springframework.ws.wsdl.wsdl11.provider.SuffixBasedMessagesProvider.setRequestSuffix(SuffixBasedMessagesProvider.java:61)

AFAIK wrapped style is the de-facto standard (along with doc/literal) so it would be good if sws could support it.

Comment by Arjen Poutsma [ 04/Apr/13 ]

As the PortTypesProvider is an interface, it certainly is possible to implement a version that does follow the doc/literal conventions. There is even an AbstractPortTypesProvider to get you started.

Generated at Tue Mar 20 03:42:03 UTC 2018 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.