Bruce,
Thanks for the message. I understand the message has got something to do with the service but what i don't understand is why the method GetData is not getting failed then? If i modify SaveEstimateFile to do some addition of 2 numbers then it works fine and returns a proper result in PowerBuilder but the moment i create an instance of the class i could not call the service from PowerBuilder.
In the meantime i tried to register the dll as COM object and access it through PowerBuilder and it worked. The code i use is
OLEObject example
int return_code
example = CREATE OLEObject
return_code = example.ConnectToNewObject("COMPB.Class1")
example.saveToFile( )
destroy example
What i do not understand is i read that i can use ConnectToNewObject to access the COM object in local machine but do i need to use ConnectToRemote object to access the COM object in remote server? I am trying to understand how does the PowerBuilder know to look for the class when we say ConnectToNewObject (className)? I think that class needs to be registered somewhere to look for by PB? Could you explain it?