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

uddi4j传入juddi中文字符失败

方河
2023-12-01
今天尝试使用uddi4j传入juddi一个中文名称的Web服务,发现出现乱码,暂时不知道怎么解决。希望有大虾指点一下!

这个是我修改的samples.prop的文件,把最后的businessName 值 改成 = S计算机学院


# 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 = juddi
# -----------------------------------------------------------------------
# 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=S计算机学院
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
# -----------------------------------------------------------------------
最后运行结果显示

*********** Running SaveBusinessExample ***********

Get authtoken

Returned authToken:authToken:D7D380D0-52F2-11DF-A5C6-C6F0D645A825

Save 'S¼ÆËã»úѧԺ'

Returned businessKey:D7E449B0-52F2-11DF-A5C6-8334881C49D1

Listing businesses starting with S after we publish


S?????ú?§??
Sample Business
 类似资料: