You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Andy Cutright <An...@borland.com> on 2004/03/30 17:55:27 UTC
RE: [juddi-Developers] RE: FindEbusinessExample
also, please take a look the current code base. jUDDI has extensions to
allow you to create a publisher programmatically. take a look at the
samples directory. you still have to bootstrap an initial publisher,
however,
cheers,
andy
_____
From: Anou Manavalan [mailto:amanaval@try.sybase.com]
Sent: Tuesday, March 30, 2004 6:19 AM
To: juddi-developers@lists.sourceforge.net; 'Andrea Powles'
Subject: RE: [juddi-Developers] RE: FindEbusinessExample
Hi Everyone,
I have posted this before, but repeating it again. jUDDI has
moved to Apache, http://ws.apache.org/juddi/
All the developers and users are mostly in that mailing list. If
you would like to get support, I would encourage you to join the mailing
list over there and post your questions.
regards,
-Anou
-----Original Message-----
From: juddi-developers-admin@lists.sourceforge.net
[mailto:juddi-developers-admin@lists.sourceforge.net]On Behalf Of
Meloro, John
Sent: Tuesday, March 30, 2004 5:34 AM
To: 'Andrea Powles'
Cc: juddi-developers@lists.sourceforge.net
Subject: [juddi-Developers] RE: FindEbusinessExample
you need to run the following SQL:
INSERT INTO PUBLISHER
(PUBLISHER_ID,PUBLISHER_NAME,ADMIN)
VALUES ('juddi','juddi user','false');
jUDDI queries the mySQL database for an authorization
token before it will allow you to "publish" anything. If the
corresponding user ID is not present in the database, the transaction
fails.
-----Original Message-----
From: Andrea Powles
[mailto:dreadame@hotmail.com]
Sent: Monday, March 29, 2004 6:18 PM
To: MeloroJ@Pragmatics.com;
juddi-developers@lists.sourceforge.net
Subject: RE: FindEbusinessExample
Hi John and All,
Thanks for replying John.
when I try to run the SaveBusinessExample I get
the following error -
C:\uddi4j\samples>java SaveBusinessExample
*********** Running SaveBusinessExample
***********
Get authtoken
UDDIException faultCode:Client
operator:
generic:
errno:10150
errCode:E_unknownUser
errInfoText:The user ID and password pair
passed in a get_authToken message is
not known to the Operator Site or is not valid.
The user ID and password pair passed in a
get_authToken message is not known to
the Operator Site or is not valid.
at org.uddi4j.UDDIElement.<init>(Unknown
Source)
at
org.uddi4j.response.AuthToken.<init>(Unknown Source)
at
org.uddi4j.client.UDDIProxy.get_authToken(Unknown Source)
at SaveBusinessExample.run(Unknown
Source)
at SaveBusinessExample.main(Unknown
Source)
As far as I know I have my samples.properties
file set up correctly, here it is just in case -
# Property file used to set parameters for
UDDI4J samples.
#
-----------------------------------------------------------------------
# inquiryURL: The URL for the inquiry API of the
target UDDI registry
# publishURL: URL for the publish API of the
target UDDI registry
# A list of UDDI URLs is on the UDDI4J website
http://www.uddi4j.org/
#
# A typical entry would be of the form
# inquiryURL=http://company.com/uddi_node
#
publishURL=https://company.com/uddi_publish_node
#
-----------------------------------------------------------------------
# IBM UDDI test site
inquiryURL=http://localhost:8080/juddi/inquiry
publishURL=http://localhost:8080/juddi/publish
#
-----------------------------------------------------------------------
# Userid to use when running the publish
samples. Userid/passwords should
# not generally be stored in clear text
#
-----------------------------------------------------------------------
userid=juddi
password=password
#
-----------------------------------------------------------------------
# Transport classname. Typically defined on
commandline as
# -Dorg.uddi4j.TransportClassName=xxx.
#
-----------------------------------------------------------------------
#
TransportClassName=org.uddi4j.transport.ApacheSOAPTransport
TransportClassName=org.uddi4j.transport.ApacheAxisTransport
#
TransportClassName=org.uddi4j.transport.HPSOAPTransport
#
-----------------------------------------------------------------------
# Debug log enabled or not. Typically defined on
command line as
# -Dorg.uddi4j.logEnabled=true
#
-----------------------------------------------------------------------
logEnabled=false
# logEnabled=true
#
-----------------------------------------------------------------------
# Values used to determine the implementation of
JSSE to use. Provided
# for convenience, this is typically configured
within the jdk
# in JAVA_HOME\jre\lib\security
#
-----------------------------------------------------------------------
# Sun JSSE implementation
handlerPackageName=com.sun.net.ssl.internal.www.protocol
securityClassName=com.sun.net.ssl.internal.ssl.Provider
# IBM JSSE implementation
#
handlerPackageName=com.ibm.net.ssl.internal.www.protocol
# securityClassName=com.ibm.jsse.JSSEProvider
#
-----------------------------------------------------------------------
# UDDI names to use within samples. Samples may
or maynot use these values,
# Check the source for the sample
#
-----------------------------------------------------------------------
businessName=Sample Business
serviceName=Sample Service
tmodelName=Sample TModel
sampleEntityName=S
assertionRelationship=peer-peer
#
-----------------------------------------------------------------------
# Additional values can be added as needed as a
convenient repository
# for data relevant to the UDDI4J samples
#
-----------------------------------------------------------------------
Is the juddi_mysql.ddl just the script provided
in the deployment documentation? If so I have already created those
tables and the insert statements into the T_Model tables. When I try to
run it I get the following error -
mysql> use juddi;
Database changed
mysql> SOURCE
C:\jakarta-tomcat-5.0.16\webapps\juddi\ddl\juddi_mysql.ddl;
ERROR:
Unknown command '\j'.
ERROR:
Unknown command '\w'.
ERROR:
Unknown command '\j'.
ERROR:
Unknown command '\d'.
ERROR:
Unknown command '\j'.
Any ideas? Thanks for your help.
Andrea Powles
----Original Message Follows----
From: "Meloro, John" <Me...@Pragmatics.com>
To: "'dreadame@hotmail.com'" <dr...@hotmail.com> Subject:
FindEbusinessExample Date: Mon, 29 Mar 2004 15:29:46 -0500
Assuming that you ran juddi_mysql.ddl, then
FindBusinessExample will return all instances of business whose name
starts with the letter "S". If there are no entries in the database,
i.e. you have not run SaveBusinessExample sucessfully, then it will
return nothing. You can run juddi_mysql.ddl by logging into mySQL and at
the command prompt typing: USE juddi; SOURCE juddi_mysql.ddl; QUIT Hope
this helps...
_____
Get Hotmail on your mobile. Click here
<http://g.msn.com/8HMAENAU/2731??PS=>