|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Big Problems with PEAR::SOAP -> SoapResponse
Hello,
I am new here and would like to please you for help. I wrote a webservice with PEAR::SOAP and will consume it through Delphi. Now I have two functions and for this, I created dispatch maps like below: $this->__dispatch_map["TEST"] = array( "in" => array(), "out" => array("Processed" => "int","UsedTime"=>"float") ); $this->__dispatch_map["TESTMS"] = array("in" => array("Cola" =>"string"), "out" => array("Processed" => "int","Cola" => "string","UsedTime"=>"float") ); If I consume the webservice function TEST without given parameters (I dont need parameters for this function), I get back a very good formatted response from the server like below: <ns4:TESTResponse> <return> <Processed xsi:type="xsd:int">1</Processed> <UsedTime xsi:type="xsd:float">1189610474.26</UsedTime> </return> </ns4:TESTMSResponse> Now I will consume function TESTMS with a given parameter for "Cola" (I use value "brown" for example), I get back a element list wich is confusing me and Delphi. Sell the element list now: <ns4:TESTMSResponse> <Processed xsi:type="xsd:int"> <Processed xsi:type="xsd:int">1</Processed> <Cola xsi:type="xsd:string">braun</Cola> <UsedTime xsi:type="xsd:float">1189610601.02</UsedTime> </Processed> </ns4:TESTMSResponse> On the first view, it looks ok, BUT there is no <return> element in wich the response elements are nested. The response elements are nested in the first element of the given dispatch map array. Therefore, there are two times the "Processed" element in the response. Therefore Delphi and i assume other high programming languages too, cannot consume the webservice with PEAR::SOAP. Is there anyone who have a clue, why I get no <return> element with nested response elements if I send some parameters to the webservice? Hope, someone can help here. Thank you Daniel |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Big Problems with PEAR::SOAP -> SoapResponse |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|