You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Ashutosh Somani <as...@MIT.EDU> on 2001/03/05 23:32:08 UTC
Deployment Descriptor for Vectors
Hi,
Does anyone know how to properly give the javatype for a Vector?
Here is the code that I am trying:
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:xml-soap-trackingserver" qname="x:vector"
javaType="java.lang.Vector"
java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.VectorSerialize
xml2JavaClassName="org.apache.soap.encoding.soapenc.VectorSerializer" />
</isd:mappings>
However, I get the following error when I try this:
Fault String = deployment error in SOAP service 'urn:TrackFetcher': class
name 'java.lang.Vector' could not be resolved: java.lang.Vector
I'm not sure what to do in order for the Service to find the java.lang
package. It's in my classpath (and all my code compiles) but I can't seem
to deploy a service when I try to have this mapping in my Deployment
Descriptor.
Any help would be much appreciated. Thanks.
Ash
Re: Deployment Descriptor for Vectors
Posted by Ashutosh Somani <as...@MIT.EDU>.
Cool, thanks. I got it too work.
Does anyone know of a good place to find out which serializers are
available and what they should be used to serialize?
For instance, I am trying to serialize a java.math.BigInteger object and
can't figure out which serializer I need to use.
Thanks.
Ash
At 05:37 PM 3/5/2001 -0500, you wrote:
>You don't need to do a mapping for Vectors. Apache SOAP v2.1 includes
>Vectors in the "automatically handled" class list. They should just
>automatically serialize and deserialize just like Strings, Integers, etc.
>
>(incidentally, though, it's java.util.Vector (at least for me))
>
>--Glen
>>----- Original Message -----
>>From: <ma...@MIT.EDU>Ashutosh Somani
>>To: <ma...@xml.apache.org>soap-user@xml.apache.org
>>Sent: Monday, March 05, 2001 5:32 PM
>>Subject: Deployment Descriptor for Vectors
>>
>>Hi,
>>Does anyone know how to properly give the javatype for a Vector?
>>Here is the code that I am trying:
>>
>><isd:mappings>
>> <isd:map
>> encodingStyle="<http://schemas.xmlsoap.org/soap/encoding/>http://schemas.
>> xmlsoap.org/soap/encoding/"
>> xmlns:x="urn:xml-soap-trackingserver" qname="x:vector"
>> javaType="java.lang.Vector"
>>
>>java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
>>
>>xml2JavaClassName="org.apache.soap.encoding.soapenc.VectorSerializer" />
>></isd:mappings>
>>
>>
>>
>>However, I get the following error when I try this:
>>Fault String = deployment error in SOAP service 'urn:TrackFetcher': class
>>name 'java.lang.Vector' could not be resolved: java.lang.Vector
>>
>>I'm not sure what to do in order for the Service to find the java.lang
>>package. It's in my classpath (and all my code compiles) but I can't seem
>>to deploy a service when I try to have this mapping in my Deployment
>>Descriptor.
>>Any help would be much appreciated. Thanks.
>>
>>Ash
Re: Deployment Descriptor for Vectors
Posted by Olivier Brand <ol...@intraware.com>.
Yes ! Vector is in the java.util package not java.lang. The email I sent
last week was obviously buggy (and yest untested ;-))
Olivier
Ashutosh Somani wrote:
> Hi,
> Does anyone know how to properly give the javatype for a Vector?
> Here is the code that I am trying:
>
> <isd:mappings>
> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:x="urn:xml-soap-trackingserver" qname="x:vector"
> javaType="java.lang.Vector"
> java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
> xml2JavaClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
> />
> </isd:mappings>
>
>
> However, I get the following error when I try this:
> Fault String = deployment error in SOAP service 'urn:TrackFetcher':
> class name 'java.lang.Vector' could not be resolved: java.lang.Vector
>
> I'm not sure what to do in order for the Service to find the java.lang
> package. It's in my classpath (and all my code compiles) but I can't
> seem to deploy a service when I try to have this mapping in my
> Deployment Descriptor.
> Any help would be much appreciated. Thanks.
>
> Ash
Re: Deployment Descriptor for Vectors
Posted by Ashutosh Somani <as...@MIT.EDU>.
Cool, thanks. I got it too work.
Does anyone know of a good place to find out which serializers are
available and what they should be used to serialize?
For instance, I am trying to serialize a java.math.BigInteger object and
can't figure out which serializer I need to use.
Thanks.
Ash
At 05:37 PM 3/5/2001 -0500, you wrote:
>You don't need to do a mapping for Vectors. Apache SOAP v2.1 includes
>Vectors in the "automatically handled" class list. They should just
>automatically serialize and deserialize just like Strings, Integers, etc.
>
>(incidentally, though, it's java.util.Vector (at least for me))
>
>--Glen
>>----- Original Message -----
>>From: <ma...@MIT.EDU>Ashutosh Somani
>>To: <ma...@xml.apache.org>soap-user@xml.apache.org
>>Sent: Monday, March 05, 2001 5:32 PM
>>Subject: Deployment Descriptor for Vectors
>>
>>Hi,
>>Does anyone know how to properly give the javatype for a Vector?
>>Here is the code that I am trying:
>>
>><isd:mappings>
>> <isd:map
>> encodingStyle="<http://schemas.xmlsoap.org/soap/encoding/>http://schemas.
>> xmlsoap.org/soap/encoding/"
>> xmlns:x="urn:xml-soap-trackingserver" qname="x:vector"
>> javaType="java.lang.Vector"
>>
>>java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
>>
>>xml2JavaClassName="org.apache.soap.encoding.soapenc.VectorSerializer" />
>></isd:mappings>
>>
>>
>>
>>However, I get the following error when I try this:
>>Fault String = deployment error in SOAP service 'urn:TrackFetcher': class
>>name 'java.lang.Vector' could not be resolved: java.lang.Vector
>>
>>I'm not sure what to do in order for the Service to find the java.lang
>>package. It's in my classpath (and all my code compiles) but I can't seem
>>to deploy a service when I try to have this mapping in my Deployment
>>Descriptor.
>>Any help would be much appreciated. Thanks.
>>
>>Ash
Re: Deployment Descriptor for Vectors
Posted by Glen Daniels <gd...@allaire.com>.
You don't need to do a mapping for Vectors. Apache SOAP v2.1 includes Vectors in the "automatically handled" class list. They should just automatically serialize and deserialize just like Strings, Integers, etc.
(incidentally, though, it's java.util.Vector (at least for me))
--Glen
----- Original Message -----
From: Ashutosh Somani
To: soap-user@xml.apache.org
Sent: Monday, March 05, 2001 5:32 PM
Subject: Deployment Descriptor for Vectors
Hi,
Does anyone know how to properly give the javatype for a Vector?
Here is the code that I am trying:
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:xml-soap-trackingserver" qname="x:vector"
javaType="java.lang.Vector"
java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.VectorSerializer" />
</isd:mappings>
However, I get the following error when I try this:
Fault String = deployment error in SOAP service 'urn:TrackFetcher': class name 'java.lang.Vector' could not be resolved: java.lang.Vector
I'm not sure what to do in order for the Service to find the java.lang package. It's in my classpath (and all my code compiles) but I can't seem to deploy a service when I try to have this mapping in my Deployment Descriptor.
Any help would be much appreciated. Thanks.
Ash
Re: Deployment Descriptor for Vectors
Posted by Glen Daniels <gd...@allaire.com>.
You don't need to do a mapping for Vectors. Apache SOAP v2.1 includes Vectors in the "automatically handled" class list. They should just automatically serialize and deserialize just like Strings, Integers, etc.
(incidentally, though, it's java.util.Vector (at least for me))
--Glen
----- Original Message -----
From: Ashutosh Somani
To: soap-user@xml.apache.org
Sent: Monday, March 05, 2001 5:32 PM
Subject: Deployment Descriptor for Vectors
Hi,
Does anyone know how to properly give the javatype for a Vector?
Here is the code that I am trying:
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:xml-soap-trackingserver" qname="x:vector"
javaType="java.lang.Vector"
java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.VectorSerializer" />
</isd:mappings>
However, I get the following error when I try this:
Fault String = deployment error in SOAP service 'urn:TrackFetcher': class name 'java.lang.Vector' could not be resolved: java.lang.Vector
I'm not sure what to do in order for the Service to find the java.lang package. It's in my classpath (and all my code compiles) but I can't seem to deploy a service when I try to have this mapping in my Deployment Descriptor.
Any help would be much appreciated. Thanks.
Ash
Re: Deployment Descriptor for Vectors
Posted by Olivier Brand <ol...@intraware.com>.
Yes ! Vector is in the java.util package not java.lang. The email I sent
last week was obviously buggy (and yest untested ;-))
Olivier
Ashutosh Somani wrote:
> Hi,
> Does anyone know how to properly give the javatype for a Vector?
> Here is the code that I am trying:
>
> <isd:mappings>
> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:x="urn:xml-soap-trackingserver" qname="x:vector"
> javaType="java.lang.Vector"
> java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
> xml2JavaClassName="org.apache.soap.encoding.soapenc.VectorSerializer"
> />
> </isd:mappings>
>
>
> However, I get the following error when I try this:
> Fault String = deployment error in SOAP service 'urn:TrackFetcher':
> class name 'java.lang.Vector' could not be resolved: java.lang.Vector
>
> I'm not sure what to do in order for the Service to find the java.lang
> package. It's in my classpath (and all my code compiles) but I can't
> seem to deploy a service when I try to have this mapping in my
> Deployment Descriptor.
> Any help would be much appreciated. Thanks.
>
> Ash