[SOAP-ENV:Client] Error cannot find parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi:

I defined a 'Keyword' type in ".wsdl" file and I wish to pass an array of Keyword object to service.But I got this error: [SOAP-ENV:Client] Error cannot find parameter 

schema:
<xsd:complexType name="Keyword">
    <xsd:all>
     <xsd:element name="id" type="xsd:integer"/>
     <xsd:element name="word" type="xsd:string"/>
     <xsd:element name="status" type="xsd:integer" nillable="true" minOccurs="0"/>
     <xsd:element name="shelve" type="xsd:boolean" nillable="true" minOccurs="0"/>
     <xsd:element name="sprice" type="xsd:float" nillable="true" minOccurs="0"/>
     <xsd:element name="qvalue" type="xsd:float" nillable="true" minOccurs="0"/>
     <xsd:element name="intgrt" type="xsd:float" nillable="true" minOccurs="0"/>
     <xsd:element name="rank" type="xsd:integer" nillable="true" minOccurs="0"/>
     <xsd:element name="mode" type="xsd:integer"/>
     <xsd:element name="price" type="xsd:float"/>
     <xsd:element name="title" type="xsd:string"/>
     <xsd:element name="desc" type="xsd:string"/>
     <xsd:element name="url" type="xsd:string"/>
    </xsd:all>
   </xsd:complexType>
   <xsd:element name="Keywords">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="Keyword" type="typens:Keyword" maxOccurs="unbounded"/>
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>

and php client code:
 for($i=0;$i<$count;$i++){
   $objKeyWord = new Keyword();
   $objKeyWord->id = $i;
   $objKeyWord->word = $i."word";
   $objKeyWord->status = $i;
   $objKeyWord->shelve = $i;
   $objKeyWord->sprice = $i;
   $objKeyWord->qvalue = $i;
   $objKeyWord->intgrt = $i;
   $objKeyWord->rank = $i;
   $objKeyWord->mode = $i;
   $objKeyWord->price = $i;
   $objKeyWord->title = $i."title";
   $objKeyWord->desc = $i."desc";
   $objKeyWord->url = $i."url";
   $arrKeyWords[$i] = $objKeyWord;
 }
 try{
     $return = print_r($objSoapClient->addKeyWords($arrKeyWords,$count),true);
 }catch(Exception $e){
     throw $e;
 }

and soap request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="urn:http://api.baidu.com/v1/";><SOAP-ENV:Body><ns1:Keywords><ns1:Keyword><ns1:id>0</ns1:id><ns1:word>0word</ns1:word><ns1:status>0</ns1:status><ns1:shelve>false</ns1:shelve><ns1:sprice>0</ns1:sprice><ns1:qvalue>0</ns1:qvalue><ns1:intgrt>0</ns1:intgrt><ns1:rank>0</ns1:rank><ns1:mode>0</ns1:mode><ns1:price>0</ns1:price><ns1:title>0title</ns1:title><ns1:desc>0desc</ns1:desc><ns1:url>0url</ns1:url></ns1:Keyword><ns1:Keyword><ns1:id>1</ns1:id><ns1:word>1word</ns1:word><ns1:status>1</ns1:status><ns1:shelve>true</ns1:shelve><ns1:sprice>1</ns1:sprice><ns1:qvalue>1</ns1:qvalue><ns1:intgrt>1</ns1:intgrt><ns1:rank>1</ns1:rank><ns1:mode>1</ns1:mode><ns1:price>1</ns1:price><ns1:title>1title</ns1:title><ns1:desc>1desc</ns1:desc><ns1:url>1url</ns1:url></ns1:Keyword></ns1:Keywords><intGroupId>2</intGroupId></SOAP-ENV:Body></SOAP-ENV:Envelope>


who can help me plz? thx.
 
     致 
礼! 

宋琦 电子商务部 实习工程师 
===================================================== 
百度在线网络技术(北京)有限公司 
地址:北京市海淀区海淀大街38号银科大厦18层(100080) 
电话(Tel): 8610-82602288 转 6611 
E-mail: songqi@xxxxxxxxx


		
___________________________________________________________ 
抢注雅虎免费邮箱-3.5G容量,20M附件! 
http://cn.mail.yahoo.com

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux