Developer Forum [ All Topics | New Topic ]

Thread: AuthenticationTicketHeader

I am trying to use webservice in Dynamics AX2012

When trying to use GetPrice method it is asking for "AuthenticationTicketHeader" in first argument. How do I get value of AuthenticationTicketHeader? What is the datatype of authenticationTicketHeader?


below is the code in X++


  #define.UserId("distar")
    #define.Pass("grothman")
   
    ClrObject clientType;   
    RapImportService.HOF_RapPriceService.RapaportPricesSoapClient _client;
   
    real price;
  

    ;
   
    clientType = CLRInterop::getType("RapImportService.HOF_RapPriceService.RapaportPricesSoapClient");   
    _client   = AifUtil::createServiceClient(clientType);  
    _client.Login(#UserId,#Pass);

 // here it will ask for "AuthenticationTicketHeader" as first argument   
    price = _client.GetPrice(AuthenticationTicketHeader,shape,size,color,clarity)
   



>> add a comment
Div
06/04/2015 08:46


2 Replies:

never mind. I was able to solve it.

>> add a comment
Div
6/4/2015 10:30:00 PM
Glad you worked it out. 

In general our SOAP web services work nicely with Java and .NET, but for other technologies JSON is better suited, because it is easier and more transparent to develop.


Regards,

Leo 



>> add a comment
Leo Muller
6/5/2015 7:54:00 AM