I've found the problem, but nor solution for that.

The problem is the used WebFault (SOAPException).

@WebResult(name = "return", targetNamespace = Constants.NAMESPACE)
    @WebMethod(operationName = "GetProgram")
    public GetProgramResponse.Return getProgram(
        @WebParam(name = "programId", targetNamespace = Constants.NAMESPACE)
        int programId,
        @WebParam(name = "applicationId", targetNamespace =
Constants.NAMESPACE)
        java.lang.String applicationId
    ) throws SOAPException;

If i comment the throws SOAPException code block than the response is what I
want.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
   <soap:Body>
      <GetProgramResponse xmlns="http://bla/namespace/bla/";>
         <return>
            <programsResult>
               <programItem id="49">
                  <name>program name</name>
               </programItem>
            </programsResult>
         </return>
      </GetProgramResponse>
   </soap:Body>
</soap:Envelope>

But I've to use the throws SOAPException code block.
Any advices ?
-- 
View this message in context: 
http://www.nabble.com/problem-with-jaxb-and-namespace-prefix-tp19901215p19920624.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to