Problem importing Codeunit

Greetings: I am new to integrating with Navision and found an article on MSDN titled Using Web Services to Access Microsoft Dynamics NAV 5.0 I received a developer’s license key, but when I try to import I get the message:

You do not have permission to create the ‘WebServiceProcessing’ XMLPort.

Contact the system manager if you need to have your permissions changed.

I am setup as Role = ‘Super’ for all companies. What else needs to be done to allow me to import an XMLPort and CodeUnit? I am using the Demo Cronus USA demo database NAV 5.0 sp1

Any help will be appreciated.

What is the ID of codeunit or xmlport u r importing?

IMRAN,

thanks for responding. There are the 2 files I am trying to import

Codeunit.txt starts here>>>>

OBJECT Codeunit 100000 WebServiceDispatcher
{
OBJECT-PROPERTIES
{
Date=03.22.08;
Time=17:03:44;
Modified=Yes;
Version List=;
}
PROPERTIES
{
SingleInstance=Yes;
OnRun=BEGIN
IF(CREATE(WebService)) THEN BEGIN
WebService.Start();
MESSAGE(‘Started’);
END ELSE BEGIN
MESSAGE(‘Service was already started’)
END
END;

}
CODE
{
VAR
WebService@1102601000 : Automation “{495FDE22-118D-4CCC-8042-3E87C1620B32} 1.0:{0144F728-0631-4E2E-8375-2B01177D8A63}:‘NAVWebServiceDemo’.WebServiceListner” WITHEVENTS;

EVENT WebService@1102601000::Read@1000();
VAR
output@1102601000 : OutStream;
BEGIN
output:=WebService.Output();
XMLPORT.EXPORT(XMLPORT::WebServiceProcessing,output);
END;

EVENT WebService@1102601000::Insert@1001();
VAR
input@1102601000 : InStream;
BEGIN
input:=WebService.Input();
XMLPORT.IMPORT(XMLPORT::WebServiceProcessing, input);
END;

BEGIN
END.
}
}

XMLPORT.TXT Starts Here >>>

OBJECT XMLport 100000 WebServiceProcessing
{
OBJECT-PROPERTIES
{
Date=03.22.08;
Time=17:05:05;
Modified=Yes;
Version List=;
}
PROPERTIES
{
Encoding=UTF-8;
}
ELEMENTS
{
{ [{1A9F7EAA-D160-4999-AAFD-FCAF562D00C0}]; ;Customers ;Element ;Text }

{ [{DB4F2099-5B3D-451B-B042-E83ED545469C}];1 ;Customer ;Element ;Table ;
SourceTable=Table18 }

{ [{743EECA9-83B4-4554-992A-8444A5BA275C}];2 ;No ;Element ;Field ;
DataType=Code;
SourceField=Customer::No. }

{ [{EBFB0A53-ED1D-471C-8D51-4C3EBFAB799C}];2 ;Name ;Element ;Field ;
DataType=Text;
SourceField=Customer::Name }

}
EVENTS
{
}
REQUESTPAGE
{
PROPERTIES
{
}
CONTROLS
{
}
}
CODE
{

BEGIN
END.
}
}

The article where I received the code: http://blogs.msdn.com/nav/archive/2008/04/15/using-web-services-to-access-microsoft-dynamics-nav-5-0.aspx

This is what i thought, your objects ID are not in the range in which they should be. So change the ids of the object, anything btw 50000 to 99999 and import again, hopefully it will going to work this time.

IMRAN,

Thanks, that worked great.

John,

As new member you may not know it yet - but further on please Verify the answer(s) if your problem is solved - that lets other members to know, that the question is solved (& closed)…