Yuvaraj Athur Raghuvir wrote:
Hello,

1) I discovered that for "results" parameter, the expectation is an integer.
Yes, but when that is serialized to XML, the integer value would be sent as a string anyway. So when using OM, it is OK to use axiom_element_set_string with the value you want.
2) There is no axiom_element_set_integer call available.
If you want to use data typing, then you have to use ADB (Axis2 Data Binding). To use ADB, you have to code generate with a WSDL using the ADB mode using the WSDL2C tool that comes with Axis2/Java.
3) When I pass the value as a string from the scripting environment, I get an error that indicates that parameter is not right.
What you need to do here is to use an integer to string converter function and pass the resulting string to the AXIOM level.
4) If I try to pass an integer, there is no matching signature.
OM model is based on text, because XML is text based. That is why we do not have a matching integer signature. If you want that, the proper way to do it is to use ADB mode, for which you need the WSDL and to code generate as well. For your requirement, I think it would be much easier to use the solution that I proposed in 3) above.

Thanks,
Samisa...

Any clues?

Regards,
Yuva


On 8/20/07, *Yuvaraj Athur Raghuvir* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hello Samisa,

    Yes you are right - the sample works as intended.

    Now, I have been trying to find why the following lines trigger a
    break point in the VC++ debugger:

        if (svc_client)
        {
            axis2_svc_client_free(svc_client, env);
            svc_client = NULL;
        }

    I get an exception and have to terminate the debug run.

    Regards,
    Yuva



    On 8/17/07, *Samisa Abeysinghe * <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Yuvaraj Athur Raghuvir wrote:
        > Hello,
        >
        > I did the following based on documentation at [1]
        > < http://developer.yahoo.com/search/web/V1/webSearch.html>
        >     results_node = axiom_node_create (env);
        >     results_element = axiom_element_create (env, root_node,
        "results",
        > NULL, &results_node);
        >     axiom_element_set_text (results_element, env,
        "2",  results_node);
        >
        What you have done is correct. I tested with your changes to
        the yahoo
        sample and it works fine.
        > I get an error : "Builder done with pulling. Cannot pull any
        more".
        >
        > 1) What does this mean?
        This means that the XML builder is trying to pull more data
        but the
        stream has ended.
        > 2) How should I limit the results?
        As I said what you have done is correct. What is the search
        string that
        you are using? Also what is the version of Axis2/C that you
        are using?

        Thanks,
        Samisa...
        >
        > Regards,
        > Yuva
        >
        >
        > [1] http://developer.yahoo.com/search/web/V1/webSearch.html


        --
        Samisa Abeysinghe : WSO2 WSF/C
        "
        
http://wso2.org/projects/wsf/c?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework/C&nbsp;-&nbsp;Open&nbsp;source&nbsp;C&nbsp;library&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services
        
<http://wso2.org/projects/wsf/c?WSO2%C2%A0Web%C2%A0Services%C2%A0Framework/C%C2%A0-%C2%A0Open%C2%A0source%C2%A0C%C2%A0library%C2%A0for%C2%A0providing%C2%A0and%C2%A0consuming%C2%A0Web%C2%A0services>"


        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>
        For additional commands, e-mail:
        [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>





--
Samisa Abeysinghe : WSO2 WSF/C
"http://wso2.org/projects/wsf/c?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework/C&nbsp;-&nbsp;Open&nbsp;source&nbsp;C&nbsp;library&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services";


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to