Advertisement

04.23.2008 at 11:23AM PDT, ID: 23347737
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

difference between wsdl mode and non wsdl mode

Asked by zmoidin in SOAP, PHP Scripting Language

Tags:

Hi,

I am trying to develop a soap client in PHP using PHP5 SOAP Extension.
I am trying to connect to the webservices provided by Rollbase

The wsdl  url is http://www.rollbase.com/webapi/wsdl/rollbase.wsdl

When I connect to the web service in the wsdl mode, I am able to perform all the calls and everything works fine. I do it as follows

  $wsdl_url= 'http://www.rollbase.com/webapi/wsdl/rollbase.wsdl';
  $client = new SoapClient($wsdl_url, array('trace'=> true));

But if I connect in the non wsdl mode, like

$client = new SoapClient(null, array('location' => 'http://www.rollbase.com/webapi/services/rpcrouter', 'uri' => 'urn:Rollbase','style' => SOAP_RPC, 'use' => SOAP_ENCODED,'trace' => 1));

I am not able to make calls to the webservices because I hit Bad Types Exception when I send the parameters

To be more clear
In wsdl mode when I make a call like
 $result  = $soap_client->__soapCall('search', array(  'sessionId' =>$sessionID, 'query' => $query, 'objDefName' => $objname));

I get the resule as
object(stdClass)[2]
  public 'arr' =>
    object(stdClass)[3]
      public 'item' =>
        array
          0 => int '1995757' (length=7)
          1 => int '1995349' (length=7)
          2 => int '2097624' (length=7)
 You can note that the values are of type int(they are actually Long in Java)

But if I make the same call in non wsdl mode,  I get

object(stdClass)[2]
  public 'arr' =>
    object(stdClass)[3]
      public 'item' =>
        array
          0 => string '1995757' (length=7)
          1 => string '1995349' (length=7)
          2 => string '2097624' (length=7)

The values are string..
Also when I send parameters for making call, the types of the parameters matches the expected values in wsdl mode but in non wsdl mode i get the exception

SoapFault exception: [soapenv:Server.userException] org.xml.sax.SAXException: Bad types (class java.lang.String -> long)

My question  is what makes this difference, is there some other extra setting or parameter to set while performing non wsdl calls. what exactly is the difference between these 2 modes
Is there something wrong with the server that is providing this result (the server uses Axis)Start Free Trial
[+][-]04.23.2008 at 11:44AM PDT, ID: 21423906

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 12:26PM PDT, ID: 21424385

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 12:33PM PDT, ID: 21424465

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SOAP, PHP Scripting Language
Tags: php, soap
Sign Up Now!
Solution Provided By: Xyptilon2
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.23.2008 at 12:57PM PDT, ID: 21424697

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.24.2008 at 01:13AM PDT, ID: 21428583

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628