sigmundlo
11/10/2005 9:31:00 AM
Now I'm getting frustrated. I have made a simple webservice that just logs on
to Axapta. Compiling it in Visual Studio works fine. But what if I want to
install this webservice on another server? I can't install VS everywhere.
It's really overkill.
So earlier in this forum I got a hint to use tlbimp.exe to generate a dll to
be used by .net's command line compiler csc.exe.
I used tlbimp on AxCom.dll, and got the AxaptaCOMConnector.dll.
My webservice is located at c:\inetpub\wwwroot\test
I created c:\inetpub\wwwroot\test\bin and moved AxaptaCOMConnector here.
Then I used csc:
C:\Inetpub\wwwroot\Test>csc.exe /out:bin\Axapta.dll /target:library
HelloWorld.a
smx.cs /reference:bin\AxaptaCOMConnector.dll
It compiles, but the webservice wont work. The browser doesn't understand
this line:
AxaptaCOMConnector.AxaptaClass mTest = new AxaptaCOMConnector.AxaptaClass();
I'm not sure if the /out: option should named Axapta.dll or
AxaptaCOMConnector.dll or something else.
Please help!