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

  • Home
  • SEARCH
  • 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 6732417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:38:54+00:00 2026-05-26T10:38:54+00:00

at first i had two c++ server and client program, run two program on

  • 0

at first i had two c++ server and client program, run two program on a local computer separately and input a name in client side, then server will recieve request and send back the phone number and display on the client side. after complie with gsoap, Here is what i got the wsdl file.

 <?xml version="1.0" encoding="UTF-8"?>
<definitions name="test"
 targetNamespace="test"
 xmlns:tns="test"
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:test="test"
  xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
 xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
 xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
 xmlns="http://schemas.xmlsoap.org/wsdl/"> 
<types> 
 <schema targetNamespace="test"
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:test="test"
  xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="qualified"
  attributeFormDefault="unqualified">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
  <!-- operation request element -->
  <element name="getMobile">
   <complexType>
    <sequence>
     <element name="user" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/><!-- test__getMobile::user -->
    </sequence>
   </complexType>
  </element>
  <!-- operation response element -->
  <element name="getMobileResponse">
   <complexType>
    <sequence>
     <element name="phone-num" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/><!-- test__getMobile::phone_num -->
    </sequence>
   </complexType>
   </element>
 </schema> 
</types> 
<message name="getMobileRequest">
 <part name="parameters" element="test:getMobile"/><!-- test__getMobile::test__getMobile -->
</message> 
<message name="getMobileResponse">
 <part name="parameters" element="test:getMobileResponse"/>
</message> 
  <portType name="testPortType">
 <operation name="getMobile">
  <documentation>Service definition of function test__getMobile</documentation>
  <input message="tns:getMobileRequest"/>
  <output message="tns:getMobileResponse"/>
  </operation>
  </portType> 
<binding name="test" type="tns:testPortType">
 <SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
 <operation name="getMobile">
  <SOAP:operation soapAction=""/>
   <input>
  <SOAP:body parts="parameters" use="literal"/>
 </input>
 <output>
    <SOAP:body parts="parameters" use="literal"/>
  </output>
</operation>
</binding> 
<service name="test">
 <documentation>gSOAP 2.8.3 generated service definition</documentation>
 <port name="test" binding="tns:test">
 <SOAP:address location="http://192.168.82.52:35088"/>
 </port>
 </service> 
 </definitions>

now should i create two separated php file in two folders one php file should be enough?ive check some code on the internet but still not quite sure where o step in…
thanks!

and for my c++ program function, if i want to hard code user input in php, should i do

 $result = $sc->getMobile("Grace"); 

or sould i put a array in it?

  • 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-05-26T10:38:54+00:00Added an answer on May 26, 2026 at 10:38 am

    Not sure what you are trying to do here – are you trying to write the client side program? What have you got so far?

    You can parse the xml string that is returned from the SOAP request using SimpleXMLElement:

    $xmlobj = new SimpleXMLElement($xmlstr);
    

    Reference on SimpleXMLElement located here: http://php.net/manual/en/class.simplexmlelement.php

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

Sidebar

Related Questions

So I just started my first rails project yesterday. I had two many-to-many (has_and_belongs_to_many)
So as of two days ago, i had myself a shiny new SVN server.
I had gridview which get data from database according to two event .The first
I had nested datalist I had two datalist the first for getting gategories and
So I have a SQL Server running and I have two databases, the first
Ok so I had first downloaded SQL Server Express 2008 and Wed Developer Express
I've got a UITableView with custom tablecells. First I had a version which implemented
I've had my first go at writing a DLL in Delphi. So far so
I'm an MFC programmer. I just had my first taste of Vista (on a
Have had to write my first proper multithreaded coded recently, and realised just how

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.