axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-2553) When using custom protocol (eg myhttps) AxisFault caused by MalformedURLException is thrown during web sevice invocation
Date Mon, 03 Jan 2011 10:08:49 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amila Chinthaka Suriarachchi resolved AXIS2-2553.
-------------------------------------------------

    Resolution: Invalid

if you want yo use your own protocol to send the messages then you need to write your own
message sender for that.

<transportSender name="myhttps" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
     <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
     <parameter name="Transfer-Encoding" locked="false">chunked</parameter>
</transportSender>

org.apache.axis2.transport.http.CommonsHTTPTransportSender comes with axis2 is for handling
standard http and https transports. 

> When using custom protocol (eg myhttps) AxisFault caused by MalformedURLException is
thrown during web sevice invocation
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2553
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2553
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.2, 1.1.1, nightly
>         Environment: Windows, JDK 1.4, 1.5
>            Reporter: Sergio
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>         Attachments: patch.jar, patch.txt
>
>
> When custom protocol is used (eg myssl://localhost/WSTest.asmx) we get AxisFault caused
by MalformedURLException
> because of the problem in the method below. For safe custom url endpoint address parsing,
you should be using URI and not URL, which 
> only allows standard protocols.
> CommonsHTTPTransportSender.writeMessa.writeMessageWithCommons(MessageContext messageContext,
>                                          EndpointReference toEPR, OMOutputFormat format)
>             throws AxisFault {
>         try {   
>    	
> 		URL url = new URL(toEPR.getAddress());  //throws MalformedURLException!!!
> .....

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message