为什么在使用SOAP UI发送SOAP消息时出现错误?

时间:2012-07-11 12:14:04

标签: xml soap

结束点:http://127.0.0.1:${#Project#Puerto}/DispatcherProxy

SOAP消息:

    <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:applicationStub2="http://microsoft.com/wsdl/types/" xmlns:applicationStub3="http://agr.intel.com/ApplicationServiceSoap" xmlns:applicationStub="http://agr.intel.com/" xmlns:applicationStub4="http://agr.intel.com/ApplicationServiceSoap1" xmlns:envStub="http://agr.intel.com/">
    <SOAP-ENV:Header>
        <envStub:AuthHeader>
            <TestDataFlag>0</TestDataFlag>
            <envStub:ClientVersion>wi3.7.0.38738.81</envStub:ClientVersion>
        </envStub:AuthHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <applicationStub:SearchApplications>
            <applicationStub:UserId>0</applicationStub:UserId>
            <applicationStub:StoreId>2</applicationStub:StoreId>
            <applicationStub:LocaleCode>en-US</applicationStub:LocaleCode>
            <applicationStub:Location>US</applicationStub:Location>
            <applicationStub:CategoryId>272</applicationStub:CategoryId>
            <applicationStub:AlternativeLocales></applicationStub:AlternativeLocales>
            <applicationStub:Filters>
                <applicationStub:JoinType>AND</applicationStub:JoinType>
                <applicationStub:Filter>
                    <applicationStub:FilterField>AppType</applicationStub:FilterField>
                    <applicationStub:FilterOperator>=</applicationStub:FilterOperator>
                    <applicationStub:FilterValue>All</applicationStub:FilterValue>
                </applicationStub:Filter>
            </applicationStub:Filters>
            <applicationStub:ResultStart>1</applicationStub:ResultStart>
            <applicationStub:ResultNum>24</applicationStub:ResultNum>
            <applicationStub:OrderBy>Download</applicationStub:OrderBy>
            <applicationStub:OrderByType>Desc</applicationStub:OrderByType>
            <applicationStub:DeviceProfileBitmap>1,2,8</applicationStub:DeviceProfileBitmap>
        </applicationStub:SearchApplications>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

来自服务器的回答:

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns3="http://Intel.ServicesManager.ServiceContracts" xmlns:ns1="http://Intel.ServicesManager.DispatcherProxy">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Client</faultcode>
         <faultstring>Validation constraint violation: tag name or namespace mismatch in element &lt;applicationStub:SearchApplications></faultstring>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

错误发生在“faultstring”标记之间。该消息应该给我一个应用程序列表。请注意,SOAP消息来自复制库时生成的SENT.log文件。

提前致谢。

0 个答案:

没有答案