Java WebSphere 5.1到6.1迁移错误

Java WebSphere 5.1到6.1迁移错误,java,web-services,websphere,axis,Java,Web Services,Websphere,Axis,我正在开发一个使用Axis1 web服务的Java1.4Web应用程序。应用程序调用由第三方合作伙伴开发和托管的web服务。我们的生产环境正在运行WebSphere5.1,应用程序运行得很好。出于安全原因,我们需要将服务器从5.1迁移到6.1。我们首先将开发环境升级到6.1。在我们的开发环境中,除了WebSphere迁移之外,我们还决定将应用程序更新为Java1.5。dev上的应用程序运行良好。所有web服务调用都正确执行,只有一个除外。此特定调用始终返回以下错误 未找到“”的映射http://

我正在开发一个使用Axis1 web服务的Java1.4Web应用程序。应用程序调用由第三方合作伙伴开发和托管的web服务。我们的生产环境正在运行WebSphere5.1,应用程序运行得很好。出于安全原因,我们需要将服务器从5.1迁移到6.1。我们首先将开发环境升级到6.1。在我们的开发环境中,除了WebSphere迁移之外,我们还决定将应用程序更新为Java1.5。dev上的应用程序运行良好。所有web服务调用都正确执行,只有一个除外。此特定调用始终返回以下错误

未找到“”的映射http://schemas.xmlsoap.org/soap/encoding/:string“使用编码样式”http://schemas.xmlsoap.org/soap/encoding/“

有人知道为什么除了这一个,所有的WS都可以工作吗?我没有更改代码库,只是更改了我使用的编译器版本。由于它在prod上工作,我不确定我能做些什么来搞乱dev

我的谷歌Fu在这一点上让我失望。非常感谢您提供的任何信息

WSDL


此类将Web服务消息定义为本地消息
方法。每个方法都是一个有效的Web服务消息,使用
RPC样式。此设计适用于典型的Web服务
实现工具包,如Axis。

WAS 6.1也有axis1 JAR的副本,因此您可以尝试使用此处提到的“parent last”标志:

所以问题最终是,我们的SOAP客户端(Axis 1)的版本在WebSphere 5.1和6.1之间略有不同。运行Axis实用程序函数“WSDL to JAVA”更新了应用程序中的类。我们必须修改代码以指向这些重新生成的类并重新生成。错误消失了。我们所有的web服务调用现在都能正确执行


感谢所有试图提供帮助的人。

您必须提供更多信息才能得到任何回应。WSDL是什么样子的,输入消息是什么?我已经多年没有使用SOAP编码了。你知道这种风格已经有相当一段时间不受欢迎了,对吧?是的,我知道axis 1已经不受欢迎了。该应用程序是遗留的,只应处于维护模式。这个代码已经5年没人看过了。这是我的责任,因为升级“必须发生”。该应用程序的前开发人员多年前离开了该公司。将使用WSDL更新我的帖子。我将检查我们的服务器设置,并让您知道这是否有任何影响。谢谢。服务器设置了父级最后一个标志,问题仍然存在。com.ibm.websphere.webservices.DisableIBMJAXWSEngine true我们还设置了一个自定义
com.ibm.websphere.webservices.DisableIBMJAXWSEngine true
    <?xml version = '1.0' encoding = 'UTF-8'?>
<!--Generated by the Oracle JDeveloper 10g Web Services WSDL Generator-->
<!--Date Created: Thu Jul 08 13:27:58 PDT 2004-->
<definitions
   name="CSIWebService"
   targetNamespace="http://mil/dcma/csi/ws/CSIWebService.wsdl"
   xmlns="http://schemas.xmlsoap.org/wsdl/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:tns="http://mil/dcma/csi/ws/CSIWebService.wsdl"
   xmlns:ns1="http://mil.dcma.csi.ws/ICSIWebService.xsd">
   <types>
      <schema
         targetNamespace="http://mil.dcma.csi.ws/ICSIWebService.xsd"
         xmlns="http://www.w3.org/2001/XMLSchema"
         xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
         <complexType name="mil_dcma_csi_ws_WSCSIServiceResponse" jdev:packageName="mil.dcma.csi.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
            <all>
               <element name="results" type="ns1:ArrayOfmil_dcma_csi_ws_WSContract"/>
               <element name="comments" type="ns1:mil_dcma_csi_ws_WSStatusCommentary"/>
            </all>
         </complexType>
         <complexType name="mil_dcma_csi_ws_WSContract" jdev:packageName="mil.dcma.csi.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
            <all>
               <element name="cage" type="string"/>
               <element name="dodaac" type="string"/>
               <element name="latestModDate" type="string"/>
               <element name="lineItemIds" type="ns1:ArrayOfString"/>
               <element name="lineItems" type="ns1:ArrayOfmil_dcma_csi_ws_WSLineItem"/>
               <element name="piinDodaac" type="string"/>
               <element name="piinSerial" type="string"/>
               <element name="piinType" type="string"/>
               <element name="piinYear" type="string"/>
               <element name="spiin" type="string"/>
            </all>
         </complexType>
         <complexType name="ArrayOfString" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
            <complexContent>
               <restriction base="SOAP-ENC:Array">
                  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
               </restriction>
            </complexContent>
         </complexType>
         <complexType name="mil_dcma_csi_ws_WSLineItem" jdev:packageName="mil.dcma.csi.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
            <all>
               <element name="fobSite" type="string"/>
               <element name="inspectAcceptCode" type="string"/>
               <element name="itemName" type="string"/>
               <element name="lineItemId" type="string"/>
               <element name="nsn" type="string"/>
               <element name="partNumber" type="string"/>
               <element name="piin" type="string"/>
               <element name="quantityAccepted" type="int"/>
               <element name="quantityShipped" type="int"/>
               <element name="serviceCompletionDate" type="string"/>
               <element name="serviceCompletionEstimatedFlag" type="string"/>
               <element name="spiin" type="string"/>
               <element name="spnRecipient" type="string"/>
               <element name="totalUnits" type="int"/>
               <element name="totalUnitsEstimatedFlag" type="string"/>
               <element name="unitCost" type="double"/>
               <element name="unitCostEstimatedFlag" type="string"/>
               <element name="unitOfMeasure" type="string"/>
               <element name="varianceOver" type="double"/>
               <element name="varianceUnder" type="double"/>
               <element name="schedules" type="ns1:ArrayOfmil_dcma_csi_ws_WSSchedule"/>
               <element name="shipments" type="ns1:ArrayOfmil_dcma_csi_ws_WSShipment"/>
            </all>
         </complexType>
         <complexType name="mil_dcma_csi_ws_WSSchedule" jdev:packageName="mil.dcma.csi.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
            <all>
               <element name="clin" type="string"/>
               <element name="deliveryDate" type="string"/>
               <element name="deliveryDateEstimatedFlag" type="string"/>
               <element name="elin" type="string"/>
               <element name="lineItemId" type="string"/>
               <element name="markFor" type="string"/>
               <element name="milStrip" type="string"/>
               <element name="modNumber" type="string"/>
               <element name="piin" type="string"/>
               <element name="schedQuantityEstimatedFlag" type="string"/>
               <element name="scheduledQuantity" type="int"/>
               <element name="shipTo" type="string"/>
               <element name="spiin" type="string"/>
            </all>
         </complexType>
         <complexType name="ArrayOfmil_dcma_csi_ws_WSSchedule" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
            <complexContent>
               <restriction base="SOAP-ENC:Array">
                  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:mil_dcma_csi_ws_WSSchedule[]"/>
               </restriction>
            </complexContent>
         </complexType>
         <complexType name="mil_dcma_csi_ws_WSShipment" jdev:packageName="mil.dcma.csi.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
            <all>
               <element name="acceptanceSite" type="string"/>
               <element name="dateAccepted" type="string"/>
               <element name="dateShipped" type="string"/>
               <element name="fobSite" type="string"/>
               <element name="lineItemId" type="string"/>
               <element name="markFor" type="string"/>
               <element name="milStrip" type="string"/>
               <element name="piin" type="string"/>
               <element name="pqaSite" type="string"/>
               <element name="quantityAccepted" type="int"/>
               <element name="quantityShipped" type="int"/>
               <element name="shipmentNumber" type="string"/>
               <element name="spiin" type="string"/>
               <element name="unitOfMeasure" type="string"/>
            </all>
         </complexType>
         <complexType name="ArrayOfmil_dcma_csi_ws_WSShipment" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
            <complexContent>
               <restriction base="SOAP-ENC:Array">
                  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:mil_dcma_csi_ws_WSShipment[]"/>
               </restriction>
            </complexContent>
         </complexType>
         <complexType name="ArrayOfmil_dcma_csi_ws_WSLineItem" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
            <complexContent>
               <restriction base="SOAP-ENC:Array">
                  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:mil_dcma_csi_ws_WSLineItem[]"/>
               </restriction>
            </complexContent>
         </complexType>
         <complexType name="ArrayOfmil_dcma_csi_ws_WSContract" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
            <complexContent>
               <restriction base="SOAP-ENC:Array">
                  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:mil_dcma_csi_ws_WSContract[]"/>
               </restriction>
            </complexContent>
         </complexType>
         <complexType name="mil_dcma_csi_ws_WSStatusCommentary" jdev:packageName="mil.dcma.csi.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
            <all>
               <element name="comments" type="ns1:ArrayOfmil_dcma_csi_ws_WSStatusList"/>
               <element name="statusTypes" type="ns1:ArrayOfString"/>
            </all>
         </complexType>
         <complexType name="mil_dcma_csi_ws_WSStatusList" jdev:packageName="mil.dcma.csi.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
            <all>
               <element name="contents" type="ns1:ArrayOfString"/>
            </all>
         </complexType>
         <complexType name="ArrayOfmil_dcma_csi_ws_WSStatusList" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
            <complexContent>
               <restriction base="SOAP-ENC:Array">
                  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:mil_dcma_csi_ws_WSStatusList[]"/>
               </restriction>
            </complexContent>
         </complexType>
      </schema>
   </types>
   <message name="getContracts0Request">
      <part name="cage" type="xsd:string"/>
      <part name="piinDodaac" type="xsd:string"/>
      <part name="piinYear" type="xsd:string"/>
      <part name="piinType" type="xsd:string"/>
      <part name="piinSerial" type="xsd:string"/>
      <part name="spiin" type="xsd:string"/>
   </message>
   <message name="getContracts0Response">
      <part name="return" type="ns1:mil_dcma_csi_ws_WSCSIServiceResponse"/>
   </message>
   <message name="getContractLineItems1Request">
      <part name="piinDodaac" type="xsd:string"/>
      <part name="piinYear" type="xsd:string"/>
      <part name="piinType" type="xsd:string"/>
      <part name="piinSerial" type="xsd:string"/>
      <part name="spiin" type="xsd:string"/>
      <part name="lineItemIds" type="ns1:ArrayOfString"/>
   </message>
   <message name="getContractLineItems1Response">
      <part name="return" type="ns1:mil_dcma_csi_ws_WSCSIServiceResponse"/>
   </message>
   <portType name="CSIWebServicePortType">
      <operation name="getContracts">
         <input name="getContracts0Request" message="tns:getContracts0Request"/>
         <output name="getContracts0Response" message="tns:getContracts0Response"/>
      </operation>
      <operation name="getContractLineItems">
         <input name="getContractLineItems1Request" message="tns:getContractLineItems1Request"/>
         <output name="getContractLineItems1Response" message="tns:getContractLineItems1Response"/>
      </operation>
   </portType>
   <binding name="CSIWebServiceBinding" type="tns:CSIWebServicePortType">
      <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
      <operation name="getContracts">
         <soap:operation soapAction="" style="rpc"/>
         <input name="getContracts0Request">
            <soap:body use="encoded" namespace="CSIWebService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
         </input>
         <output name="getContracts0Response">
            <soap:body use="encoded" namespace="CSIWebService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
         </output>
      </operation>
      <operation name="getContractLineItems">
         <soap:operation soapAction="" style="rpc"/>
         <input name="getContractLineItems1Request">
            <soap:body use="encoded" namespace="CSIWebService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
         </input>
         <output name="getContractLineItems1Response">
            <soap:body use="encoded" namespace="CSIWebService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
         </output>
      </operation>
   </binding>
   <service name="CSIWebService">
      <documentation>
This class defines Web Service messages as local
methods. Each method is a valid Web Service messages, using
RPC-style. This design is appropriate for typical Web Service
implementation toolkits such as Axis.
</documentation>
      <port name="CSIWebServicePort" binding="tns:CSIWebServiceBinding">
         <soap:address location="http://hxacacarqw025:8888/CSI/CSIWebService"/>
      </port>
   </service>
</definitions>