0

JBoss EAP 5.1 から 6.4.7 に移行する SOAP Web サービスがあり、Web サービスの 1 つが (JBoss 5 で) 200 しか返さない。6 に移行しても動作し、何も返さず、代わりに 202 を返すため、クライアントが壊れます。私たちはクライアントを管理できません。close メソッドで SOAPHandler を試しましたが、呼び出されていないため何もしません。私の推測では、SOAP メッセージが返されないため、ハンドラーをトリガーするものは何もありません。

また、Web メソッドと modif でコンテキストに直接アクセスしようとしましたが、何もしませんでした。

MessageContext ctx = wsContext.getMessageContext(); HttpServletResponse 応答 = (HttpServletResponse) ctx.get(MessageContext.SERVLET_RESPONSE); response.setStatus(HttpServletResponse.SC_OK);

マニュアルには何も見つかりませんでした。

どんな方向でも大歓迎です。

ポートとその実装は次のようになります。

ポートとその実装ヘッドは次のようになります。

@WebService(name = "ForecastServicePortType", targetNamespace = "http://www.company.com/forecastservice/wsdl")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso({
    ObjectFactory.class
})
public interface ForecastServicePortType {


    /**
     *  
     * @param parameters
     * @throws RemoteException 
     */
    @WebMethod(action = "http://www.company.com/forecast/sendForecast")
    public void  sendForecast(
        @WebParam(name = "SendForecast", targetNamespace = "http://www.company.com/forecastservice", partName = "parameters")
        SendForecastType parameters) throws RemoteException;

}



@WebService(name = "ForecastServicePortTypeImpl", serviceName = "ForecastServicePortType", endpointInterface = "com.company.forecastservice.wsdl.ForecastServicePortType", wsdlLocation = "/WEB-INF/wsdl/ForecastServicePortType.wsdl")
@HandlerChain(file = "/META-INF/handlers.xml")
public class ForecastServicePortTypeImpl implements ForecastServicePortType {
...

}
4

1 に答える 1