You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Wayne Richards <wt...@yahoo.com.au> on 2006/07/26 04:09:31 UTC
client-config.wsdd with multiple operations
I have created a web service that has multiple methods in the service. Each of the services requires a different level of security. That is to Say that Service1 requires signing and Service2 does not requrie signing. I have created a client that uses a client-config.wsdd sets the handlers for each of the operations. The client-config.wsdd is this:
<?xml versionfiltered="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<globalConfiguration>
<parameter name="adminPassword" value="admin"/>
<parameter name="enableNamespacePrefixOptimization" value="true"/>
<parameter name="disablePrettyXML" value="true"/>
<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
<parameter name="sendMultiRefs" value="true"/>
<parameter name="sendXsiTypes" value="true"/>
<parameter name="sendXMLDeclaration" value="true"/>
</globalConfiguration>
<service name="2Methods" provider="java:RPC" style="document" use="literal">
<operationfiltered="service1" qname="Service1" returnQName="ns3:Service1Return" returnType="ns4:OutputVariables" soapActionfiltered="" xmlns:ns3="http://localhost:8080/axis/service/2Methods" xmlns:ns4="http://variables">
<requestFlow>
<handler type="signingClientHandler"/>
</requestFlow>
<responseFlow>
<handler type="verificationJavaCertHandler"/>
</responseFlow>
</operation>
<operationfiltered="service2" qname="Service2" returnQName="ns3:Service2Return" returnType="ns4:OutputVariables" soapActionfiltered="" xmlns:ns3="http://localhost:8080/axis/service/2Methods" xmlns:ns4="http://variables">
</operation>
</service>
<handler name="AddressingHandler" type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
<handler name="signingClientHandler" type="java:testServiceClientSoapHandler.signingClientHandler"/>
<handler name="verificationJavaCertHandler" type="java:testServiceClientSoapHandler.verificationJavaCertHandler"/>
<transport name="java" pivot="java:org.apache.axis.transport.java.JavaSender"/>
<transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender"/>
<transport name="local" pivot="java:org.apache.axis.transport.local.LocalSender"/>
</deployment>
This was what I thought would have worked. I get an error back from the call of "Status 404 - /axis/service/2Methods" without the client-config.wsdd the services work just fine. I need to have differing levels of security on each of the operations.
Has anyone gotten this to work? I have done something wrong?
Any help would be appreciated.
Regards
Wayne
Send instant messages to your online friends http://au.messenger.yahoo.com