Issue Details (XML | Word | Printable)

Key: WODEN-160
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: John Kaputin
Reporter: Lawrence Mandel
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Woden

Woden doesn't specify the default MEP to use if none is specified

Created: 03/May/07 04:03 AM   Updated: 31/Jul/07 11:26 AM
Return to search
Component/s: Parser
Affects Version/s: M7a
Fix Version/s: M8

Time Tracking:
Not Specified

Resolution Date: 31/Jul/07 11:26 AM


 Description  « Hide
As reported by Jacek on the Woden mailing list (see http://mail-archives.apache.org/mod_mbox/ws-woden-dev/200705.mbox/%3cOFF6E44480.3AF74C7F-ON852572CF.00775206-852572CF.00786037@ca.ibm.com%3e):

In WSDL if an operation doesn't have the pattern attribute, its MEP
seems to default to http://www.w3.org/ns/wsdl/in-out - per section 2.4.3
at
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/wsdl20/wsdl20.html?content-type=text/html;%20charset=utf-8#InterfaceOperation_Mapping

In woden, the message exchange property is not set (line 770, rev 533754
of /incubator/woden/trunk/java/src/org/apache/woden/internal/BaseWSDLReader.java)
so this seems to be a bug.

Just adding

else {
   oper.setPattern(Constants.MEP_URI_IN_OUT);
}

should suffice.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
John Kaputin added a comment - 31/Jul/07 11:03 AM
The parseInterfaceOperation method in BaseWSDLReader should not be changed, as this field should reflect the Element model (i.e. InterfaceOperationElement.getPattern() should return null if no MEP attribute is specified in the WSDL). Instead, the getter method on the component model should implement the defauting rule. So, InterfaceOperation.getMessageExchangePattern() should return the default value if no MEP attribute was parsed from the WSDL. I will apply this fix.

John Kaputin added a comment - 31/Jul/07 11:26 AM
r561298