Sunday, January 6, 2013

Temcenter SOA : Sample SOA Code Setup

In this blog I will provide detail step for setting up sample SOA code provided in install image file under SOA zip file. Below steps is for Java SOA sample code.

1.       Unzip soa_client.zip from install image to TC_ROOT directory. It will create soa_client folder under TC_ROOT.
2.       Install Eclipse 3.6 and launch
3.       Add ClassPath variable for the root location of the soa_client folder.  
Open the Preferences dialog of eclipes (Window --> Preferences ... ).
Select the ClassPath Variable tab ( Java --> Build Path --> ClassPath Variables).  
Add the variable 'TEAMCENTER_SERVICES_HOME', set it to the root path of the 'soa_client' folder


4.       Import the project
Open the Import dialog ( File --> Import... )
Select Existing Project into Workspace (General --> Existing Projects into Workspace )
Click Next, then browse to .../soa_client/java/sample, select Finish

Note:- While importing FileManagement sample, FMS_HOME need to be added just like TEAMCENTER_SERVICES_HOME

5.       Compile the project 
If the IDE is not configured to Build Automatically, force a build of the project

6.       Execute the client application
Open the Debug/Run dialog ( Run --> Debug ...)
Select the HelloTeamcenter Java Application
The launch is configured to connect to the server on http://localhost:7001/tc to change this URI on the Args tab.

If the connection is http, ensure its pointing out to the right URI and this can be checked through Run->Debug Configurations-> Arguments

If it the connection is through iiop, it should be set as follows

-Dhost=iiop:localhost:1572/TcServer1



Note:- Only Java and C++ bindings work in 2-tier mode.

7.       Go through the files to understand how the services are being called and can be used in the custom solution. Refer my OOTB SOA Service Blog for basic understanding of sample code.
 See Also :

8 comments:

  1. Hi Manoj,

    This is really helpful. Could you explain the difference between the Strong and Loose Jar approach using Java SOA and what to use when in the programming?

    Thanks,
    Sudhir

    ReplyDelete
  2. Hi Manoj,

    You explain very well. if we are using CPP code then in visual studio what type of code setup we need to do.

    ReplyDelete
  3. Very well explained....
    Thanks for the description to setup the project.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Hi, good post. I am trying to setup on SOAPUI. What do I need to do to setup using WSDL?

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Hi . Can I call fms and download files via soa?

    ReplyDelete