Problem in webservice access !!!

paulmrinmaypaulmrinmay Member Posts: 2
edited 2014-06-13 in NAV Three Tier
Hi Exparts,
I am trying to access webservice through automation. Here is my code :
.....
......
IF ISCLEAR(Connector) THEN
CREATE(Connector,FALSE,ISSERVICETIER);
Connector.Property('WinHTTPAuthScheme',1);
Connector.Property('EndPointURL',LocWSHL7Setup.EndPointURL);
Connector.Property('AuthUser',LocWSHL7Setup.AuthUser);
Connector.Property('AuthPassword',LocWSHL7Setup.AuthPassword);
Connector.Connect;
Connector.Property('SoapAction',LocWSHL7Setup.SoapAction);
Connector.BeginMessage;
IF ISCLEAR(Serializer) THEN
CREATE(Serializer,FALSE,ISSERVICETIER);


Serializer.Init(Connector.InputStream);
.........
.........

but when I am running it, it's giving error saying that,
Invalid Conversion. Source: NavAutomationHandle, Destination: NavStream.

& when I am debugging it, it is giving error in "Serializer.Init(Connector.InputStream)" marked in above code.
to be precise the error is giving for : "Connector.InputStream" property.
It is working in NAV2009 R2

Please help me to solve this issue. can we do this in other way.
Thanks in advance.

Regards,
Mrinmay

Comments

  • vremeni4vremeni4 Member Posts: 323
    Hi

    Is it possible to let us know what type of automation is Serializer. Without that it is difficult to say what causes the problem.
    Just copy past from the Variable section in NAvision.

    Thanks.

    Ivan
Sign In or Register to comment.