Re: [REPOST] doubt on wscompile & header in the output message

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Mon, 13 Dec 2004 18:34:11 -0800

Alessio Cervellin wrote:
> I'm sorry for this repost
> (,
> but I'm still searching for an answer to understand this issue.... can
> someone help me?
> Here is the problem:
> By feeding the attached wsdl (see below) to:
> wscompile -gen:server -keep -f:explicitcontext
> it generates the following interface:
> public interface TestcasePortType extends java.rmi.Remote {
> public java.lang.String newOperation(java.lang.String arg1,
> testcase.holders.ComplexElement2Holder arg2) throws
> java.rmi.RemoteException;
> }
> what I notice is:
> 1- it returns only a String (attr1), which i defined as soap:body
> output, and it does NOT return also ComplexElement2 (attr2) which i
> defined as soap:header output.

The ComplexElement2Holder is created for that purpose. You can get and
set ComplexElement2. So, if you set ComplexElement2 in arg2.value, and
it will go as soap:header output.

With -f:strict it generates the following signature:

     public com.ComplexElement1 newOperation(com.ComplexElement1 arg1,
com.holders.ComplexElement2Holder arg2)

My guess is that it should generate the following:

     public void newOperation(com.ComplexElement1Holder arg1,
com.holders.ComplexElement2Holder arg2)


To unsubscribe, e-mail:
For additional commands, e-mail: