url - Not able to add {} in URI provided by axis-adb -


i have following piece of code need execute

uri uri = new uri("http://localhost:8080/rest/{data}");

the uri in above example axis2-adb-1.5.1.jar - org.apache.axis2.databinding.types.uri

i tired using axis2-adb-1.6.1.jar well. malformeduriexception stating "path contains invalid character:{". can use workaround , modify uri make work

uri uri = new uri("http://localhost:8080/rest/%7bdata%7d");

however, looking options wherein dont need modify input. moreover, can answer me why axis jar have limitation. tried looking explanations not find any.

found few days ago not valid scenario add curly braces in url. can added after proper encoding

http://axis.apache.org/axis2/java/core/api/org/apache/axis2/databinding/types/uri.html states parsing of uri specification done according uri syntax described in rfc 2396, , amended rfc 2732.

both rfc 2396 , rfc 2732 prescribes following

other characters excluded because gateways , other transport agents known modify such characters, or used delimiters.

unwise = "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`"

data corresponding excluded characters must escaped in order represented within uri.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -