You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Sanjay bahal <sb...@yahoo.com> on 2001/11/14 14:50:51 UTC
Soap Deseralization Error
Hi,
I get the flwg error:
<faultstring>No Deserializer found to deserialize a
'urn:my_encoding:demo.Invoice' using
encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
demo.Invoice my class.
any ideas,
Thanks
Sanjay
I use Tomcat 3_2 and SOAP_2_2
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
RE: Soap Deseralization Error
Posted by Sanjay bahal <sb...@yahoo.com>.
Any body getting a chance to look at this.
TIA
Sanjay
--- Sanjay bahal <sb...@yahoo.com> wrote:
> The code looks like this:
> SOAPMappingRegistry registry = new
> SOAPMappingRegistry();
> QName qname = new QName( "urn:my_encoding",
> "demo.Invoice" );
> BeanSerializer serializer = new BeanSerializer();
> registry.mapTypes( Constants.NS_URI_SOAP_ENC,
> qname,
> Invoice.class, serializer, serializer );
>
> // prepare the service invocation
> Call call = new Call();
> call.setSOAPMappingRegistry( registry );
> call.setTargetObjectURI( urn );
> call.setMethodName( "receive" );
> call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC
> );
> Vector params = new Vector();
> params.addElement( new Parameter( "invoice",
> Invoice.class, new Invoice( "MyInvoice", 42 ), null
> )
> );
> call.setParams( params );
> Response response = call.invoke( url, "" );
>
> Thanks again,
> Sanjay
> --- Sanjay bahal <sb...@yahoo.com> wrote:
> > Henk:
> > Here is the deployment descriptor:
> > [TypeMapping
> >
>
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=my_encoding:demo.Invoice,javaType=demo.Invoice,java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> > I don't know the version numbers of Soap/Tomcat. I
> > had
> > downloaded the latest builds a little while ago,
> > Thanks
> > Sanjay
> >
> >
> > --- Henk Schipper <he...@software684.com>
> > wrote:
> > > What other modules are you using? I can't
> imaging
> > > you use only those two.
> > > Pls specify also the version numbers.
> > >
> > > Further on can you give the definition of your
> > > deployment descriptor and
> > > soap request?
> > >
> > > Thx
> > >
> > > Henk.
> > >
> > > -----Original Message-----
> > > From: Sanjay bahal [mailto:sb6325@yahoo.com]
> > > Sent: Wednesday, 14 November, 2001 2:51 PM
> > > To: soap-dev@xml.apache.org
> > > Subject: Soap Deseralization Error
> > >
> > >
> > > Hi,
> > > I get the flwg error:
> > > <faultstring>No Deserializer found to
> deserialize
> > a
> > > 'urn:my_encoding:demo.Invoice' using
> > > encoding style
> > >
> >
>
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
> > >
> > > demo.Invoice my class.
> > > any ideas,
> > > Thanks
> > > Sanjay
> > > I use Tomcat 3_2 and SOAP_2_2
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Find the one for you at Yahoo! Personals
> > > http://personals.yahoo.com
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Find the one for you at Yahoo! Personals
> > http://personals.yahoo.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
RE: Soap Deseralization Error
Posted by Sanjay bahal <sb...@yahoo.com>.
Any body getting a chance to look at this.
TIA
Sanjay
--- Sanjay bahal <sb...@yahoo.com> wrote:
> The code looks like this:
> SOAPMappingRegistry registry = new
> SOAPMappingRegistry();
> QName qname = new QName( "urn:my_encoding",
> "demo.Invoice" );
> BeanSerializer serializer = new BeanSerializer();
> registry.mapTypes( Constants.NS_URI_SOAP_ENC,
> qname,
> Invoice.class, serializer, serializer );
>
> // prepare the service invocation
> Call call = new Call();
> call.setSOAPMappingRegistry( registry );
> call.setTargetObjectURI( urn );
> call.setMethodName( "receive" );
> call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC
> );
> Vector params = new Vector();
> params.addElement( new Parameter( "invoice",
> Invoice.class, new Invoice( "MyInvoice", 42 ), null
> )
> );
> call.setParams( params );
> Response response = call.invoke( url, "" );
>
> Thanks again,
> Sanjay
> --- Sanjay bahal <sb...@yahoo.com> wrote:
> > Henk:
> > Here is the deployment descriptor:
> > [TypeMapping
> >
>
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=my_encoding:demo.Invoice,javaType=demo.Invoice,java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> > I don't know the version numbers of Soap/Tomcat. I
> > had
> > downloaded the latest builds a little while ago,
> > Thanks
> > Sanjay
> >
> >
> > --- Henk Schipper <he...@software684.com>
> > wrote:
> > > What other modules are you using? I can't
> imaging
> > > you use only those two.
> > > Pls specify also the version numbers.
> > >
> > > Further on can you give the definition of your
> > > deployment descriptor and
> > > soap request?
> > >
> > > Thx
> > >
> > > Henk.
> > >
> > > -----Original Message-----
> > > From: Sanjay bahal [mailto:sb6325@yahoo.com]
> > > Sent: Wednesday, 14 November, 2001 2:51 PM
> > > To: soap-dev@xml.apache.org
> > > Subject: Soap Deseralization Error
> > >
> > >
> > > Hi,
> > > I get the flwg error:
> > > <faultstring>No Deserializer found to
> deserialize
> > a
> > > 'urn:my_encoding:demo.Invoice' using
> > > encoding style
> > >
> >
>
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
> > >
> > > demo.Invoice my class.
> > > any ideas,
> > > Thanks
> > > Sanjay
> > > I use Tomcat 3_2 and SOAP_2_2
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Find the one for you at Yahoo! Personals
> > > http://personals.yahoo.com
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Find the one for you at Yahoo! Personals
> > http://personals.yahoo.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
RE: Soap Deseralization Error
Posted by Sanjay bahal <sb...@yahoo.com>.
The code looks like this:
SOAPMappingRegistry registry = new
SOAPMappingRegistry();
QName qname = new QName( "urn:my_encoding",
"demo.Invoice" );
BeanSerializer serializer = new BeanSerializer();
registry.mapTypes( Constants.NS_URI_SOAP_ENC, qname,
Invoice.class, serializer, serializer );
// prepare the service invocation
Call call = new Call();
call.setSOAPMappingRegistry( registry );
call.setTargetObjectURI( urn );
call.setMethodName( "receive" );
call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC
);
Vector params = new Vector();
params.addElement( new Parameter( "invoice",
Invoice.class, new Invoice( "MyInvoice", 42 ), null )
);
call.setParams( params );
Response response = call.invoke( url, "" );
Thanks again,
Sanjay
--- Sanjay bahal <sb...@yahoo.com> wrote:
> Henk:
> Here is the deployment descriptor:
> [TypeMapping
>
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=my_encoding:demo.Invoice,javaType=demo.Invoice,java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> I don't know the version numbers of Soap/Tomcat. I
> had
> downloaded the latest builds a little while ago,
> Thanks
> Sanjay
>
>
> --- Henk Schipper <he...@software684.com>
> wrote:
> > What other modules are you using? I can't imaging
> > you use only those two.
> > Pls specify also the version numbers.
> >
> > Further on can you give the definition of your
> > deployment descriptor and
> > soap request?
> >
> > Thx
> >
> > Henk.
> >
> > -----Original Message-----
> > From: Sanjay bahal [mailto:sb6325@yahoo.com]
> > Sent: Wednesday, 14 November, 2001 2:51 PM
> > To: soap-dev@xml.apache.org
> > Subject: Soap Deseralization Error
> >
> >
> > Hi,
> > I get the flwg error:
> > <faultstring>No Deserializer found to deserialize
> a
> > 'urn:my_encoding:demo.Invoice' using
> > encoding style
> >
>
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
> >
> > demo.Invoice my class.
> > any ideas,
> > Thanks
> > Sanjay
> > I use Tomcat 3_2 and SOAP_2_2
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Find the one for you at Yahoo! Personals
> > http://personals.yahoo.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
RE: Soap Deseralization Error
Posted by Sanjay bahal <sb...@yahoo.com>.
The code looks like this:
SOAPMappingRegistry registry = new
SOAPMappingRegistry();
QName qname = new QName( "urn:my_encoding",
"demo.Invoice" );
BeanSerializer serializer = new BeanSerializer();
registry.mapTypes( Constants.NS_URI_SOAP_ENC, qname,
Invoice.class, serializer, serializer );
// prepare the service invocation
Call call = new Call();
call.setSOAPMappingRegistry( registry );
call.setTargetObjectURI( urn );
call.setMethodName( "receive" );
call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC
);
Vector params = new Vector();
params.addElement( new Parameter( "invoice",
Invoice.class, new Invoice( "MyInvoice", 42 ), null )
);
call.setParams( params );
Response response = call.invoke( url, "" );
Thanks again,
Sanjay
--- Sanjay bahal <sb...@yahoo.com> wrote:
> Henk:
> Here is the deployment descriptor:
> [TypeMapping
>
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=my_encoding:demo.Invoice,javaType=demo.Invoice,java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> I don't know the version numbers of Soap/Tomcat. I
> had
> downloaded the latest builds a little while ago,
> Thanks
> Sanjay
>
>
> --- Henk Schipper <he...@software684.com>
> wrote:
> > What other modules are you using? I can't imaging
> > you use only those two.
> > Pls specify also the version numbers.
> >
> > Further on can you give the definition of your
> > deployment descriptor and
> > soap request?
> >
> > Thx
> >
> > Henk.
> >
> > -----Original Message-----
> > From: Sanjay bahal [mailto:sb6325@yahoo.com]
> > Sent: Wednesday, 14 November, 2001 2:51 PM
> > To: soap-dev@xml.apache.org
> > Subject: Soap Deseralization Error
> >
> >
> > Hi,
> > I get the flwg error:
> > <faultstring>No Deserializer found to deserialize
> a
> > 'urn:my_encoding:demo.Invoice' using
> > encoding style
> >
>
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
> >
> > demo.Invoice my class.
> > any ideas,
> > Thanks
> > Sanjay
> > I use Tomcat 3_2 and SOAP_2_2
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Find the one for you at Yahoo! Personals
> > http://personals.yahoo.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
RE: Soap Deseralization Error
Posted by Sanjay bahal <sb...@yahoo.com>.
Henk:
Here is the deployment descriptor:
[TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=my_encoding:demo.Invoice,javaType=demo.Invoice,java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
I don't know the version numbers of Soap/Tomcat. I had
downloaded the latest builds a little while ago,
Thanks
Sanjay
--- Henk Schipper <he...@software684.com>
wrote:
> What other modules are you using? I can't imaging
> you use only those two.
> Pls specify also the version numbers.
>
> Further on can you give the definition of your
> deployment descriptor and
> soap request?
>
> Thx
>
> Henk.
>
> -----Original Message-----
> From: Sanjay bahal [mailto:sb6325@yahoo.com]
> Sent: Wednesday, 14 November, 2001 2:51 PM
> To: soap-dev@xml.apache.org
> Subject: Soap Deseralization Error
>
>
> Hi,
> I get the flwg error:
> <faultstring>No Deserializer found to deserialize a
> 'urn:my_encoding:demo.Invoice' using
> encoding style
>
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
>
> demo.Invoice my class.
> any ideas,
> Thanks
> Sanjay
> I use Tomcat 3_2 and SOAP_2_2
>
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
RE: Soap Deseralization Error
Posted by Sanjay bahal <sb...@yahoo.com>.
Henk:
Here is the deployment descriptor:
[TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=my_encoding:demo.Invoice,javaType=demo.Invoice,java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
I don't know the version numbers of Soap/Tomcat. I had
downloaded the latest builds a little while ago,
Thanks
Sanjay
--- Henk Schipper <he...@software684.com>
wrote:
> What other modules are you using? I can't imaging
> you use only those two.
> Pls specify also the version numbers.
>
> Further on can you give the definition of your
> deployment descriptor and
> soap request?
>
> Thx
>
> Henk.
>
> -----Original Message-----
> From: Sanjay bahal [mailto:sb6325@yahoo.com]
> Sent: Wednesday, 14 November, 2001 2:51 PM
> To: soap-dev@xml.apache.org
> Subject: Soap Deseralization Error
>
>
> Hi,
> I get the flwg error:
> <faultstring>No Deserializer found to deserialize a
> 'urn:my_encoding:demo.Invoice' using
> encoding style
>
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
>
> demo.Invoice my class.
> any ideas,
> Thanks
> Sanjay
> I use Tomcat 3_2 and SOAP_2_2
>
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
RE: Soap Deseralization Error
Posted by Henk Schipper <he...@software684.com>.
What other modules are you using? I can't imaging you use only those two.
Pls specify also the version numbers.
Further on can you give the definition of your deployment descriptor and
soap request?
Thx
Henk.
-----Original Message-----
From: Sanjay bahal [mailto:sb6325@yahoo.com]
Sent: Wednesday, 14 November, 2001 2:51 PM
To: soap-dev@xml.apache.org
Subject: Soap Deseralization Error
Hi,
I get the flwg error:
<faultstring>No Deserializer found to deserialize a
'urn:my_encoding:demo.Invoice' using
encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
demo.Invoice my class.
any ideas,
Thanks
Sanjay
I use Tomcat 3_2 and SOAP_2_2
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
RE: Soap Deseralization Error
Posted by Henk Schipper <he...@software684.com>.
What other modules are you using? I can't imaging you use only those two.
Pls specify also the version numbers.
Further on can you give the definition of your deployment descriptor and
soap request?
Thx
Henk.
-----Original Message-----
From: Sanjay bahal [mailto:sb6325@yahoo.com]
Sent: Wednesday, 14 November, 2001 2:51 PM
To: soap-dev@xml.apache.org
Subject: Soap Deseralization Error
Hi,
I get the flwg error:
<faultstring>No Deserializer found to deserialize a
'urn:my_encoding:demo.Invoice' using
encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
demo.Invoice my class.
any ideas,
Thanks
Sanjay
I use Tomcat 3_2 and SOAP_2_2
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com