-- 作者:bandaotiehe
-- 发布时间:8/29/2008 10:08:00 AM
--
谢谢你啊,我照你的方法做了,还是不能成功运行。 我进入juddi的console运行get_authToken方法可以正常运行返回结果,可是运行示例程序的时候还是报错,貌似是返回的soap消息因为编码的问题不能被正确的解析的样子,错误如下; *********** Running SaveBusinessExample *********** Get authtoken org.uddi4j.transport.TransportException: Unsupported response content type "text/html;charset=GB2312", must be: "text/xml". Response was: <html><head><title>Apache Tomcat/5.0.27 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /juddi/publisher</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/juddi/publisher</u></p><p><b>description</b> <u>The requested resource (/juddi/publisher) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.0.27</h3></body></html> at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:88) at org.uddi4j.transport.TransportBase.send(TransportBase.java:57) at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942) at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626) at com.dareway.SaveBusinessExample.run(SaveBusinessExample.java:75) at com.dareway.SaveBusinessExample.main(SaveBusinessExample.java:50) Nested exception: [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html;charset=GB2312", must be: "text/xml". Response was: <html><head><title>Apache Tomcat/5.0.27 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /juddi/publisher</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/juddi/publisher</u></p><p><b>description</b> <u>The requested resource (/juddi/publisher) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.0.27</h3></body></html>] at org.apache.soap.rpc.Call.getEnvelopeString(Unknown Source) at org.apache.soap.messaging.Message.receiveEnvelope(Unknown Source) at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:79) at org.uddi4j.transport.TransportBase.send(TransportBase.java:57) at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942) at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626) at com.dareway.SaveBusinessExample.run(SaveBusinessExample.java:75) at com.dareway.SaveBusinessExample.main(SaveBusinessExample.java:50) 总感觉编码出了问题,我也不知道在哪里配置。包都全了,都够。麻烦您了啊
|