Web services WebSpherePortal服务器中的Web服务

Web services WebSpherePortal服务器中的Web服务,web-services,soap,websphere,websphere-portal,soapheader,Web Services,Soap,Websphere,Websphere Portal,Soapheader,我试图从WebSpherePortal服务器调用webservice,但是我注意到SOAP消息有一个非常奇怪的行为 在我发送的请求消息中,没有标题,而在生产者接收的请求中,添加了其他标题,如日期时区区域设置之类的内容。这最初引起了一些问题,但后来制作人设法绕过了标题,所以现在一切都好了。但我只是想知道为什么它们被添加到门户中,并且可以被禁用 我正在使用JAX-RPC 这是我在发送请求之前打印时收到的消息 <soapenv:Envelope xmlns:soapenv="http://sch

我试图从WebSpherePortal服务器调用webservice,但是我注意到SOAP消息有一个非常奇怪的行为

在我发送的请求消息中,没有标题,而在生产者接收的请求中,添加了其他标题,如日期时区区域设置之类的内容。这最初引起了一些问题,但后来制作人设法绕过了标题,所以现在一切都好了。但我只是想知道为什么它们被添加到门户中,并且可以被禁用

我正在使用JAX-RPC

这是我在发送请求之前打印时收到的消息

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header/>
    <soapenv:Body>

这是在生产者端接收的消息

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
    <InternationalizationContext soapenv:mustUnderstand="0" xmlns="http://www.ibm.com/webservices/InternationalizationContext">
        <Locales xmlns="">
            <Locale>
                <LanguageCode>en</LanguageCode>
                <CountryCode>US</CountryCode>
            </Locale>
            <Locale>
                <LanguageCode>en</LanguageCode>
            </Locale>
        </Locales>
        <TimeZoneId xmlns="">GMT</TimeZoneId>
    </InternationalizationContext>
</soapenv:Header>
<soapenv:Body>

EN
我们
EN
格林尼治标准时间
问候
Snehan Solomon

此标头由WebSphere中的生成。可以完全禁用该服务,但Portal server可能需要它。很可能还有一种方法可以禁用给定JAX-RPC请求的国际化上下文的传播,但我没有找到任何文档。

您可以展示这些附加头的示例吗?您还应该提到您正在使用的Web服务API(JAX-RPC、JAX-WS、第三方?)。Andreas,我已经用您要求的详细信息更新了这个问题。您好Andreas,感谢您帮助我解决这个问题,我相信此功能在WPS中默认启用,您是否知道是否可以为单个WS客户端禁用此功能?