Developer Forum [ All Topics | New Topic ]

Thread: Web servevice access error

Hi ,

I am try to use the webservice  but i am getting an error in the response saying "Server was unable to process request. ---> Can not read authentication ticket". Please let me know how can i solve this issue. I am able to get the authentication ticket from the webservice login code but when passed the ticket to the test connection webservice I get this message. 
Below is the response I received

"<?xml version="1.0" encoding="utf-8"?><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:Body><soap:Fault><faultcode>soap:Serv

aultcode><faultstring>Server was unable to process request. ---&gt; Can not read authentication ticket</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>"


Thank you in advance 


>> add a comment
Shilpa (Fauna)
06/17/2011 10:13


5 Replies:

Hi Shilpa
can you please post the code?
thanks


>> add a comment
ahaliav
6/19/2011 3:28:00 AM
Hi ahaliav,

Code I used is the test connection from test service code from the webservice provided by rapnet site. Below is code.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <AuthenticationTicketHeader xmlns="http://technet.rapaport.com/">
      <Ticket>string</Ticket>
    </AuthenticationTicketHeader>
  </soap:Header>
  <soap:Body>
    <TestService xmlns="http://technet.rapaport.com/" />
  </soap:Body>
</soap:Envelope>


>> add a comment
Shilpa
6/20/2011 3:36:00 AM

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>



>> add a comment
ahaliav
6/20/2011 3:56:00 AM
hi ,

below is the code along with the ticket no generate

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<AuthenticationTicketHeader xmlns="http://technet.rapaport.com/">
<Ticket>D722794A1615B2A9CEACE46553549C32C052451EBD40CC79CF0B1CFE7BD30414F8D669D303A7530C7D0C0EC5923EEE63A08C4D32F12D0450199D4468B7F67F0BC1DEB0F4446885B10129EE91AAF8CB2F4850BDA42905C68C3BAA7903E1439B6ADC7B0810B0C3771B764383C73A66CFBA75C22DFD0AA678C48C853633E2D32341B07553199BF6FF8F2BFC60DBF4B13509E7D81E78957BA644F1E47138E62DF6B2F202D91E08B3DABAA23023639EBCFF4607C0999F
</Ticket>
</AuthenticationTicketHeader>
</soap:Header>
<soap:Body>
<TestService xmlns="http://technet.rapaport.com/" />
</soap:Body>
</soap:Envelope>

this is the exact code along with the ticket no which is being passed.



>> add a comment
Shilpa
6/21/2011 7:07:00 AM
Hi
what service are you using just to be sure we talking about the same service


>> add a comment
ahaliav
6/23/2011 10:42:00 AM