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 7092097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:16:15+00:00 2026-05-28T08:16:15+00:00

This may come across as a terribly lazy question, but I assure you it

  • 0

This may come across as a terribly lazy question, but I assure you it is not. I have tried for days to get this working but I just cannot.

I have been given a WSDL file and I need to create a SOAP service for it in PHP. Could any one tell me what the correct way of doing it is?

The receiver of the service is expecting a “User” object to be returned when the getMember method is invoked.

Here is the WSDL

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
            <s:element name="getMember">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="memCode" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="getMemberResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="getMemberResult" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="getMemberByUsernameAndPassword">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
                        <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="getMemberByUsernameAndPasswordResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="getMemberByUsernameAndPasswordResult" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="insertMember">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="insertStr" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="insertMemberResponse">
                <s:complexType/>
            </s:element>
            <s:element name="decodeID">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="memCode" type="s:string"/>
                        <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="decodeIDResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="decodeIDResult" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="encodeID">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="memCode" type="s:string"/>
                        <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="encodeIDResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="encodeIDResult" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="processPnrInfo">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="pnrXml" type="s:string"/>
                        <s:element minOccurs="0" maxOccurs="1" name="UserXml" type="s:string"/>
                        <s:element minOccurs="0" maxOccurs="1" name="extraCosts" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="processPnrInfoResponse">
                <s:complexType/>
            </s:element>
            <s:element name="CancelPNR">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="paxSurname" type="s:string"/>
                        <s:element minOccurs="0" maxOccurs="1" name="pnrNo" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="CancelPNRResponse">
                <s:complexType/>
            </s:element>
        </s:schema>
    </wsdl:types>
    <wsdl:message name="getMemberSoapIn">
        <wsdl:part name="parameters" element="tns:getMember"/>
    </wsdl:message>
    <wsdl:message name="getMemberSoapOut">
        <wsdl:part name="parameters" element="tns:getMemberResponse"/>
    </wsdl:message>
    <wsdl:message name="getMemberByUsernameAndPasswordSoapIn">
        <wsdl:part name="parameters" element="tns:getMemberByUsernameAndPassword"/>
    </wsdl:message>
    <wsdl:message name="getMemberByUsernameAndPasswordSoapOut">
        <wsdl:part name="parameters" element="tns:getMemberByUsernameAndPasswordResponse"/>
    </wsdl:message>
    <wsdl:message name="insertMemberSoapIn">
        <wsdl:part name="parameters" element="tns:insertMember"/>
    </wsdl:message>
    <wsdl:message name="insertMemberSoapOut">
        <wsdl:part name="parameters" element="tns:insertMemberResponse"/>
    </wsdl:message>
    <wsdl:message name="decodeIDSoapIn">
        <wsdl:part name="parameters" element="tns:decodeID"/>
    </wsdl:message>
    <wsdl:message name="decodeIDSoapOut">
        <wsdl:part name="parameters" element="tns:decodeIDResponse"/>
    </wsdl:message>
    <wsdl:message name="encodeIDSoapIn">
        <wsdl:part name="parameters" element="tns:encodeID"/>
    </wsdl:message>
    <wsdl:message name="encodeIDSoapOut">
        <wsdl:part name="parameters" element="tns:encodeIDResponse"/>
    </wsdl:message>
    <wsdl:message name="processPnrInfoSoapIn">
        <wsdl:part name="parameters" element="tns:processPnrInfo"/>
    </wsdl:message>
    <wsdl:message name="processPnrInfoSoapOut">
        <wsdl:part name="parameters" element="tns:processPnrInfoResponse"/>
    </wsdl:message>
    <wsdl:message name="CancelPNRSoapIn">
        <wsdl:part name="parameters" element="tns:CancelPNR"/>
    </wsdl:message>
    <wsdl:message name="CancelPNRSoapOut">
        <wsdl:part name="parameters" element="tns:CancelPNRResponse"/>
    </wsdl:message>
    <wsdl:portType name="ServiceSoap">
        <wsdl:operation name="getMember">
            <wsdl:input message="tns:getMemberSoapIn"/>
            <wsdl:output message="tns:getMemberSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="getMemberByUsernameAndPassword">
            <wsdl:input message="tns:getMemberByUsernameAndPasswordSoapIn"/>
            <wsdl:output message="tns:getMemberByUsernameAndPasswordSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="insertMember">
            <wsdl:input message="tns:insertMemberSoapIn"/>
            <wsdl:output message="tns:insertMemberSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="decodeID">
            <wsdl:input message="tns:decodeIDSoapIn"/>
            <wsdl:output message="tns:decodeIDSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="encodeID">
            <wsdl:input message="tns:encodeIDSoapIn"/>
            <wsdl:output message="tns:encodeIDSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="processPnrInfo">
            <wsdl:input message="tns:processPnrInfoSoapIn"/>
            <wsdl:output message="tns:processPnrInfoSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="CancelPNR">
            <wsdl:input message="tns:CancelPNRSoapIn"/>
            <wsdl:output message="tns:CancelPNRSoapOut"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="getMember">
            <soap:operation soapAction="http://tempuri.org/getMember" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="getMemberByUsernameAndPassword">
            <soap:operation soapAction="http://tempuri.org/getMemberByUsernameAndPassword" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="insertMember">
            <soap:operation soapAction="http://tempuri.org/insertMember" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="decodeID">
            <soap:operation soapAction="http://tempuri.org/decodeID" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="encodeID">
            <soap:operation soapAction="http://tempuri.org/encodeID" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="processPnrInfo">
            <soap:operation soapAction="http://tempuri.org/processPnrInfo" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="CancelPNR">
            <soap:operation soapAction="http://tempuri.org/CancelPNR" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="getMember">
            <soap12:operation soapAction="http://tempuri.org/getMember" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="getMemberByUsernameAndPassword">
            <soap12:operation soapAction="http://tempuri.org/getMemberByUsernameAndPassword" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="insertMember">
            <soap12:operation soapAction="http://tempuri.org/insertMember" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="decodeID">
            <soap12:operation soapAction="http://tempuri.org/decodeID" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="encodeID">
            <soap12:operation soapAction="http://tempuri.org/encodeID" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="processPnrInfo">
            <soap12:operation soapAction="http://tempuri.org/processPnrInfo" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="CancelPNR">
            <soap12:operation soapAction="http://tempuri.org/CancelPNR" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="Service">
        <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
            <soap:address location="[byng_wsdl_target]"/>
        </wsdl:port>
        <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
            <soap12:address location="[byng_wsdl_target]"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

I would be so grateful for anyone who can help.

ADDITIONAL

class User {
    public $GuestUserId;
    public $Username;
    public $FirstName;
    public $SurName;
    public $Email;
    public
    function getMember($uid) {
        $applicant = new Applicant($uid);
        $this->GuestUserId = $applicant->getIdentifier();
        $this->Username = $applicant->getEmail();
        $this->FirstName = $applicant->getFirstName();
        $this->SurName = $applicant->getLastName();
        $this->Email = $applicant->getEmail();
        return $this;
    }
}
  • 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-28T08:16:15+00:00Added an answer on May 28, 2026 at 8:16 am

    Have you tried SoapServer?

    $server = new SoapServer('path/to/your.wsdl', $options);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I understand this may come across as a open question, but I need
Okay this may be a simple question but I have yet to come with
This may be an unusual question, but are there any resources people have come
I know this may come across as a newbie question, but I'm curious as
This may be a bit of daft question, but I don't come from an
This may be a stupid question but I have a code with the following
This may sound like a very generic question but here it goes. I have
I know this may not be exactly a coder question, but I feel it
This may not be a actual question, but I just asked it for the
This may come across as incredibly stupid, but I cannot figure out if: I

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.