Web services 与netbeans中编写的java程序相比,SoapUI没有给出正确的响应

Web services 与netbeans中编写的java程序相比,SoapUI没有给出正确的响应,web-services,soapui,Web Services,Soapui,我不熟悉Web服务, wsdl链接: 我有一个wsdl url,在我创建和使用的netbeans中很容易找到 通过netbeans输入到webservice: 我正在通过netbeans中的java程序发送请求请求,请求为: <Request><Authentication CMId='68' Guid='5594FB83-F4D4-431F-B3C5-EA6D7A8BA795' Password='poihg321TR' Function='1' /><Estab

我不熟悉Web服务,
wsdl链接: 我有一个wsdl url,在我创建和使用的netbeans中很容易找到

通过netbeans输入到webservice:
我正在通过netbeans中的java程序发送请求请求,请求为:

<Request><Authentication CMId='68' Guid='5594FB83-F4D4-431F-B3C5-EA6D7A8BA795' Password='poihg321TR' Function='1' /><Establishment Id='4297867' > </Establishment></Request>  

答复是:

<Response>
  <Authentication CMId="68" Guid="5594FB83-F4D4-431F-B3C5-EA6D7A8BA795" Password="poihg321TR" Function="1" />
<Establishment Id="4297867">
<RoomTypes>
  <RoomType RoomTypeId="1040459" Description="Double Room" />
  <RoomType RoomTypeId="1040458" Description="Single Room" />
</RoomTypes>
<BoardTypes>
  <BoardType BoardTypeId="1" Description="Room Only" />
</BoardTypes>

在SoapUI的帮助下
生成的请求是

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
     <tem:RequestData>
     <!--Optional:-->
 <tem:requestDocument xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      </tem:RequestData>
   </soapenv:Body> 
</soapenv:Envelope>  

我通过SoapUI发送的是

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:RequestData>
     <!--Optional:-->
 <tem:requestDocument xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
        <!--The data sent via java program:-->
      <Request>
  <Authentication CMId='68' Guid='5594FB83-F4D4-431F-B3C5-EA6D7A8BA795'  Password='poihg321TR' Function='1' />
     <Establishment Id='4297867' >
     </Establishment>
     </Request>
    <!--The data sent via java program:-->
     </tem:RequestData>
  </soapenv:Body>
</soapenv:Envelope>  

如果我在SoapUI中运行这个

输出与输出不同

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
  <RequestDataResponse xmlns="http://tempuri.org/">
         <RequestDataResult>&lt;Response Error="Unable to parse xml">
       &lt;RequestDate Date="2014-05-30 16:14:15.7383" />
     &lt;/Response></RequestDataResult>
  </RequestDataResponse>
 </s:Body>
</s:Envelope>

响应错误=“无法解析xml”>
RequestDate=“2014-05-30 16:14:15.7383”/>
/答复>
试试:


]]>
本质上,WSDL没有定义任何
请求
身份验证
以及其他内容,因此您无法发送这些内容。此外,响应告诉您:“无法解析xml”,因此应用程序(与服务相反)正在查找xml数据

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:RequestData>
         <!--Optional:-->
         <tem:requestDocument>
         <![CDATA[<Request>
               <Authentication CMId="68" Guid="5594FB83-F4D4-431F-B3C5-EA6D7A8BA795" Password="poihg321TR" Function="1"/>
               <Establishment Id="4297867"></Establishment>
            </Request>]]>
         </tem:requestDocument>
      </tem:RequestData>
   </soapenv:Body>
</soapenv:Envelope>