Hi First you need to login: <?xml version="1.0" encoding="UTF-8"?> <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> <Body> <Login xmlns="http://technet.rapaport.com/"> <Username>user</Username> <Password>pass</Password> </Login> </Body> </Envelope> then you will recive something like this: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Header> <AuthenticationTicketHeader xmlns="http://technet.rapaport.com/"> <Ticket>424732B4F0849180BC801B40F62C41799C0857C1959ECE6B3118EE35191314C24BC479DA29B142C2593FEB347E9CBD0518C7D072537D2EFAD1EBFD3F2AD8C4793816E902DCE453B56611844B8BFAEC90A00EDF17A5023C2D08BBAEDDDF14446E4D400E6EA094EF61016E1B1D9FE827D3BA40E45048FE27BBC263F2CB416C7E9B5C00CFAAB019D6D9DBF4684B1B173450CB5041D67DB86D1DCEA380AEACD554708B9DF30F3FFE467667A6F2F635647C23078F86AB</Ticket> </AuthenticationTicketHeader> </soap:Header> <soap:Body> <LoginResponse xmlns="http://technet.rapaport.com/"/> </soap:Body> </soap:Envelope> then you send the ticket to the test service like this: <?xml version="1.0" encoding="UTF-8"?> <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> <Header> <AuthenticationTicketHeader xmlns="http://technet.rapaport.com/"> <Ticket>424732B4F0849180BC801B40F62C41799C0857C1959ECE6B3118EE35191314C24BC479DA29B142C2593FEB347E9CBD0518C7D072537D2EFAD1EBFD3F2AD8C4793816E902DCE453B56611844B8BFAEC90A00EDF17A5023C2D08BBAEDDDF14446E4D400E6EA094EF61016E1B1D9FE827D3BA40E45048FE27BBC263F2CB416C7E9B5C00CFAAB019D6D9DBF4684B1B173450CB5041D67DB86D1DCEA380AEACD554708B9DF30F3FFE467667A6F2F635647C23078F86AB</Ticket> </AuthenticationTicketHeader> </Header> <Body> <TestService xmlns="http://technet.rapaport.com/"/> </Body> </Envelope> response: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <TestServiceResponse xmlns="http://technet.rapaport.com/"> <TestServiceResult> <Result>Successful</Result> <ResultDescription>TestService call completed successfully.</ResultDescription> </TestServiceResult> </TestServiceResponse> </soap:Body> </soap:Envelope>
|