In SOAPException.java,  change the line;

@XmlElement(namespace = "")
to just:
@XmlElement

That should do it.   Basically, the namespace = "" thing tells jaxb that that 
element should be unqualified.   Thus, JAXB doesn't set the default namespace 
as something then then would need it unset.   If everything is "qualified", 
then it goes ahead and sets the default namespace.


Dan


On Friday 10 October 2008 11:33:07 am pussinboots wrote:
> 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 ?



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog

Reply via email to