Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8655317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:59:52+00:00 2026-06-12T14:59:52+00:00

i am new to SOAP . I am trying to integrate my application to

  • 0

i am new to SOAP . I am trying to integrate my application to SmartTurn webservice API(its a inventry management company). They are SOAP and wsdl for their API operations. i am new to soap so i have no idea that how i can do this in php. here is xml that i want to use.

<?xml version="1.0" encoding="UTF-8" ?><soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
  <soapenv:Body><saveSalesOrder 
xmlns="http://www.smartturn.com/services/OccamService/sales-order"> 
<inCredential> 
   <ns1:UserId 
xmlns:ns1="http://www.smartturn.com/services/occamtypes">webservice@fithoop.com.au</ns1:UserId>  
  <ns2:Password 
xmlns:ns2="http://www.smartturn.com/services/occamtypes">secret</ns2:Password>  
</inCredential> 
<inSalesOrders> 
  <ns3:externalNumber xmlns:ns3="http://www.smartturn.com/services/sales-order-types">Ext-id-00502</ns3:externalNumber>  
  <ns4:type xmlns:ns4="http://www.smartturn.com/services/sales-order-types">EXTERNAL</ns4:type>  
  <ns5:date xmlns:ns5="http://www.smartturn.com/services/sales-order-types">2012-10-20T00:04:34.479Z</ns5:date>  
 <ns6:dateDue xmlns:ns6="http://www.smartturn.com/services/sales-order-types">2012-10-20T00:04:34.479Z</ns6:dateDue>  
  <ns7:customerName xmlns:ns7="http://www.smartturn.com/services/sales-order-types">customer name</ns7:customerName>  
  <ns8:customerContact 
xmlns:ns8="http://www.smartturn.com/services/sales-order-types">customer contact</ns8:customerContact>  
  <ns9:customerContactPhone 
xmlns:ns9="http://www.smartturn.com/services/sales-order-types">customer phone</ns9:customerContactPhone>  
  <ns10:customerAddress 
xmlns:ns10="http://www.smartturn.com/services/sales-order-types"> 
    <ns11:addressLine1 
xmlns:ns11="http://www.smartturn.com/services/occamtypes">the main street</ns11:addressLine1>  
    <ns12:addressLine2 
xmlns:ns12="http://www.smartturn.com/services/occamtypes">broadway</ns12:addressLine2>  
    <ns13:city 
xmlns:ns13="http://www.smartturn.com/services/occamtypes">Oakland</ns13:city>  
    <ns14:state 
xmlns:ns14="http://www.smartturn.com/services/occamtypes">California</ns14:state>  
    <ns15:country 
xmlns:ns15="http://www.smartturn.com/services/occamtypes">USA</ns15:country>  
    <ns16:postalCode 
xmlns:ns16="http://www.smartturn.com/services/occamtypes">94607</ns16:postalCode>  
  </ns10:customerAddress> 
  <ns17:salesRep xmlns:ns17="http://www.smartturn.com/services/sales-order-types">sales rep</ns17:salesRep>  
  <ns18:useShipToAsBillAddress 
xmlns:ns18="http://www.smartturn.com/services/sales-order-types">false</ns18:useShipToAsBillAddress>  
  <ns19:shipToName xmlns:ns19="http://www.smartturn.com/services/sales-order-types">ship to name</ns19:shipToName>  
  <ns20:shipToContact 
xmlns:ns20="http://www.smartturn.com/services/sales-order-types">ship to contact</ns20:shipToContact>  
  <ns21:shipToContactPhone 
xmlns:ns21="http://www.smartturn.com/services/sales-order-types">ship to contact phone</ns21:shipToContactPhone>  
  <ns22:status xmlns:ns22="http://www.smartturn.com/services/sales-order-types">NEW</ns22:status>  
  <ns23:item xmlns:ns23="http://www.smartturn.com/services/sales-order-types"> 
    <ns23:itemMasterId>BB-10</ns23:itemMasterId>  
    <ns23:description>this is a desc</ns23:description>  
    <ns23:details>these are details</ns23:details>  
    <ns23:orderedQuantity> 
<ns26:value 
xmlns:ns26="http://www.smartturn.com/services/occamtypes">10.0</ns26:value>  
<ns27:unitAbbreviation 
xmlns:ns27="http://www.smartturn.com/services/occamtypes">ea</ns27:unitAbbreviation>  
    </ns23:orderedQuantity> 
  <ns23:customerRequestDate>2007-03-
20T00:04:34.479Z</ns23:customerRequestDate>  
  <ns23:price> 
<ns28:value 
xmlns:ns28="http://www.smartturn.com/services/occamtypes">100.0</ns28:value>  
<ns29:type 
xmlns:ns29="http://www.smartturn.com/services/occamtypes">$10</ns29:type>  
  </ns23:price> 
  <ns23:vendorItemId>vendor item id</ns23:vendorItemId>  
  <ns23:manufacturerItemId>manf item id</ns23:manufacturerItemId>  
  <ns23:upcCode>UPC Code</ns23:upcCode>  
  <ns23:manufacturerId>manf id</ns23:manufacturerId>  
</ns23:item> 
<ns30:comments xmlns:ns30="http://www.smartturn.com/services/sales-order-types">This is a comment</ns30:comments>  
</inSalesOrders> 
</saveSalesOrder> 
</soapenv:Body> 
</soapenv:Envelope>

`

and the url is
$url = "https://services.smartturn.com/occam/services/OccamService?wsdl";
and the operation that i want to perform is ‘saveSalesOrder’
how can i do that in php.

Thanks in advance .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:59:53+00:00Added an answer on June 12, 2026 at 2:59 pm

    First, you’ll need PHP’s SOAP extension installed and enabled. Then:

    $url = "https://services.smartturn.com/occam/services/OccamService?wsdl";
    
    $data = array(
        "UserId"               => "secret",
        "Password"             => "secret",
        "type"                 => "EXTERNAL",
        "date"                 => "2012-10-20T00:04:34.479Z",
        "dateDue"              => "2012-10-20T00:04:34.479Z",
        "externalNumber"       => "Ext-id-00502",
        "customerName"         => "test ",
        "customerContact"      => "customer Contact",
        "customerContactPhone" => "123456789",
        "salesRep"             => "w salesRep",
    );
    
    try {
        $soapClient = new SoapClient($url, array(
            'trace' => true, // for debugging, disable in production
            //"connection_timeout" => 1
        ));
    
        // List types to get an idea how to call methods, since it looks like
        // there are no help pages as in .asmx services
        // var_dump($soapClient->__getTypes());
    
        $soapClient->saveSalesOrder($data);
    } catch (Exception $e) {
        trigger_error("SOAP error: ".$e->getMessage(), E_USER_WARNING);
    }
    

    Links:

    Overall SmartTurn service listing

    PHP SoapClient documentation

    Edit: updated example based on comment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get my new application integrated with JIRA for management of
First of all, let me say that I'm relatively new to SOAP/WSDL/API, so this
I'm pretty new to SOAP so go easy on me. I'm trying to setup
I'm fairly new to the SOAP and WSDL world. What do I have to
I'm trying to call to a SOAP WebService using PHP SoapClient, connecting with a
I am trying to authenticate a user through the Magento Go SOAP API and
So I'm trying to call a webservice with PHP and SOAP, but it doesn't
I'm trying to follow a tutorail on connecting to magento API with Soap, but
Am pretty new to web services and have been trying to implement Soap Faults.
I'm trying to create a SOAP server in my ZF2 application that I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.