Read XML trough webservice

Manolo_SPAManolo_SPA Member Posts: 19
edited 2009-01-21 in Navision e-Commerce
Hi:

I have installed webservice, and it's running. i can export with xmlport all kinds of informations.but when i try to import, i get an error that automation hasn't been instantiated "This Automation variable has not been instantiated.
You can instantiate it by either creating or assigning it."


I'm ussing webservice included in document "How to execute Navision business processes from Microsoft Office.doc", and i have created new function inside ComCom::MessageReceived(VAR InMessage : Automation "''.IDISPATCH")

readdata(InMsg, InMsg.CreateReply);

Readdata(Inmsg : Automation "'Navision Communication Component version 2'.InMessage";Outmsg : Automation "'Navision Communication
InStreamQueue := Inmsg.GetStream();
CLEAR(XMLLectura);
XMLLectura.SETSOURCE(InStreamQueue);
IF XMLLectura.IMPORT THEN BEGIN
PopulateResult(XMLDoc,Text010);
ReturnOriginalMessage(Inmsg.CreateReply,XMLDoc);
END ELSE BEGIN
PopulateResult(XMLDoc,Text011);
ReturnOriginalMessage(Inmsg.CreateReply,XMLDoc);
END;

i think there is something wrong in first line, and it's probably that variables has to be other types. Pls, could you confirm how i can read xml with msmsq?? or where i can find explanation about navision communication component??

thanks is advance

Comments

  • Manolo_SPAManolo_SPA Member Posts: 19
    Forgot post.

    I was using wrong function. now I can read xmlport.
Sign In or Register to comment.