Hi Scott.. Thank u very much for your answer.

Please , can u tell me if what i done is right?

.NET expose on its WSDL (with style='rpc') this response message.

<message name='wf.VerifyResponse'>
   <part name='User' type='xsd:boolean'/>
   <part name='XMLData' type='xsd:string'/>
   <part name='Error' type='xsd:string'/>
</message>

As u can see it does not define a complextype because it's using  in/out parameters 
(and i cannot handle it with apache soap 2.3.1).

My application invokes web services with 

Response response = call.invoke(new URL(stringURL), SOAPActionURI);

and to get the response values it uses

Parameter refValue = response .getReturnValue(); (to get the first 'User' part)
Vector vectorParameter=response.getParams(); (to get the second 'XMLData' end third 
'Error' parts)


I don't know if it is correct but it's working good.

Bye
Michele


-----Messaggio originale-----
Da: Scott Nichol [mailto:[EMAIL PROTECTED] 
Inviato: Friday, August 29, 2003 3:35 PM
A: [EMAIL PROTECTED]
Oggetto: Re: In/out parameters


Apache SOAP does not handle output parameters.  I added my own support for this for a 
client of mine some time ago, but I do not think the method was good enough for 
general inclusion in Apache SOAP.  Basically, all array parameters were treated as 
inout (since in Java, using an array is one common way of similating a "by reference" 
semantic).  The values for the arrays were copied to the response message after the 
Java method was called.  To use this, however, the server must be aware that the 
parameters are arrays, which would not be the case with existing .NET and Axis 
services.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Trimarchi Michele" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 4:33 AM
Subject: In/out parameters


Hi to all
I have a big problem invoking a .NET web service that uses In/Out parameter instead 
creating a complex type returned by the Procedure. Is it possible to use in/out 
parameters on an RPC call with apache soap 2.3.1 ? I saw that other implementations 
like AXIS and GLUE allow it with INOUT attribute on Parameter class.

Any helps will be very appreciated...

Bye
Michele




Reply via email to