Amila,
Could we add the wrapped type in the signature, but set that to null
all the time. that way the sig is unique.
-- dims
On 9/27/06, Amila Suriarachchi <[EMAIL PROTECTED]> wrote:
In the unwrapped mode the Stub file generated has the following syntax.
public Response getMethod1(param1, param2){
SOAPEnvelope env = null;
env =
toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
param1,
param2,
optimizeContent(new
javax.xml.namespace.QName("",
"Method1")));}
public SOAPEnvelope toEnvelope(SoapFactory factory,
param1,
param2,
boolean){
// wrap the
parameters and return envelope
WrappedType wrappedType
= new WrappedType();
}
In this way the method signature of the 'toEnvelope' method, depends on the
types of the inner parameters of the wrapped class. So if for to different
wrappedTypes, which has the same inner parameters (eg. if both have a only a
string inside), the method singature of the toEnvelope is identical. Hence
it gives a compile error and this method does not work for above senario. So
the only option (for me) is to produce the wrapped type inside the operation
method and pass the wrapped type to toEnvelope method.
Does this produce any side effects or can someone suggest another solution?
Amila.
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]