以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  新手!!请教一个用uddi4j运行saveBusinessExample的错误  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=52859)


--  作者:pandaann
--  发布时间:9/19/2007 12:40:00 PM

--  新手!!请教一个用uddi4j运行saveBusinessExample的错误
我在运行uddi4j目录下的SaveBusinessExample.java时,出现如下异常:
*********** Running SaveBusinessExample ***********

Get authtoken
org.uddi4j.transport.TransportException: no protocol: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope 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">
<soapenv:Body>
  <authToken generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
   <authInfo>authToken:E3AE1C30-6669-11DC-AA1E-AEFAD1C24DCB</authInfo>
  </authToken>
</soapenv:Body>
</soapenv:Envelope>
 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 panda.SaveBusinessExample.run(SaveBusinessExample.java:74)
 at panda.SaveBusinessExample.main(SaveBusinessExample.java:52)

Nested exception:
[SOAPException: faultCode=SOAP-ENV:Client; msg=no protocol: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope 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">
<soapenv:Body>
  <authToken generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
   <authInfo>authToken:E3AE1C30-6669-11DC-AA1E-AEFAD1C24DCB</authInfo>
  </authToken>
</soapenv:Body>
</soapenv:Envelope>; targetException=java.net.MalformedURLException: no protocol: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope 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">
<soapenv:Body>
  <authToken generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
   <authInfo>authToken:E3AE1C30-6669-11DC-AA1E-AEFAD1C24DCB</authInfo>
  </authToken>
</soapenv:Body>
</soapenv:Envelope>]
 at org.apache.soap.messaging.Message.receiveEnvelope(Message.java:144)
 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 panda.SaveBusinessExample.run(SaveBusinessExample.java:74)
 at panda.SaveBusinessExample.main(SaveBusinessExample.java:52)
Caused by: java.net.MalformedURLException: no protocol: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope 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">
<soapenv:Body>
  <authToken generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
   <authInfo>authToken:E3AE1C30-6669-11DC-AA1E-AEFAD1C24DCB</authInfo>
  </authToken>
</soapenv:Body>
</soapenv:Envelope>
 at java.net.URL.<init>(Unknown Source)
 at java.net.URL.<init>(Unknown Source)
 at java.net.URL.<init>(Unknown Source)
 at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
 at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
 at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
 at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
 at org.apache.soap.util.xml.XMLParserUtils.parse(XMLParserUtils.java:323)
 at org.apache.soap.util.xml.XMLParserUtils.parse(XMLParserUtils.java:247)
 at org.apache.soap.messaging.Message.receiveEnvelope(Message.java:127)
 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 panda.SaveBusinessExample.run(SaveBusinessExample.java:74)
 at panda.SaveBusinessExample.main(SaveBusinessExample.java:52)

请问这个问题如果解决??


--  作者:jing0228
--  发布时间:12/5/2007 5:05:00 PM

--  
我碰上了同样的问题,有高手能帮着解决吗?先谢了
--  作者:bandaotiehe
--  发布时间:8/26/2008 9:42:00 AM

--  
顶啊   有谁解决了这个问题啊  谢谢了啊
--  作者:bandaotiehe
--  发布时间:8/29/2008 10:32:00 AM

--  
再顶啊,没人解决吗
--  作者:renjianhua1981
--  发布时间:7/8/2009 10:20:00 PM

--  
那位高手能解决上面的问题啊,说说啊。谢谢了。
--  作者:kizi
--  发布时间:10/18/2009 1:58:00 PM

--  
我也碰到同样的问题,高手快来帮忙啊
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
70.313ms