This blog provides detail steps of creating your own SOA. The SOA service provides all the query present in Teamcenter Query Builder. The SOA has one Operation which gat all query object in Teamcenter. The Operation doesn't take any input argument, it return list of Query Objects encapsulated in custom Data Structure.
Define data type TestGetSavedQueriesResponse – Used for as return data type in operation which returns vector of query objects holding query tag, name and description
Ex: AccentureTest->src->server->D4SoaTest (This folder contains the files which need to be implemented by the developer)
Project->output->client->LibraryName - This contains the auto generated files for the client (no changes required to these files)
Project->output->server->LibraryName - This contains the auto generated files for the server(no changes required to these files)
Project->output->types->LibraryName - This contains the auto generated files for the data types that are created. (no changes required to these files)
Inferences:Hello,
first I have to say that your Posts are great and helped me a lot! Thank you for the information and keep up with the good work!
I tried to create a custom service for my Teamcenter 9.1 4-Tier test system. I followed your steps and created a simple service that has just one operation that returns a boolean value.
I created service call in the sample HelloTeamcenter java application. The already implemented standard Teamcenter services such as listing the home folder contents etc. work nice but my custom service always returns the same error:
ERROR com.teamcenter.soa.internal.client.RestSender - Teamcenter server is not reachable. Starting a new client session might resolve the problem.
Server-side Exception:COMM_FAILURE
ERROR com.teamcenter.soa.internal.client.RestSender - The response XML:
Teamcenter server is not reachable. Starting a new client session might resolve the problem.
Server-side Exception:COMM_FAILURE
I the DLLs exist on the server. I copied them manually after deploying the template. I also tried to create a packaging template as stated in the Business Modeler IDE Guide and installed it via TEM.bat on the server but I always get this error. If I call the method from the SessionService to list all available services, my custom service is also in the list.
Can you help me? I don't know what to do now or what I am doing wrong. Thank you very much in advance, sir!
My System:
TC 9.1.2 4-Tier server (vmware) on Windows Server 2008 64Bit
TC 9.1.2 64Bit local client
Visual Studio 2008 SP1
JDK 6 Reply Delete
Were able to fix the issue ? if so can you please let me know how Delete