Hi Luis,
 
Can you capture the request using TcpTunnelGui and post it here? I'm curious to see exactly how this is being serialized.
 
Thanks,
-Matt
-----Original Message-----
From: Luis Pinho (EST) [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: RE: Vector of parameters as a parameter

I didn't explained very well.
 
I'm using SOAP, and I build an envelope this envelope has it's parameters (a vector of parameters).
 
   Call call = new Call();
   call.setSOAPMappingRegistry(new SOAPMappingRegistry());
   call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
   call.setTargetObjectURI("urn:WAengine_SOAP");
   call.setMethodName("doRPC");
  
  Vector params = new Vector();
   String user = new String((String)httpSession.getValue("user"));
   String cert = new String((String)httpSession.getValue("cert"));
 //Class that's being called using SOAP doRPC(String user,String session_id,String cert, String urn, String method, Vector params)
   params.addElement(new Parameter("user",String.class,user,null));
   params.addElement(new Parameter("session_id",String.class,session_id,null)); 
   params.addElement(new Parameter("cert",String.class,cert,null)); 
   params.addElement(new Parameter("urn",String.class,"urn:Log",null));
   params.addElement(new Parameter("method",String.class,"out",null));  
   Vector parametros = new Vector();
   parametros.addElement(new Parameter("session_id",String.class,session_id,null));
  
   params.addElement(new Parameter("params",Vector.class,parametros,null));
 
 
call.setParams(params);
 
 
 
 
One of the parameters is itself a vector of parameters, so I'm sending a Vector that has a element that is an vector of parameters.
 
 
When I read the vector from the method that is being called, the vector is a vector of Strings.
 
-----Original Message-----
From: Matthew J. Duftler [mailto:[EMAIL PROTECTED]]
Sent: Segunda-feira, 23 de Julho de 2001 15:33
To: [EMAIL PROTECTED]
Subject: RE: Vector of parameters as a parameter

Hi Luis,
 
Can you please provide some more details. I don't believe that the types of the items in the Vector was changed from Parameter to String. Can you please show why you think this is the case?
 
Thanks,
-Matt
-----Original Message-----
From: Luis Pinho (EST) [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 10:00 AM
To: [EMAIL PROTECTED]
Subject: Vector of parameters as a parameter

Hi,

I want to send a vector of Parameter objects, as a parameter of a SOAP envelope.

When I send the envelope all seems OK.

But in the other side (the method that is being called by SOAP), the vector of parameters is transformed in a string vector ....

Is there any way I can fix this?

 

Thank You

 

Pinho

Reply via email to