PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Problem with Soap Response Element

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Web Services
View previous topic :: View next topic  
Author Message
Cojun



Joined: 13 Sep 2007
Posts: 1

PostPosted: Thu Sep 13, 2007 11:12 am    Post subject: Problem with Soap Response Element Reply with quote

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:

Code:

   $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:

Code:

<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:

Code:

<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.

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Web Services All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement