[
http://issues.apache.org/jira/browse/WODEN-86?page=comments#action_12459650 ]
John Kaputin commented on WODEN-86:
-----------------------------------
Posted to mailing list 19th December:
I have committed a fix for HTTP location which supports the use of template
IRIs, as used in MessageTest1G and MessageTest2G. I still need to determine
what further methods are required to aid template substitution - see Class
javadoc comments. For the time being there is a method that takes a String
array and substitutes these values into the template and returns the
substituted string.
Also, still need to fix compile errors introduced to the CM Writer when
http location changed from a URI to the new HTTPLocation class. Will look
into this later today.
regards,
John Kaputin
Posted to mailing list 18th December:
Chinthaka/Keith,
I have create a class HTTPLocation to represent the {http location} value
and I'm currently refactoring it into the existing code to replace the use
of java.net.URI before committing it to SVN.
Currently it returns the original value of this property as defined in the
WSDL (with any curly brace template syntax) and it also checks to see if
the format of this value is valid (i.e. if it can be converted into a URI
after the curly braces are eliminated by substitution).
I also have in mind some methods for accessing and substituting the
templated local names with instance data values and returning the
substituted string, but before creating these methods I would like to
confirm that this is what you are expecting. Or do you expect to do just
get the {http location} template from Woden and do the substitution within
your Axis2 code?
regards,
John Kaputin
> MessageTest-1G, Woden lacks support for IRI with variable substitution used
> by HTTP location
> --------------------------------------------------------------------------------------------
>
> Key: WODEN-86
> URL: http://issues.apache.org/jira/browse/WODEN-86
> Project: Woden
> Issue Type: Bug
> Components: Parser
> Reporter: John Kaputin
> Assigned To: John Kaputin
> Fix For: M7
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]