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 Sam Ruby <ru...@apache.org> on 2002/06/28 04:39:50 UTC
Re: Nil problem - one more step
Costin Manolache wrote:
>
> After updating apacheSOAP to the latest version - it
> seems it detects nil corectly, and it has another problem.
>
> What apacheSOAP sends is:
> <name xsi:type="xsd:string" xsi:null="true"/>
>
> What Axis sends:
> <name xsi:nil="true"/>
>
> ApacheSOAP doesn't accept this input, since the type is missing
> ( xsd:string ) - so it fails with:
>
> No mapping found for ':name' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.;
> targetException=java.lang.IllegalArgumentException: No mapping found for
> ':name' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.]
>
> at org.apache.soap.rpc.Call.invoke(Call.java:296)
So, provide a mapping for :name to String. For an example of how to do
so, take a look at
http://cvs.apache.org/viewcvs.cgi/xml-soap/java/samples/interop/DeploymentDescriptor.xml
Note: the syntax by which you do this with Apache SOAP is invalid XML.
This means that you can't browse this example using modern browsers
(e.g. IE6 or Mozilla 1.0) or use Xerces 2.0. However, this error is not
caught by Crimson or Xerces 1.x.
For more details, see
http://marc.theaimsgroup.com/?l=soap-dev&m=101283660613843&w=2
> I have no idea who is right and who is wrong, but it's very
> scarry.
Per the SOAP specification, xsi:type is optional. However, in April, I
did add the code to Axis to add this information.
- Sam Ruby
Re: Nil problem - one more step
Posted by Sam Ruby <ru...@apache.org>.
costinm@covalent.net wrote:
>
> I'll just try to move to axis on both ends ( well, a modified axis
> that uses Hashtables for maps, otherwise I'll have to edit too
> much code )
>
> Any info on this one ? Is the correct mapping a Hashtable or a
> HashMap ?
Now we should support either. Give it a try.
- Sam Ruby
Re: Nil problem - one more step
Posted by co...@covalent.net.
On Thu, 27 Jun 2002 costinm@covalent.net wrote:
> I'll just try to move to axis on both ends ( well, a modified axis
Done.
Sam and everybody - many thanks for your help, I got everything
working on axis. There is only the Hashtable problem, but I'll
just use a modified axis for now.
Costin
Re: Nil problem - one more step
Posted by co...@covalent.net.
On Thu, 27 Jun 2002, Sam Ruby wrote:
> > targetException=java.lang.IllegalArgumentException: No mapping found for
> > ':name' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.]
> >
> > at org.apache.soap.rpc.Call.invoke(Call.java:296)
>
> So, provide a mapping for :name to String. For an example of how to do
> so, take a look at
For every field in the object hierarchy that may be null ???
> Per the SOAP specification, xsi:type is optional. However, in April, I
> did add the code to Axis to add this information.
I now use cvs HEAD on both xml-axis and xml-soap.
I'll just try to move to axis on both ends ( well, a modified axis
that uses Hashtables for maps, otherwise I'll have to edit too
much code )
Any info on this one ? Is the correct mapping a Hashtable or a
HashMap ?
Costin
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: Nil problem - one more step
Posted by co...@covalent.net.
On Thu, 27 Jun 2002, Sam Ruby wrote:
> > targetException=java.lang.IllegalArgumentException: No mapping found for
> > ':name' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.]
> >
> > at org.apache.soap.rpc.Call.invoke(Call.java:296)
>
> So, provide a mapping for :name to String. For an example of how to do
> so, take a look at
For every field in the object hierarchy that may be null ???
> Per the SOAP specification, xsi:type is optional. However, in April, I
> did add the code to Axis to add this information.
I now use cvs HEAD on both xml-axis and xml-soap.
I'll just try to move to axis on both ends ( well, a modified axis
that uses Hashtables for maps, otherwise I'll have to edit too
much code )
Any info on this one ? Is the correct mapping a Hashtable or a
HashMap ?
Costin
Re: Nil problem - one more step
Posted by co...@covalent.net.
On Thu, 27 Jun 2002, Sam Ruby wrote:
> > targetException=java.lang.IllegalArgumentException: No mapping found for
> > ':name' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.]
> >
> > at org.apache.soap.rpc.Call.invoke(Call.java:296)
>
> So, provide a mapping for :name to String. For an example of how to do
> so, take a look at
For every field in the object hierarchy that may be null ???
> Per the SOAP specification, xsi:type is optional. However, in April, I
> did add the code to Axis to add this information.
I now use cvs HEAD on both xml-axis and xml-soap.
I'll just try to move to axis on both ends ( well, a modified axis
that uses Hashtables for maps, otherwise I'll have to edit too
much code )
Any info on this one ? Is the correct mapping a Hashtable or a
HashMap ?
Costin