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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:19:04+00:00 2026-05-23T20:19:04+00:00

I’ll start out by saying I have no idea what so ever about what

  • 0

I’ll start out by saying I have no idea what so ever about what I am trying to do. My PHP skills is -beginner- and my experience with webservices is NULL.

I have a WSDL URL http://example.com/ws/3.1/NNE?WSDL. I would like to call the searchTargetGroup method from a PHP script, so I can loop through the answer and save the data to my database.

Anywho, I have no idea how to create the call from PHP. 🙁
I’ve looked at NuSOAP for PHP and also the built in SoapClient, but without luck. I think the problem is that I’m trying to call a complex method without fully understanding what the frog I’m messing around with.

So I used SoapUI to retrieve the definition file and creating a request, which works perfectly and I’m getting all the info I want. Problem is, I have no clue how I should make a PHP file creating exact same request as SoapUI (and thereby getting the correct answer).

The XML request SoapUI generates for me looks like this:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nne="http://example.com/ws/NNE">
    <soapenv:Header/>
    <soapenv:Body>
        <nne:searchTargetGroup soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
            <QuestionTargetGroup_1 xsi:type="nne:QuestionTargetGroup" xmlns:nne="http://example.com/ws/NNE">
                <companyFormCodeList xsi:type="xsd:string">10,60,80</companyFormCodeList>
                <companyStatus xsi:type="xsd:string">0</companyStatus>
                <hasPhoneOnly xsi:type="xsd:boolean">true</hasPhoneOnly>
            </QuestionTargetGroup_1>
            <int_2 xsi:type="xsd:int">500</int_2>
            <int_3 xsi:type="xsd:int">1</int_3>
            <int_4 xsi:type="xsd:int">1</int_4>
            <String_5 xsi:type="xsd:string">passstring</String_5>
        </nne:searchTargetGroup>
    </soapenv:Body>
</soapenv:Envelope>

Can anyone help me in some direction? Preferably the right one. 🙂

I’m aware that you can’t test on the URL, since it’s IP protected, but I would really just like to know how to make above call from a PHP file/function.

  • 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-23T20:19:05+00:00Added an answer on May 23, 2026 at 8:19 pm

    First of all I am a beginner here myself, so I cannot guarantee a fully correct answer but I can give you at least some hints.

    Use SoapClient instead of NuSoap. SoapClient is written in C, NuSoap in PHP, so SoapClient is faster.

    If your WSDL file is fine, then all that you have to do should be:

    $client = new SoapClient("[URL to wsdl]");
    

    After that SoapClient will take care of the rest and makes all procedures defined in the WSDL directly available.

    $result = $client->name_of_procedure($arg1, $arg2, ...);
    

    The result will be of type stdClass or an array with elements of type stdClass.

    Without a WSDL you would have to specify all the details yourself, type of parameters, namespaces, … and to invoke via __soapCall() directly.

    Either way you can inspect the structure of $result with var_dump() & Co.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
This could be a duplicate question, but I have no idea what search terms
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

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.