dou4064 2012-07-18 07:10 采纳率: 100%
浏览 59

php soap web服务无法在服务器上运行

I was using php webservice. A service call returning value when I am using it separately only one then, but when I am using it with multiple function it is calling but not returning value. the single wsdl is like : for MessageRS()

<?xml version ='1.0' encoding ='utf-8' ?>
<definitions name='shop'
  targetNamespace='http://localhost/soap/'
  xmlns:tns='http://localhost/soap/'
  xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
  xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
  xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
  xmlns='http://schemas.xmlsoap.org/wsdl/'>

    <message name='messageRQ'>
    <part name='sendXML' type='xsd:string'/>
  </message>
  <message name='messageRS'>
    <part name='Result' type='xsd:string'/>
  </message>

  <portType name='CatalogPortType'>

  <operation name='MessageRS'>
        <input message='tns:messageRQ'/>
        <output message='tns:messageRS'/>
    </operation>

    </portType>

    <binding name='CatalogBinding' type='tns:CatalogPortType'>
    <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>

    <operation name='MessageRS'>
        <soap:operation soapAction='urn:localhost-catalog#MessageRS'/>
        <input>
            <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
        </input>
        <output>
            <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
        </output>
    </operation>
    </binding>

    <service name='CatalogService'>
    <port name='CatalogPort' binding='CatalogBinding'>
      <soap:address location='http://1mp1.viewthedemo.com/s/server/server.php'/>
    </port>
  </service>
</definitions>

and when using with

<message name='getCatalogRequest'>
    <part name='catalogId' type='xsd:string'/>
  </message>
  <message name='getCatalogResponse'>
    <part name='Result' type='xsd:string'/>
  </message>

  <message name='manufacturerRQ'>
    <part name='manufacturerRQxml' type='xsd:string'/>
  </message>
  <message name='mamufacturerRS'>
    <part name='Result' type='xsd:string'/>
  </message>

  <message name='messageRQ'>
    <part name='sendXML' type='xsd:string'/>
  </message>
  <message name='messageRS'>
    <part name='Result' type='xsd:string'/>
  </message>

  <message name='saveRQ'>
    <part name='SaveRQParameter' type='xsd:string'/>
  </message>
  <message name='saveRS'>
    <part name='Result' type='xsd:string'/>
  </message>

  <message name='Product_list'>
    <part name='Result' type='xsd:string'/>
  </message>

  <message name='SettingRQ'>
    <part name='xml' type='xsd:string'/>
  </message>
  <message name='SettingRS'>
    <part name='Result' type='xsd:string'/>
  </message>





  <portType name='CatalogPortType'>
    <operation name='getCatalogEntry'>
      <input message='tns:getCatalogRequest'/>
      <output message='tns:getCatalogResponse'/>
    </operation>
    <operation name='ManufacturerRS'>
      <input message='tns:manufacturerRQ'/>
      <output message='tns:mamufacturerRS'/> 
     </operation>
    <operation name='MessageRS'>
        <input message='tns:messageRQ'/>
        <output message='tns:messageRS'/>
    </operation>

    <operation name='SaveRS'>
      <input message='tns:saveRQ'/>
      <output message='tns:saveRS'/>
    </operation>
    <operation name='Product_list'>
      <input message='tns:Product_list'/>
      <output message='tns:Product_list'/>
    </operation>
    <operation name='SettingRS'>
      <input message='tns:SettingRQ'/>
      <output message='tns:SettingRS'/>
    </operation>


  </portType>

  <binding name='CatalogBinding' type='tns:CatalogPortType'>
    <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
    <operation name='getCatalogEntry'>
      <soap:operation soapAction='urn:localhost-catalog#getCatalogEntry'/>
      <input>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>

    <operation name='ManufacturerRS'>
      <soap:operation soapAction='urn:localhost-catalog#ManufacturerRS'/>
      <input>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>

    <operation name='MessageRS'>
        <soap:operation soapAction='urn:localhost-catalog#MessageRS'/>
        <input>
            <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
        </input>
        <output>
            <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
        </output>
    </operation>

    <operation name='SaveRS'>
      <soap:operation soapAction='urn:localhost-catalog#SaveRS'/>
      <input>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>

    <operation name='Product_list'>
      <soap:operation soapAction='urn:localhost-catalog#Product_list'/>
      <input>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>

    <operation name='SettingRS'>
      <soap:operation soapAction='urn:localhost-catalog#Product_list'/>
      <input>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output>
        <soap:body use='encoded' namespace='urn:localhost-catalog' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>

Then it is not sending value in the client page.

  • 写回答

1条回答 默认 最新

  • doupeng3501 2012-07-18 07:21
    关注

    I guess first you need to check if soap extension is enabled or not on the server.you can check soap extension using phpinfo().

    评论

报告相同问题?

悬赏问题

  • ¥15 在获取boss直聘的聊天的时候只能获取到前40条聊天数据
  • ¥20 关于URL获取的参数,无法执行二选一查询
  • ¥15 液位控制,当液位超过高限时常开触点59闭合,直到液位低于低限时,断开
  • ¥15 marlin编译错误,如何解决?
  • ¥15 有偿四位数,节约算法和扫描算法
  • ¥15 VUE项目怎么运行,系统打不开
  • ¥50 pointpillars等目标检测算法怎么融合注意力机制
  • ¥20 Vs code Mac系统 PHP Debug调试环境配置
  • ¥60 大一项目课,微信小程序
  • ¥15 求视频摘要youtube和ovp数据集