You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by kodandapani a <e_...@rediffmail.com> on 2001/04/25 10:43:50 UTC
Responding to different devices from one servlet
hi
I am using Cocoon1.8. my webserver is Apache with Tomcat as servlet engine. I am facing problem in sending responses to different devices by using one servlet.
I set the content type as "text/xml".
The problem seems to be solved if I can have different servlets for different devices.
I need to use one servlet to talk to all the devices.
If I use IE 5.0 and Netscape 6.0 as the two devices, because these two have built in parsers, everything seems to work out fine. But if i use a Wap browser, the problem starts because it doesn't have a built in parser and it doesn't know what <?xml version="1.0"?> is.
Will someone provide some help.
regards,
e_wireless
_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Wrong list: No Deserializer found..
Posted by Matthew Langham <ml...@sundn.de>.
Dammm........Wrong list (again)
sorry.
Matthew
--
Open Source Group sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel: +49-5251-1581-30 [mlangham@sundn.de - http://www.sundn.de]
=================================================================
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
No Deserializer found..
Posted by Matthew Langham <ml...@sundn.de>.
I am using ApacheSoap to access a SOAP server running on .NET
String return types are no problem - but I now have to access a function
that returns an xsd:double. I get the following error:
>>
No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style
'http://schemas.microsoft.com/soap/encoding/clr/1.0
http://schemas.xmlsoap.org/soap/encoding/'.
<<
Can someone send me a sample showing what I need to do? I have searched the
list and reckon I need something along the lines of :
>>
SOAPMappingRegistry smr = new SOAPMappingRegistry ();
ParameterSerializer pd = new ParameterSerializer();
smr.mapTypes (null,
new QName ("http://schemas.xmlsoap.org/soap/envelope/",
"Parameter"), null, null, pd);
DoubleDeserializer dd = new DoubleDeserializer ();
smr.mapTypes (Constants.NS_URI_SOAP_ENC, new QName("", "return"),
null,null, dd);
<<
But the above snippet does not work.
Here is the WSDL part:
- <message name="FooService.RequestInput">
<part name="ProductName" type="xsd:string" />
<part name="Number" type="xsd:int" />
</message>
- <message name="FooService.RequestOutput">
<part name="return" type="xsd:double" />
</message>
Many thanks.
Matthew
--
Open Source Group sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel: +49-5251-1581-30 [mlangham@sundn.de - http://www.sundn.de]
=================================================================
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>