当前位置: 首页 > 工具软件 > jUDDI > 使用案例 >

juddi MySQL_通过私有JUDDI注册已经发布的Web Service

申昌勋
2023-12-01

私有Juddi搭建成功之后,一个最大的问题就是如何向私有注册中心注册服务,进而怎样查找和调用服务,网上很多文章说是让大家去学习和研究uddi4j自带的例子,本人认为是不可行的,UDDI4J自带的例子是在Eclipse环境下运行的,就算它运行成功,也不能代表已经发布到了JUDDI,而且我们利用JUDDI的api可以很一目了然的看到

整个过程。一般来说,服务注册需要下面几个步骤,首先是开发者需要有一个自己的authToken即是get_authToken,然后save_business,接下来save_tModel,最后save_Service.

下面我们针对每个步骤展开说明。

前提是你的服务已经发布了,因为在注册的过程中需要我们提供服务的发布地址。

1.get_authToken

在UserID处,输入你在系统MySql的用户名,如juddi,cred随便,但推荐你使用你的注册密码,点击提交,你将获得一个uuid形式的authToken

2.Save_business

version="1.0" encoding="utf-8"?>

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

xmlns="urn:uddi-org:api_v2">

authToken:FD2B1510-CCF0-11DE-AD74-F

94499C1DB97

businessKey="">

ruc

xupt

wang

13572802230

rongxiwang@163.com

->

version="1.0"

encoding="UTF-8"?>

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

xmlns="urn:uddi-org:api_v2">

operator="jUDDI.org">

useType="businessEntity">http://localhost:8080/juddi/uddiget.jsp?businesskey=8E614EA0-CCF1-11DE-AD74-DF3DCDDCF9EF

ruc

xupt

wang

13572802230

rongxiwang@163.com

3.

version="1.0" encoding="utf-8"?>

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

xmlns="urn:uddi-org:api_v2">

authToken:FD2B1510-CCF0-11DE-AD74-F94499C1DB97

Account

Service

Account

http://localhost:8080/axis2/services/AccountService#AccountServiceSoap11Binding

keyValue="***" />

keyValue="***" />

version="1.0"

encoding="UTF-8"?>

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

xmlns="urn:uddi-org:api_v2">

tModelKey="uuid:BDAB4BE0-CCF4-11DE-BB2E-F109EDE0376A">

Account

Service

Account

http://localhost:8080/axis2/services/AccountService#AccountServiceSoap11Binding

tModelKey="***"/>

tModelKey="***"/>

 类似资料: