PPS: This was done by using the deployServer() method (integrated into our
code).
axisServer = new AxisServer(true);
axisServer.deployService(classWSDL.class.getName());
On 27/06/2011, at 17:32, André Lemos wrote:
> Hi,
>
>
> I'm having some trouble using the echoString used on the unitary tests.
>
> I've created a class with:
>
> @WebMethod
> @WebResult(name = "headerReturn", header = true)
> public String echoString(
> @WebParam(name = "renamedParam1", header = true) String
> param1,
> @WebParam(header = true) String param2,
> @WebParam(targetNamespace = "webparam.namespace",
> header = true) String param3,
> @WebParam(mode = WebParam.Mode.OUT, header = true)
> Holder<String> outOnly,
> @WebParam(name = "inOut", mode = WebParam.Mode.INOUT,
> header = true) Holder<String> inOut,
> String notInHeader) {
> String headerReturn = param2;
> return headerReturn;
> }
>
>
> inside, but instead of getting something on my <soap:Header>, I get this:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsdl="http://wsdl.patients.vitalsen.critical.pt">
> <soapenv:Header/>
> <soapenv:Body>
> <wsdl:echoString>
> <!--Optional:-->
> <renamedParam1>?</renamedParam1>
> <!--Optional:-->
> <param2>?</param2>
> <!--Optional:-->
> <param3>?</param3>
> <!--Zero or more repetitions:-->
> <outOnly>?</outOnly>
> <!--Zero or more repetitions:-->
> <inOut>?</inOut>
> <!--Optional:-->
> <notInHeader>?</notInHeader>
> </wsdl:echoString>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
> what am I doing wrong?
>
>
>
> Ps.: could you reply directly? not enrolled on the mailing-list.
>
>
> Thanks,
>
> André Lemos