This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes Handler executed on name Matching....... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Handler executed on name Matching......." Watch "Handler executed on name Matching......." New topic
Author

Handler executed on name Matching.......

Syed Khurram Mahmood
Greenhorn

Joined: Oct 06, 2005
Posts: 2
I have few services to access from client side my client config file is as follows. For Few services I want the handler to show intercept and then log and for others I dont want it to do that. Whenever I remove the handler from CampaignService remove the second service definition from client-config.xml below then all the services and other handler work perfectly but called on all services otherwise.

I later came to realize that I have two services exposed by other parties and when I specify their names as CampaignService their respective handlers are executed. but If I specify their names to be other than CampaignService these wont be executed. Now since there are two CampaignServices and I want two of them to be executed and one of those not to be executed. but if I name anyone of them to CampaignService then all of them are executed otherwise none of them is executed.

Below is axis client-confg.wsdd


<?xml version="1.0" encoding="UTF-8"?>
<deployment name="BidcenterClientConfig"
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

<handler name="log" type="java:com.mypackage.SOAPMonitor"/>
<!-- For global configuration of handlers -->
<!-- globalConfiguration>
<requestFlow>
<handler type="log"/>
</requestFlow>
<responseFlow>
<handler type="log"/>
</responseFlow>
</globalConfiguration -->

<!-- service specific configurations -->
<service name="InfoService" provider="java:RPC">
<requestFlow>
<handler type="log"/>
</requestFlow>
<responseFlow>
<handler type="log"/>
</responseFlow>
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="com.mypackage.InfoServiceSoapBindingStub"/>
</service>

<service name="CampaignService" provider="java:RPC" style="document" use="literal">
<requestFlow>
<handler type="log"/>
</requestFlow>
<responseFlow>
<handler type="log"/>
</responseFlow>
<parameter name="allowedMethods" value="addCampaign"/>
<parameter name="className" value="com.myPackage.CampaignServiceHttpBindingStub"/>
</service>


<transport name="http" pivot="java rg.apache.axis.transport.http.HTTPSender"/>
<transport name="local" pivot="java rg.apache.axis.transport.local.LocalSender"/>
<transport name="java" pivot="java rg.apache.axis.transport.java.JavaSender"/>
</deployment>



The Interceptor is being called for all the services. I am not sure why this is happening.Is there anyone who had this sort of experience with Apache Axis on client side handler and reason why this is happening and how can I get rid of this problem.

[ May 21, 2007: Message edited by: Syed Khurram Mahmood ]

[ May 21, 2007: Message edited by: Syed Khurram Mahmood ]
[ May 21, 2007: Message edited by: Syed Khurram Mahmood ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handler executed on name Matching.......
 
Similar Threads
Handler not invoked at Client side
Why cannot my own Handler work?
Need to configure multiple log files for axis client soap requests.
Soap Logging in Axis Tool
Object that contain ArrayList