You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Melanie Courtot <co...@ebi.ac.uk> on 2006/11/24 10:47:30 UTC
Re: REPOST Trace/BPT trap + additional test [SOLVED]
Hi,
I managed to have something working using that ArraySerializer.java class:
http://issues.apache.org/jira/browse/AXIS-2454
(my Axis version is 1.4)
My wsdl for the array is:
<arrayMapping
xmlns:ns="http://www.ebi.ac.uk/sbo/SBOQuery"
qname="ns:>searchResponse"
type="java:uk.ac.ebi.sbo.castorExport.Term[]"
innerType="cmp-ns:Term"
xmlns:cmp-ns="http://castorExport.sbo.ebi.ac.uk"
encodingStyle=""
/>
and for Term I'm using the Castor serializer:
<typeMapping
xmlns:ns="http://castorExport.sbo.ebi.ac.uk"
qname="ns:Term"
type="java:uk.ac.ebi.sbo.castorExport.Term"
serializer="org.apache.axis.encoding.ser.castor.CastorSerializerFactory"
deserializer="org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
encodingStyle=""
/>
So apparently Axis uses the Axis Arrayserializer to work with an array of
castor objects (I thought everything was handled by Castor:
http://issues.apache.org/jira/browse/AXIS-2135)
Hope that helps somebody!
Melanie
> Hi,
>
> As I didn't manage to solve the issue mentionned above (original post
> below), I tried sending back an object which would actually be a
> collection of terms (which is what I'm already doing with the castor XML
> serialization)
> Something like:
> <Sbontology>
> <Term>
> ...
> </Term>
> <Term>
> ...
> </Term>
> ...
> </Sbontology>
>
> I'm still able to get the Term without problem, however I still get the
> same error Trace/BPT trap when I try to get the Sbontology one via a java
> client whereas via the browser everything is fine.
>
> I've been trying to find information on the web without success, and I
> really don't know what goes wrong....
> I have the same problem with a basic String array (with the Axis
> serializer), an array of Terms with the castor serializer, and the
> Sbontology object with the castor serializer again.
>
> Please let me know if you have any idea or need more information, I've
> been stuck on that for a long time....!
>
> Thanks
> Melanie
>
>
>
>
>
> here is my original post:
>
>
>
> Hi,
>
> I'm trying to use arrays with wrapped/literal.
>
> I have a basic method sending back an array of strings:
> public java.lang.String[] searchTermName2(java.lang.String in0) throws
> java.rmi.RemoteException {
> java.lang.String[] mArray = new java.lang.String[1];
> mArray[0] = "hello";
> return mArray;
> }
>
> If I access it via the web browser no problem, I can see the response. If
> I try to access it via command line I get Trace/BPT trap.
>
> To test, if I call an other method sending just a string no problem, and
> the namespaces are the same.
>
> My client is very basic (using the stubs generated by axis):
>
> SBOProviderService service = new SBOProviderServiceLocator();
> SBOProvider port = service.getSBOWebServices();
>
> term = port.getTermById(5);
>
> java.lang.String[] mArray = port.searchTermName2("hello");
>
> If I comment the array line everything works fine.If I leave it as such
> nothing is done (I don't even get the term back from the first call).
> If instead of sending back the array I send back null I actually get back
> the reply with null.
>
> I strongly suspect I'm doing something very wrong, but can't see what:
> namespaces seem ok, I get the reply via the browser, and reply from the
> "basic" methods in the command line.
>
> Thanks for your help,
> Melanie
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org