WSE 3.0 - 麻烦地使用Java Web服务 [英] WSE 3.0 - Trouble Consuming Java Web Service

查看:113
本文介绍了WSE 3.0 - 麻烦地使用Java Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,我正在尝试使用Java开发的Web服务,我遇到了一些问题。我的错误信息是这个。有人可以帮忙吗?谢谢。

客户发现响应内容类型'multipart / related;类型= QUOT;应用/ XOP + XML英寸;开始="< soap.xml@xfire.codehaus.org>英寸;启动信息= QUOT;文本/ XML英寸; boundary =" ---- = _ Part_68409_14031360.1191964422401"',但预期'text / xml'。
请求失败并显示错误消息:


----- - = _ Part_68409_14031360.1191964422401
Content-Type:application / xop + xml;字符集= UTF-8; type =" text / xml"
Content-Transfer-Encoding:8bit
Content-ID:< soap.xml@xfire.codehaus.org>

< soap:Envelope xmlns < img alt ="Tongue Tied"src ="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif"> oap =" http://schemas.xmlsoap.org/soap/envelope/" ;的xmlns:XSD = QUOT; HTTP://www.w3.org/2001/XMLSchema" xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance">< soap:Body>< getForumResponse xmlns =" http://jivesoftware.com/webservices">< ; out>< ID xmlns =" http://webservices.forum.jivesoftware.com"> 104< / ID>< NNTPName xmlns =" http://webservices.forum.jivesoftware.com">论坛1< / NNTPName>< categoryID xmlns =" http://webservices.forum.jivesoftware.com"> 2< / categoryID>< creationDate xmlns =" http://webservices.forum.jivesoftware.com" ;> 2007-08-30T13:33:58.731-07:00< / creationDate>< description xmlns =" http://webservices.forum.jivesoftware.com">在这里讨论论坛< / description>< finalLocale xmlns =" http://webservices.forum.jivesoftware.com">< countryCode> US< / countryCode>< languageCode> en< / languageCode>< / finalLocale>< latestMessageID xmlns =" http ://webservices.forum.jivesoftware.com"> 12875443< / latestMessageID> < locale xmlns =" http://webservices.forum.jivesoftware.com"的xsi:无= QUOT;真" />< maxForumIndex xmlns =" http://webservices.forum.jivesoftware.com"> 3459< / maxForumIndex>< minForumIndex xmlns =" http://webservices.forum.jivesoftware.com"> 1< / minForumIndex>< moderationDefaultMessageValue xmlns =" http://webservices.forum.jivesoftware.com"> 1< / moderationDefaultMessageValue>< moderationDefaultThreadValue xmlns =" http://webservices.forum.jivesoftware.com" > 1< / moderationDefaultThreadValue>< modificationDate xmlns =" http://webservices.forum.jivesoftware.com"> 2007-10-09T14:11:01.408-07:00< / modificationDate>< name xmlns = " http://webservices.forum.jivesoftware.com">论坛名称倒计时< / name>< / out>< / getForumResponse>< / soap:Body>< / soap:Envelope>
------ = _ Part_68409_14031360.1191964422401--

Hey all, I'm trying to consume a web service developed in Java and I'm running into some problems.  My error message is this.  Can someone here help out?  Thanks.

Client found response content type of 'multipart/related; type="application/xop+xml"; start="<soap.xml@xfire.codehaus.org>"; start-info="text/xml"; boundary="----=_Part_68409_14031360.1191964422401"', but expected 'text/xml'.
The request failed with the error message:
--

------=_Part_68409_14031360.1191964422401
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: 8bit
Content-ID: <soap.xml@xfire.codehaus.org>

<soap:Envelope xmlnsoap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><getForumResponse xmlns="http://jivesoftware.com/webservices"><out><ID xmlns="http://webservices.forum.jivesoftware.com">104</ID><NNTPName xmlns="http://webservices.forum.jivesoftware.com">forum 1</NNTPName><categoryID xmlns="http://webservices.forum.jivesoftware.com">2</categoryID><creationDate xmlns="http://webservices.forum.jivesoftware.com">2007-08-30T13:33:58.731-07:00</creationDate><description xmlns="http://webservices.forum.jivesoftware.com">Discuss Forum Here</description><finalLocale xmlns="http://webservices.forum.jivesoftware.com"><countryCode>US</countryCode><languageCode>en</languageCode></finalLocale><latestMessageID xmlns="http://webservices.forum.jivesoftware.com">12875443</latestMessageID><locale xmlns="http://webservices.forum.jivesoftware.com" xsi:nil="true" /><maxForumIndex xmlns="http://webservices.forum.jivesoftware.com">3459</maxForumIndex><minForumIndex xmlns="http://webservices.forum.jivesoftware.com">1</minForumIndex><moderationDefaultMessageValue xmlns="http://webservices.forum.jivesoftware.com">1</moderationDefaultMessageValue><moderationDefaultThreadValue xmlns="http://webservices.forum.jivesoftware.com">1</moderationDefaultThreadValue><modificationDate xmlns="http://webservices.forum.jivesoftware.com">2007-10-09T14:11:01.408-07:00</modificationDate><name xmlns="http://webservices.forum.jivesoftware.com">Forum Name Countdown</name></out></getForumResponse></soap:Body></soap:Envelope>
------=_Part_68409_14031360.1191964422401--

推荐答案

有没有人有这个解决方案S'我在使用Java Web服务时遇到了同样的问题。

Does anyone have a solution for this? I am having the exact same problem with consuming a Java webservice.

Thnx,

Ingrid


这篇关于WSE 3.0 - 麻烦地使用Java Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆