Yet another question, are you working with the Axis-generated stub?
I assume that the relevant is:
<requestFlow>
<handler type="session"/> </requestFlow>
<responseFlow> <handler type="session"/> </responseFlow>
See above in your file how handlers have to be declared. Transport (e.g. java:) is missing:
<handler type="java:fq.classname"> </handler>
Yves
Mahen Perera wrote:
this is the client-config file
<?xml version="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="attachments.Directory" value="D:\WSADWorkspace\POCWeb\WebContent\WEB-INF\attachments"/> <parameter name="sendMultiRefs" value="true"/> <parameter name="sendXsiTypes" value="true"/> <parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/> <parameter name="sendXMLDeclaration" value="true"/> <requestFlow> <handler type="java:org.apache.axis.handlers.JWSHandler"> <parameter name="scope" value="session"/> </handler> <handler type="java:org.apache.axis.handlers.JWSHandler"> <parameter name="scope" value="request"/> <parameter name="extension" value=".jwr"/> </handler> </requestFlow> </globalConfiguration> <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/> <handler name="session" type="java:org.apache.axis.handlers.SimpleSessionHandler"/> <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/> <handler name="RPCDispatcher" type="java:org.apache.axis.providers.java.RPCProvider"/> <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/> <handler name="MsgDispatcher" type="java:org.apache.axis.providers.java.MsgProvider"/> <service name="AdminService" provider="java:MSG"> <parameter name="allowedMethods" value="AdminService"/> <parameter name="enableRemoteAdmin" value="false"/> <parameter name="className" value="org.apache.axis.utils.Admin"/> <namespace>http://xml.apache.org/axis/wsdd/</namespace> </service> <service name="Version" provider="java:RPC"> <parameter name="allowedMethods" value="getVersion"/> <parameter name="className" value="org.apache.axis.Version"/> </service>
<service name="AppInitiationWSController" provider="java:RPC">
<requestFlow>
<handler type="session"/> </requestFlow>
<responseFlow> <handler type="session"/> </responseFlow>
<operation name="getInterestAreas" qname="ns5:getInterestAreas" returnQName="getInterestAreasReturn" returnType="ns5:ArrayOf_tns1_NumericKeyVO" xmlns:ns5="http://control.webservice.service.poc.fm.com"/> <operation name="getCountries" qname="ns6:getCountries" returnQName="getCountriesReturn" returnType="ns6:ArrayOf_tns1_NumericKeyVO" xmlns:ns6="http://control.webservice.service.poc.fm.com"/> <operation name="getStatesByCountry" qname="ns7:getStatesByCountry" returnQName="getStatesByCountryReturn" returnType="ns7:ArrayOf_tns1_StringKeyVO" xmlns:ns7="http://control.webservice.service.poc.fm.com"> <parameter name="countryID" type="xsd:int" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> </operation> <operation name="getSchoolsByState" qname="ns8:getSchoolsByState" returnQName="getSchoolsByStateReturn" returnType="ns8:ArrayOf_tns1_NumericKeyVO" xmlns:ns8="http://control.webservice.service.poc.fm.com"> <parameter name="stateCode" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> </operation> <operation name="getQuestions" qname="ns9:getQuestions" returnQName="getQuestionsReturn" returnType="ns9:ArrayOf_tns1_NumericKeyVO" xmlns:ns9="http://control.webservice.service.poc.fm.com"/> <operation name="requestPreApproval" qname="ns10:requestPreApproval" returnQName="requestPreApprovalReturn" returnType="xsd:int" xmlns:ns10="http://control.webservice.service.poc.fm.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <parameter name="loanAmount" type="xsd:double"/> </operation> <operation name="getDisclosureStatement" qname="ns11:getDisclosureStatement" returnQName="getDisclosureStatementReturn" returnType="xsd:string" xmlns:ns11="http://control.webservice.service.poc.fm.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <parameter name="lenderID" type="xsd:int"/> </operation> <operation name="getStudyPrograms" qname="ns12:getStudyPrograms" returnQName="getStudyProgramsReturn" returnType="ns12:ArrayOf_tns1_NumericKeyVO" xmlns:ns12="http://control.webservice.service.poc.fm.com"/> <operation name="getProductDetails" qname="ns14:getProductDetails" returnQName="getProductDetailsReturn" returnType="ns13:LoanProductVO" xmlns:ns13="http://vo.dataaccess.domain.service.poc.fm.com" xmlns:ns14="http://control.webservice.service.poc.fm.com"/> <operation name="getLoanProduct" qname="ns16:getLoanProduct" returnQName="getLoanProductReturn" returnType="ns15:LoanProductVO" xmlns:ns15="http://vo.dataaccess.domain.service.poc.fm.com" xmlns:ns16="http://control.webservice.service.poc.fm.com"> <parameter name="schoolID" type="xsd:int" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> <parameter name="gradeID" type="xsd:int" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> <parameter name="enrollmentID" type="xsd:int" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> <parameter name="majorID" type="xsd:int" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> </operation> <operation name="saveLoanApplication" qname="ns17:saveLoanApplication" returnQName="saveLoanApplicationReturn" returnType="xsd:int" xmlns:ns17="http://control.webservice.service.poc.fm.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <parameter name="saveAppDetailVO" type="ns18:SaveAppDetailVO" xmlns:ns18="http://vo.dataaccess.domain.service.poc.fm.com"/> </operation>
<parameter name="allowedMethods" value="getInterestAreas getCountries getStatesByCountry getSchoolsByState getQuestions requestPreApproval getDisclosureStatement getStudyPrograms getProductDetails getLoanProduct saveLoanApplication"/> <parameter name="wsdlPortType" value="AppInitiationWSController"/> <parameter name="wsdlServicePort" value="AppInitiationWSController"/> <parameter name="className" value="com.fm.poc.service.webservice.control.AppInitiationWSController"/> <parameter name="wsdlTargetNamespace" value="http://control.webservice.service.poc.fm.com"/> <parameter name="wsdlServiceElement" value="AppInitiationWSControllerService"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns19:BaseVO" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.fm.poc.service.domain.dataaccess.vo.common.BaseVO" xmlns:ns19="http://common.vo.dataaccess.domain.service.poc.fm.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns20:NumericKeyVO" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.fm.poc.service.domain.dataaccess.vo.common.NumericKeyVO" xmlns:ns20="http://common.vo.dataaccess.domain.service.poc.fm.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns21:StringKeyVO" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.fm.poc.service.domain.dataaccess.vo.common.StringKeyVO" xmlns:ns21="http://common.vo.dataaccess.domain.service.poc.fm.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns22:ArrayOf_tns1_NumericKeyVO" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" type="java:com.fm.poc.service.domain.dataaccess.vo.common.NumericKeyVO[]" xmlns:ns22="http://control.webservice.service.poc.fm.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns23:ArrayOf_tns1_StringKeyVO" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" type="java:com.fm.poc.service.domain.dataaccess.vo.common.StringKeyVO[]" xmlns:ns23="http://control.webservice.service.poc.fm.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns24:LoanProductVO" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.fm.poc.service.domain.dataaccess.vo.LoanProductVO" xmlns:ns24="http://vo.dataaccess.domain.service.poc.fm.com"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns25:SaveAppDetailVO" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.fm.poc.service.domain.dataaccess.vo.SaveAppDetailVO" xmlns:ns25="http://vo.dataaccess.domain.service.poc.fm.com"/> </service> <transport name="java" pivot="java:org.apache.axis.transport.java.JavaSender"/>
<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"> <requestFlow> <handler type="URLMapper"/> <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/> </requestFlow> </transport>
<transport name="local"> <responseFlow> <handler type="java:org.apache.axis.transport.local.LocalResponder"/> </responseFlow> </transport> </deployment>
On Wed, 25 Aug 2004 16:03:21 +0200, Yves Langisch <[EMAIL PROTECTED]> wrote:
Mahen,
Can you please post your client-config.wsdd?
Yves
Yves Langisch wrote:
Mahen,
put the client-config.wsdd into the WEB-INF/classes folder not into the root of WEB-INF.
Yves
Mahen Perera wrote:
I am using WebSphere 5.1, Any id how to do in this?
Anyway I replaced the client-config.wsdd file in AXIS.jar with my newer version.
Still didnt work
Please help me
Mahen
On Wed, 25 Aug 2004 15:40:27 +0200, Dorner Thomas <[EMAIL PROTECTED]> wrote:
You can t set the path in the war! You had to set the JVM-Options in Tomcat for example.
In catalina.bat for example - look for the line:
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%
and set your path: -Daxis.ClientConfigFile=C:\\projects\\........\\WebContent\\WEB-INF\\client-
config.wsdd
-----Ursprüngliche Nachricht----- Von: Mahen Perera [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. August 2004 15:31 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: AW: Session Management using SOAP Headers in AXIS
what do u mean by path in a WAR ?
Mahen
On Wed, 25 Aug 2004 15:21:29 +0200, Dorner Thomas <[EMAIL PROTECTED]> wrote:
Have you set your path? And how do you set your path?
--> The Server will use the client-config.wsdd in the axis.jar When he can´t find another one!!! --> the last step when searching Client-config.wsdd.
So you can replace the client-config.wsdd in the axis.jar or Set the path to client-config.wsdd
----------------------------------------------------------------------------
--------------- T-Systems International GmbH Service Line Systems Integration Competence Center EDM Deparment EPDM/D Fasanenweg 5, D 70771 Leinfelden
Tel.: +49/711 971- 44747 Fax.: +49/711 972-90330
mailto:[EMAIL PROTECTED] http://www.t-systems.de
-----Ursprüngliche Nachricht----- Von: Mahen Perera [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. August 2004 15:18 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: Session Management using SOAP Headers in AXIS
i put the client.config in the Web-INF folder,, however, still the handler is not getting executed. I cant see the session id SOAP header in the SOAP request. :(
Any ideas?
Thank you Mahen
On Wed, 25 Aug 2004 14:43:11 +0200, Dorner Thomas <[EMAIL PROTECTED]> wrote:
You can put it in the WEB-INF\ folder where your Server-config.wsdd lies too!
See my email before, you can put where you want and set the JVM
Tomi
-----Ursprüngliche Nachricht----- Von: Mahen Perera [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. August 2004 14:40 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: Session Management using SOAP Headers in AXIS
Thanx
more problems...
I am using JSP as the client to call the Web Service. The JSP calls the stub genereted by the WSDL2Java tool.
I have put AXIS.jar in the WEB-INF\Lib folder of the WAR file
Now where do i have to put the client-config.wsdd file.
Thanx
Mahen
----- Original Message ----- From: Dorner Thomas <[EMAIL PROTECTED]> Date: Wed, 25 Aug 2004 14:31:15 +0200 Subject: AW: AW: Session Management using SOAP Headers in AXIS To: [EMAIL PROTECTED]
Set Java-Option with the path where you put your client-config.wsdd (example for windows)
-Daxis.ClientConfigFile=C:\\projects\\........\\WebContent\\WEB-INF\\client-
config.wsdd
You can place your clientconfig wherever you want!
Tomi