Support Forum [ All Topics | New Topic ]

Thread: Problem with Retail Feed

Would appreciate someone with expertise in the Rapaport Plus to help debug why after successful login, requests fail even though authentication ticket is provided.

#1 Make a SOAP Request to Login. This works, and a Ticket is issued. 
SOAP request: https://technet.rapaport.com/WebServices/RetailFeed/RetailFeed.asmx
SOAPAction: "http://technet.rapaport.com/Login", Content-Type: text/xml;charset=UTF-8, Content-Length: 427
<?xml version="1.0" encoding="UTF-8"?>
  <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://technet.rapaport.com/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://technet.rapaport.com/">
    <env:Body>
      <ins0:Login>
        <ins0:Username>010101</ins0:Username>
        <ins0:Password>FizzBuzzster</ins0:Password>
      </ins0:Login>
    </env:Body>
  </env:Envelope>
HTTPI executes HTTP POST using the httpclient adapter
SOAP response (status 200):
<?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:Header>
      <AuthenticationTicketHeader xmlns="http://technet.rapaport.com/">
        <Ticket>192CF00F3485EAB52C9ABE131F25A7582CFDCAED5F5A150005F603286D80D62DDADF91DEE20C069922DB67AEAD46C221674CFFD7C02AEBEF58F25128F8E63821F341949025F8EA446E88C94402AF3D288EF00724F996831D01091B9F5A1EEB7E7723FD97C46D9B5FA0294E8EA3F26A5DD4D6FBA0215E727D5CDEA693EF625D1FDDCEA5CF0BBD3C28B373859A40E1B39AEFD0A64FCC07B52410E98F32BDE4CE67C4F2C032EC8C30BFF8A06E864FB7D48FE5184F1EA3BF758E4C95C7D8B141D656</Ticket>
      </AuthenticationTicketHeader>
    </soap:Header>
  <soap:Body>
    <LoginResponse xmlns="http://technet.rapaport.com/" />
  </soap:Body>
</soap:Envelope>
#2 Make a SOAP Request to GetDiamonds, this does not work, fails on Authentication even though Ticket is supplied in header
SOAP request: https://technet.rapaport.com/WebServices/RetailFeed/RetailFeed.asmx
SOAPAction: "http://technet.rapaport.com/GetDiamonds", Content-Type: text/xml;charset=UTF-8, Content-Length: 874
<?xml version="1.0" encoding="UTF-8"?>
  <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://technet.rapaport.com/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://technet.rapaport.com/">
    <env:Header>
      <AuthenticationTicketHeader>
        <Ticket>192CF00F3485EAB52C9ABE131F25A7582CFDCAED5F5A150005F603286D80D62DDADF91DEE20C069922DB67AEAD46C221674CFFD7C02AEBEF58F25128F8E63821F341949025F8EA446E88C94402AF3D288EF00724F996831D01091B9F5A1EEB7E7723FD97C46D9B5FA0294E8EA3F26A5DD4D6FBA0215E727D5CDEA693EF625D1FDDCEA5CF0BBD3C28B373859A40E1B39AEFD0A64FCC07B52410E98F32BDE4CE67C4F2C032EC8C30BFF8A06E864FB7D48FE5184F1EA3BF758E4C95C7D8B141D656</Ticket>
      </AuthenticationTicketHeader>
    </env:Header>
    <env:Body>
      <ins0:GetDiamonds>
        <tns:Shapes>ROUND</tns:Shapes>
      </ins0:GetDiamonds>
    </env:Body>
  </env:Envelope>
HTTPI executes HTTP POST using the httpclient adapter
SOAP response (status 500):
<?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:Server</faultcode>
        <faultstring>Server was unable to process request. ---&gt; You are not authenticated. Please run the Login function first.</faultstring>
        <detail />
      </soap:Fault>
    </soap:Body>
  </soap:Envelope>



>> add a comment
Dave
08/17/2012 12:25


0 Replies: