Soap Spring-WS-Jboss空请求、空响应&;isSameNode故障问题

Soap Spring-WS-Jboss空请求、空响应&;isSameNode故障问题,soap,jboss,spring-ws,Soap,Jboss,Spring Ws,在jboss中点击我的camel spring ws时出现以下错误 <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> <env:Header></env:Header> <env:Body> <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> &l

在jboss中点击我的camel spring ws时出现以下错误

<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header></env:Header>
<env:Body>
    <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
        <faultcode xmlns:valueNS='http://schemas.xmlsoap.org/soap/envelope/'>valueNS:Server</faultcode>
        <faultstring xml:lang='en'>isSameNode</faultstring>
    </env:Fault>
</env:Body>

valueNS:服务器
伊萨蒙诺德

同一场战争在不同的jboss服务器上运行良好

使用的JBoss服务器:5.0

根据文件:

返回此节点是否与给定节点相同。 此方法提供了一种确定实现返回的两个节点引用是否引用同一对象的方法。当两个节点引用是对同一对象的引用时,即使通过代理,这些引用也可以完全互换使用,这样所有属性都具有相同的值,并且对任一引用调用相同的DOM方法始终具有完全相同的效果

谁能告诉我jboss和SpringWS的相关问题是什么。我在日志中看不到任何东西

样本要求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:off="http://services.dnb.com/OfficerProductServiceV1.0">
<soapenv:Header/>
<soapenv:Body>
  <off:OfficerSearchRequest>
     <OfficerSearchRequestDetail>
        <InquiryDetail>
           <OfficerName>
              <LastName>HAR</LastName>
           </OfficerName>
           <OfficerAddress>
               <PrimaryTownName>Test</PrimaryTownName>
            </OfficerAddress>
           <IncludeResignedIndicator>true</IncludeResignedIndicator>
           <OfficerType>DIS</OfficerType>
        </InquiryDetail>
        <InquiryReferenceDetail>
           <!--0 to 5 repetitions:-->
           <CustomerReferenceText>fwe2311</CustomerReferenceText>
           <CustomerReferenceText>ad4234es</CustomerReferenceText>
           <!--Optional:-->
           <CustomerBillingEndorsementText>test</CustomerBillingEndorsementText>
        </InquiryReferenceDetail>
     </OfficerSearchRequestDetail>
  </off:OfficerSearchRequest>

哈尔
测验
符合事实的
数字化信息系统
fwe2311
ad4234es
测验

问题在于Jboss错误的soap jar,这导致向spring ws发送空请求

纠正这个问题

添加以下bean配置,以强制在spring-ws-servlet.xml文件中使用sun的saaj实现

<!-- force use of Sun SAAJ implementation -->
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
    <property name="messageFactory">
        <bean
            class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"></bean>
    </property>
</bean>

Jboss没有从JDK1.6中获取saaj。因此,必须将以下依赖项添加到pom.xml文件中

  <dependency>
    <groupId>javax.xml.soap</groupId>
    <artifactId>saaj-api</artifactId>
    <version>1.3</version>
  </dependency>
  <dependency>
    <groupId>com.sun.xml.messaging.saaj</groupId>
    <artifactId>saaj-impl</artifactId>
    <version>1.3</version>
  </dependency>

javax.xml.soap
saaj api
1.3
com.sun.xml.messaging.saaj
saaj impl
1.3