You should file a bug about wsdl2java with an attached example if you
want it fixed ...
Tim
Sergio Bossa wrote:
Did you regenerate the client stub using Axis 1.2RC3 wsdl2java?
I do not use wsdl2java stubs: it produces a buggy fault
implementation, generating a MontagSOAPFault_Element.java class file
instead of a MontagSOAPFault class, so I have to correct it by hand,
which is very annoying.
I posted an help request about this, but nobody answered :-(
So, I use Axis API directly, this is a code snippet:
String wsdl="http://localhost:8084/montag/services/XQueryService?wsdl";
Service service = new Service(new java.net.URL(wsdl),new
QName("http://montag.sourceforge.net/ns/wsdl/local","XQueryServiceService"));
Call call=(Call) service.createCall(new QName("XQueryService"));
SOAPHeaderElement username=new
SOAPHeaderElement("http://montag.sourceforge.net/ns/wsdl/local","username");
SOAPHeaderElement password=new
SOAPHeaderElement("http://montag.sourceforge.net/ns/wsdl/local","password");
username.addTextNode("");
password.addTextNode("");
call.addHeader(username);
call.addHeader(password);
call.setOperationName(new
QName("http://montag.sourceforge.net/ns/wsdl/local", "query") );
ret = (String) call.invoke( new Object[] { "/resources", "<test> {
//[EMAIL PROTECTED] } </test>", null, new
String[]{"ts","1113390437052"} } );
....
Is there anything wrong?
I tried rebuilding all, but it's always the same.
If so, then I would expect it to send a message that looks something like this:
<namespaces>ts</namespaces>
<vars>1113390437052</vars>
No, <namespaces> is the first array, <vars> the second one: 'ts' and
'1113390437052' are both elements of the second array, and the first
array is null.
I hope you'll find the solution.
I run out of ideas.
Thank you.
Regards,
Sergio B.