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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to