Home
TeamSite
Which port is the soap server running on?
Bowker
win2k
ts6.5
I can't believe I'm asking this question....
How can I find which port Content Services SOAP server is using?
Dan Bowker
Northern Trust
Web Publishing Technology
Find more posts tagged with
Comments
Bowker
I opened a ticket with IWOV and this is the response:
By default the port number is 8090.
see: <iw-home>/iw-webdconf/httpd.conf
Look in the section that starts with:
# Added by Content Services SOAP Server (cssoapsvr)
#
<IfDefine !UNIX>
In that section is a statement that begins:
FastCgiServer .... -port 8090
(there is a lot more in the ticket response, but that's the answer to the question.
Dan Bowker
Northern Trust
Web Publishing Technology
Migrateduser
Hi,
Apache (iw-webd) listens on port 80 (the https port), and redirects SOAP requests to the CSSDK SOAP server which is running as an idependent process - fcgiwaspc.exe that is started by apache during startup.
Hope this helps.
Best Regards,
Narendra
Migrateduser
fcgiwaspc.exe does listen on port 8090, but your SOAP requests have to be addressed to port 80. Otherwise things wont work. The reason for this is to be firewall friendly. If somebody wants to restrict ports open to the outside world, only the http ports are exposed.
Best Regards,
Narendra
Bowker
I'm not getting connected.
The factory cannot be initialized
java.lang.reflect.InvocationTargetException
I've tried a dozen different things including:
serviceBaseURL=
http://ilc2cha:8090
serviceBaseURL=
http://ilc2cha:80
serviceBaseURL=
http://ilc2cha:81
serviceBaseURL=
http://ilc2cha:8082
(tomcat server)
serviceBaseURL=
http://localhost:8090
serviceBaseURL=
http://localhost:80
serviceBaseURL=
http://localhost:81
serviceBaseURL=
http://localhost:8082
(tomcat server)
Any clues?
Dan Bowker
Northern Trust
Web Publishing Technology
Migrateduser
Do you mind posting the code snippet you are using to connect? Also, do you have all the jar files from the CSSDK client package in your class path?
Best Regards,
Narendra
Bowker
Properties file (I've tried a ton of different things as serviceBaseURL):
# creates a CS SOAP factory
com.interwoven.cssdk.factory.CSFactory=com.interwoven.cssdk.factory.CSSOAPFactory
# use the machine name and HTTP port of the ContentServices SOAP server
serviceBaseURL=
http://ilc2cha:80
Code:
setError("");
response.setContentType("text/html");
out = response.getWriter();
strServerPath = servletConfig.getServletContext().getRealPath("");
// read the factory type from a properties file
setError( "Normal successful completion - almost");
try {
props = new Properties();
setDebug("Properties file: " + strServerPath + "\\config\\cssdk.properties");
props.load(new FileInputStream(strServerPath + "\\config\\cssdk.properties"));
setDebug("Contents: " + props);
} catch ( FileNotFoundException fnf ) {
setError( "The properties file was not found." );
} catch ( IOException io ) {
setError( "Some type of I/O exception has occurred" );
}
// create the factory
try {
csFactory = CSFactory.getFactory(props);
setError( "csFactory: " + csFactory);
strFactoryName = csFactory.getClass().getName();
appendError("Factory name: " + strFactoryName);
} catch (CSFactoryInitializationException fie) {
setError( "The factory cannot be initialized<br>" + fie.getRootCause() );
}
The rootCause is:
java.lang.reflect.InvocationTargetException
The <iwhome>\iw-webd\logs\error.log has this: (This looks good to me)
[Tue Dec 07 15:55:22 2004] [notice] FastCGI: process manager initialized
[Tue Dec 07 15:55:23 2004] [warn] FastCGI: server "c:/apps/interwoven/teamsite/cssdk/wasp4.5.1/bin/fcgiwaspc.exe" started (pid 1536)
Dan Bowker
Northern Trust
Web Publishing Technology
Edited by bowker on 12/14/04 12:40 PM (server time).
Migrateduser
Hi,
Did you check whether all the jars in the CSSDK client package are in the classpath of your application? The InvocationTargetException is caused by missing classes during runtime.
Best Regards,
Narendra
Bowker
This error has been cleaned up.
I posted the results/cause in a separate post (one step forward - two backwards).
Basically I had two things to change:
1) cssoapfactory.jar moved into teamsite/cssdk - could have left it where it was in the client folder, but...
2) TomCat didn't use the classpath, so I copied the classpath into the tomcat configuration utilities 'classpath' field.
All appears to be working - now on to using this stuff.
Thanks for the help!
Dan Bowker
Northern Trust
Web Publishing Technology