uddi4j傳入juddi中文字符失敗

今天嘗試使用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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章