kr.prashant - Friday, April 16, 2010 9:45 AM:
I have published an Innovator web service using standard UI interface.
Now I'm trying to consume this web service through a third party C# application. I'm using the following code for login and establishing a connection but facing issues. Can anybody help me with the right initialization of the SoapClient object? I have tried all possible constructors of the SoapClient but none of them have worked.
------------Code--------
Inn_Part.Part_get_setSoapClient soap_client = new Innovator_WS_Test.Inn_Part.Part_get_setSoapClient("Part_get_setSoap", "localhost/.../");
soap_client.LogOn("admin", "innovator", "", "");
-----------Error string----------
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Aras.Tools.WebServices.LogOnException: ERROR: You are not logged in to Innovator.
at Aras.Tools.WebServices.InnovatorWS.CheckAuthorization()
at Aras.Tools.WebServices.InnovatorWS._SendRequest(IInnovatorWSO request, Str
ing action, Int32 levels)
at Aras.Tools.WebServices.InnovatorWS.AddPart(Part request)
--- End of inner exception stack trace ---
-------------
Has anybody tried using standard Innovator web services in past? Could you please share initial few lines of code which works?
Thanks,
Prashant.
RobMcAveney - Friday, April 16, 2010 10:04 AM:
I'm no expert on this one, but my understanding is that you have to set allowCookies="true" on your binding (in app.config).
kr.prashant - Friday, April 16, 2010 1:22 PM:
Thank you Rob, this was what required to be done.
I can login successfully now.
Regards,
Prashant.
Jayateertha - Wednesday, December 5, 2012 4:21 AM:
Hello Rob,
I'm facing similar issue which Prashant has mentioed earlier.
Brief info about my issue:
1. I've created a web service in ARAS and trying to use it in my java application using ksoap2 APIs. I was trying to make use of ApplyAml method by passing a string value of "<AML><Item type='User' action='get'/></AML>".
2. However, when I invoke the Soap call, I'm getting the error of -
|
Parameter
|
Value
|
|
aml:
|
"<AML><Item type='User' action='get'/></AML>"
|