Issue Details (XML | Word | Printable)

Key: WODEN-86
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: John Kaputin
Reporter: John Kaputin
Votes: 0
Watchers: 0
Operations

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

MessageTest-1G, Woden lacks support for IRI with variable substitution used by HTTP location

Created: 15/Nov/06 10:34 AM   Updated: 23/Jan/07 09:28 AM
Return to search
Component/s: Parser
Affects Version/s: None
Fix Version/s: M7

Time Tracking:
Not Specified

Resolution Date: 08/Jan/07 10:53 AM


 Description  « Hide
MessageTest-1G contains the XML:

      whttp:location="?op=EchoInt;int={int};">

This is a valid IRI, but Woden currently handles URIs only so it does not create a URI to represent this value in the model and issues the error message:

Woden[Error],0:0,WSDL506,Could not create a URI from the string "?op=EchoInt;int={int};".,java.net.URISyntaxException:Illegal character in query at index 16: ?op=EchoInt;int={int};


For HTTP location, a new Woden class is required, instead of java.net.URI. to represent this IRI and handle the variable substitution curly braces syntax described for this property in the Part 2 Adjucts spec. This class could convert the IRI to a URI per the conversion described in RFC 3987 'IRI' (at least, convert the curly braces) then use the URI ctor to check that it is a valid URI, then store it internally in whatever format is appropriate (e.g. seperate fields, string, ...) and expose the IRI via the public methods of this new class. This class probably needs a toString method to return the original IRI string value.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #488539 Tue Dec 19 06:11:55 UTC 2006 jkaputin WODEN-86 WODEN-110 Created a new class HTTPLocation
to represent {http location} property with support
for template IRIs.
Files Changed
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/extensions/http/HTTPBindingOperationExtensionsImpl.java
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/extensions/soap/SOAPBindingOperationExtensionsImpl.java
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/wsdl20/extensions/http/HTTPBindingOperationExtensions.java
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/wsdl20/extensions/soap/SOAPBindingOperationExtensions.java
ADD /incubator/woden/trunk/java/src/org/apache/woden/wsdl20/extensions/http/HTTPLocation.java
MODIFY /incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPBindingOperationExtensionsTest.java
ADD /incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPLocationTest.java
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/extensions/PopulatedExtensionRegistry.java
MODIFY /incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsDOM.java

Repository Revision Date User Message
ASF #489407 Thu Dec 21 17:05:20 UTC 2006 jkaputin WODEN-86 improved the method names on HTTPLocation
class and updated the Ant interchange format
writers to handle HTTPLocation instead of
java.net.URI for the {http location} property.
Files Changed
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/wsdl20/extensions/http/HTTPLocation.java
MODIFY /incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPBindingOperationExtensionsTest.java
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/ant/CmSoapWriter.java
MODIFY /incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPLocationTest.java
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/ant/CmHttpWriter.java

Repository Revision Date User Message
ASF #489667 Fri Dec 22 14:57:29 UTC 2006 jkaputin Results updated with fix to HTTP Location template
for WODEN-86.
Files Changed
MODIFY /incubator/woden/trunk/java/ant-test/test-suite-results.zip
MODIFY /incubator/woden/trunk/java/ant-test/validation-results.xml

Repository Revision Date User Message
ASF #492571 Thu Jan 04 14:02:03 UTC 2007 jkaputin WODEN-86 Added behaviour to instantiate an object from
a string, parse and validate the string and to
derive a new location string based on the current
state of the object. Work-in-progress with 'get'
and 'substitute' methods declared but not yet implemented.
Files Changed
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/wsdl20/extensions/http/HTTPLocation.java

Repository Revision Date User Message
ASF #493645 Sun Jan 07 04:56:08 UTC 2007 jkaputin WODEN-86 finished implementing behaviour of this class
including methods to substitute values for local
names and query the values. Added unit tests.
Files Changed
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/wsdl20/extensions/http/HTTPLocation.java
MODIFY /incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPLocationTest.java

Repository Revision Date User Message
ASF #495555 Fri Jan 12 11:18:55 UTC 2007 jkaputin WODEN-86 Remove redundant method getLocationSubstituted
Files Changed
MODIFY /incubator/woden/trunk/java/src/org/apache/woden/wsdl20/extensions/http/HTTPLocation.java
MODIFY /incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPLocationTest.java