[jboss-user] [JBossWS] - Re: Unsupported content type: application/x-www-form-urlenco
florian79
do-not-reply at jboss.com
Sat Jul 14 06:42:46 EDT 2007
yes it sounds like a problem with the content-type. But I set the HTTP- HEADER with
'Content-Type':'text/xml'
And I tried the following encode variations:
plain:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><getHalloWorld xmlns="http://hibernate.base.dooris.com/jaws"></getHalloWorld></soap:Body></soap:Envelope>
escape:
%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A//schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoap%3ABody%3E%3CgetHalloWorld%20xmlns%3D%22http%3A//hibernate.base.dooris.com/jaws%22%3E%3C/getHalloWorld%3E%3C/soap%3ABody%3E%3C/soap%3AEnvelope%3E
encodeURI:
%3C?xml%20version=%221.0%22%20encoding=%22UTF-8%22?%3E%3Csoap:Envelope%20xmlns:soap=%22http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoap:Body%3E%3CgetHalloWorld%20xmlns=%22http://hibernate.base.dooris.com/jaws%22%3E%3C/getHalloWorld%3E%3C/soap:Body%3E%3C/soap:Envelope%3E
and encodeURIComponent:
%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%3E%3Csoap%3ABody%3E%3CgetHalloWorld%20xmlns%3D%22http%3A%2F%2Fhibernate.base.dooris.com%2Fjaws%22%3E%3C%2FgetHalloWorld%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
my HTTP-HEADER :
| Request Headers
| Host 18.nvmodules.netvibes.com
| User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
| Accept text/javascript, text/html, application/xml, text/xml, */*
| Accept-Language de
| Accept-Encoding gzip,deflate
| Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
| Keep-Alive 300
| Connection close
| Content-Type text/xml
| X-Requested-With XMLHttpRequest
| Referer http://18.nvmodules.netvibes.com/api/uwa/frame/uwa_netvibes.php?id=18&moduleUrl=http%3A%2F%2Fwww.loom-gmbh.de%2Fdemo%2Fwidget_webservice.php&url=http%3A%2F%2Fwww.dooris.de%2Fnetvibes%2Fcontent1.htm&NVdomain=www.netvibes.com&NVthemeUrl=%2Fthemes%2Fcoriander%2Fscreen.css&NVlang=de_DE&NVlocale=de&NVcommType=TUAcallback&NVwidgetDomain=18.nvmodules.netvibes.com&NVsubspaceDomain=netvibes.com
| Content-Length 324
| Pragma no-cache
| Cache-Control no-cache
|
always the same exception with IE and MOZILLA
is there any example in the web, how to call a jboss-webservice by browser?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064215#4064215
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064215
More information about the jboss-user
mailing list