Search the Community
Showing results for tags 'soapheader'.
-
I have to following soap resquest .... ( i have changed the credentials because of the security reasons ) <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bau="http://www.babalumra.com/BAU"> <soapenv:Header/> <soapenv:Body> <bau:Authenticate> <!--Optional:--> <bau:username>zawora</bau:username> <!--Optional:--> <bau:password>a12345#</bau:password> <!--Optional:--> <bau:version>1.1.0.0</bau:version> <bau:uoCode>10</bau:uoCode> </bau:Authenticate> </soapenv:Body> </soapenv:Envelope> I am uising the Authenticate Method of the service. the response is as follows . <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Header> <OfflineHeader xmlns="http://www.babalumra.com/BAU"> <UO>10</UO> <Ticket>C7F02767212D85CE76385F0D4BB7A840371DD08C491F9D56FED7E4FB1ADFA8016E1750B341DB7B96CCB41D496117790C832CD2BC4D40A</Ticket> <UserIP>188.55.105.132</UserIP> <UserVer>1.1.0.0</UserVer> <UserId>100</UserId> </OfflineHeader> </soap:Header> <soap:Body> <AuthenticateResponse xmlns="http://www.babalumra.com/BAU"> <AuthenticateResult><Result Value="True"/></AuthenticateResult> </AuthenticateResponse> </soap:Body> </soap:Envelope> now the problem is that that in order to use other methods of the services i have to provide returned information from <soapenv:Header> in every other method's <soapenv:Header> here is another request which requires the returened information ( authentication details ) in <soapenv:Header> . <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bau="http://www.babalumra.com/BAU" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <soapenv:Header> <bau:OfflineHeader> <bau:UO>?</bau:UO> <!--Optional:--> <bau:Ticket>?</bau:Ticket> <!--Optional:--> <bau:UserIP>?</bau:UserIP> <!--Optional:--> <bau:UserVer>?</bau:UserVer> <bau:UserId>?</bau:UserId> </bau:OfflineHeader> </soapenv:Header> <soapenv:Body> <bau:GetArrivalDepartueData> <bau:MofaNo>?</bau:MofaNo> <bau:lang>?</bau:lang> <!--Optional:--> <bau:ds> <xs:schema> <!--Ignoring type [{http://www.w3.org/2001/XMLSchema}schema]--> </xs:schema> <!--You may enter ANY elements at this point--> </bau:ds> </bau:GetArrivalDepartueData> </soapenv:Body> </soapenv:Envelope> ----------------------------------------------------- my question is that is there any way that i can embed returend authuntecation information in my request headers (<soapenv:Header>)
- 1 reply
-
- soap
- soapclient
-
(and 1 more)
Tagged with: