代码之家  ›  专栏  ›  技术社区  ›  Quentamia

PHP SOAP服务器正在发回部分响应

  •  0
  • Quentamia  · 技术社区  · 14 年前

    我的委托人似乎发送了正确的请求。这是我调用\u getLastRequest()时生成的:

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope 
        xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:ns1="urn:blogPosts" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"        
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
        SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    
        <SOAP-ENV:Body>
            <ns1:saveBlogPost>
                <userId xsi:type="xsd:int">1</userId>
                <catId xsi:type="xsd:int">1</catId>
                <subCatId xsi:type="xsd:int">1</subCatId>
                <title xsi:type="xsd:string">Web Service Test</title>
                <blogPost xsi:type="xsd:string">Testing</blogPost>
            </ns1:saveBlogPost>
        </SOAP-ENV:Body>
    
    </SOAP-ENV:Envelope>
    

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope 
        xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:ns1="urn:blogPosts" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
        SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    
        <SOAP-ENV:Body>
            <ns1:saveBlogPostRe
    

    我收到的错误消息是“看起来我们没有XML文档”。

    如果您能提供任何帮助,我们将不胜感激。

    1 回复  |  直到 14 年前
        1
  •  -1
  •   Quentamia    14 年前

    我的解决方案:忘记肥皂,使用REST:)