PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 13th, 2007, 04:21 AM
Cojun Cojun is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 1 Cojun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 9 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > Big Problems with PEAR::SOAP -> SoapResponse


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT