aspose file tools*
The moose likes Web Services and the fly likes Errors when deploying a multi-port service using Transport Listener/Receiver. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Errors when deploying a multi-port service using Transport Listener/Receiver." Watch "Errors when deploying a multi-port service using Transport Listener/Receiver." New topic
Author

Errors when deploying a multi-port service using Transport Listener/Receiver.

Sanjay Vivek
Greenhorn

Joined: Jan 16, 2008
Posts: 8
Hi all,

I'm trying to deploy a multi-port webservice (i.e. deploy the same service on 2 different ports) and thus far I've done the following:

1) add each and every separate port as transport listeners and transport receivers in axis2.xml on the service side as shown below:

<transportReceiver name="httpbasic"

class="org.apache.axis2.transport.http.SimpleHTTPServer">
<parameter name="port">8081</parameter>
</transportReceiver>
<transportReceiver name="httpwssec"

class="org.apache.axis2.transport.http.SimpleHTTPServer">
<parameter name="port">8082</parameter>
</transportReceiver>



<transportSender name="httpbasic"

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

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


2) Add the transport tag to the services.xml as shown below:

<transports>
<transport>httpbasic</transport>
</transports>

<transports>
<transport>httpwssec</transport>
</transports>



However, I get the following exceptions when I try to deploy the service. Any help or guidance on what I should be doing would be greatly appreciated. Cheers.

Regards
--------------
Sanjay Vivek
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Errors when deploying a multi-port service using Transport Listener/Receiver.