SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Non-Member
    Join Date
    Sep 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Web Services related Questions

    Hi all
    I develop so many web services for my Projects. My project is developed in Microsoft Technology. I find very easy to develop web services. If any one have problem, Please share with me about web services like JSON Format and all.............

  2. #2
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    could you please help for me?

    I need to call a webservice method using nusoap, the method needs two xml string parameters. one is 'settings' and another one 'record' I have done the following manner

    require_once('nusoap.php');

    $settings = '<settings>
    <accesscode>1111</accesscode>
    <sourceid>1111</sourceid>
    <sourcetable>data</sourcetable>
    <projectid>1111</projectid>
    </settings>';

    $record = '<record>
    <phonenum>111111</phonenum>
    <callinfo>call</callinfo>
    <alternates>
    <altphonenum>11111</altphonenum>
    </alternates>
    <record>';

    $client = new nusoapclient('http://165.236.148.164/iapi12/importservice.asmx?');

    // Call the SOAP method

    $result = $client->call(
    'AddRecordRCS', array('NewRecordXML' => $record, 'SettingsXML' => $settings), // input parameters
    'http://tempuri.org/TouchstarIAPI/ImportService', // namespace
    'http://tempuri.org/TouchstarIAPI/ImportService/AddRecordRCS' // SOAPAction
    );


    i didn't get any error and the server response status is HTTP/1.1 200 OK
    but i got response is FALSE.
    my question: is this right way to pass xml parameter as a string type?
    please reply
    thanks

  3. #3
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,629
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Check out the WCF REST services templates.

  4. #4
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, I am using PHP with nusoap I think WCF REST services templates for .NET application. can it help for me?

  5. #5
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,629
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Sorry, "developed in microsoft technology" usually indicates .NET not PHP. Anyhow, nusoap won't help either -- it is for SOAP/XML based messaging, not JSON stuff.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •