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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:56:10+00:00 2026-06-17T21:56:10+00:00

I am tying to get a simple SOAP call to work in php, but

  • 0

I am tying to get a simple SOAP call to work in php, but I have no clue what is wrong.
It is my first time using soap so please be gentle 🙂

when I make a manual call like this, it all workes

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header>
  <tem:AuthenticationHeader>
     <!--Optional:-->
     <tem:UserName>****</tem:UserName>
     <!--Optional:-->
     <tem:Password>***</tem:Password>
  </tem:AuthenticationHeader>
</soapenv:Header>
<soapenv:Body>
 <tem:SignUp>
     <!--Optional:-->
     <tem:email>test@test.se</tem:email>
     <!--Optional:-->
     <tem:password>password</tem:password>
  </tem:SignUp>
</soapenv:Body>
</soapenv:Envelope>

But when i do it in php, i get ” Function (“SignUp”) is not a valid method for this service”

try {
    $soap_client = new SoapClient("http://url.com/Service.asmx?WSDL");
    $soapHeader = array('UserName' => '*****','Password' => '***');
    // Soap Header initialization
    $header = new SOAPHeader('http://tempuri.org/', 'AuthenticationHeader', $soapHeader);        
    // add the Header to the Soap Client before request
    $soap_client->__setSoapHeaders($header); 
    $args  = array('email'=>'tetsing@pp.se','password' =>'tetsing');
    $user = $soap_client->SignUp($args);
    print_r($user);

} catch (Exception $e) {
    print_r($e);
}

edit1: Added WSDL

<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/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
    <s:element name="AuthenticationHeader" type="tns:AuthenticationHeader"/>
    <s:complexType name="AuthenticationHeader">...</s:complexType>
    <s:element name="SignUp">
      <s:complexType>
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="email" type="s:string"/>
          <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
        </s:sequence>
      </s:complexType>
     </s:element>

Edit 2:

Edit 3: getFunctions gives med

    array(18) {
  [0]=>
  string(80) "GetGameProgressDataResponse GetGameProgressData(GetGameProgressData $parameters)"
  [1]=>
  string(101) "GetGameParticipantPicturesResponse GetGameParticipantPictures(GetGameParticipantPictures $parameters)"
  [2]=>
  string(41) "SignUpResponse SignUp(SignUp $parameters)"
  [3]=>
  string(38) "LoginResponse Login(Login $parameters)"
  [4]=>
  string(53) "CreateGameResponse CreateGame(CreateGame $parameters)"
  [5]=>
  string(62) "GetActivitiesResponse GetActivities(GetActivities $parameters)"
  [6]=>
  string(62) "SetActivitiesResponse SetActivities(SetActivities $parameters)"
  [7]=>
  string(68) "GetParticipantsResponse GetParticipants(GetParticipants $parameters)"
  [8]=>
  string(68) "SetParticipantsResponse SetParticipants(SetParticipants $parameters)"
  [9]=>
  string(80) "GetGameProgressDataResponse GetGameProgressData(GetGameProgressData $parameters)"
  [10]=>
  string(101) "GetGameParticipantPicturesResponse GetGameParticipantPictures(GetGameParticipantPictures $parameters)"
  [11]=>
  string(41) "SignUpResponse SignUp(SignUp $parameters)"
  [12]=>
  string(38) "LoginResponse Login(Login $parameters)"
  [13]=>
  string(53) "CreateGameResponse CreateGame(CreateGame $parameters)"
  [14]=>
  string(62) "GetActivitiesResponse GetActivities(GetActivities $parameters)"
  [15]=>
  string(62) "SetActivitiesResponse SetActivities(SetActivities $parameters)"
  [16]=>
  string(68) "GetParticipantsResponse GetParticipants(GetParticipants $parameters)"
  [17]=>
  string(68) "SetParticipantsResponse SetParticipants(SetParticipants $parameters)"
}
  • 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-17T21:56:11+00:00Added an answer on June 17, 2026 at 9:56 pm

    The code was fine, it was a server problem, and they fixed.

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

Sidebar

Related Questions

I'm trying to get this simple program to work on windows, but it crashes:
I'm trying to get a simple VBO running. But when i call glBufferData(GL_ARRAY_BUFFER, sizeof(Vertex)*vertexcount,
I'm trying to use a simple wsdl file and make a soap call but
So i am trying to get a simple system working where i have an
I have been struggling all afternoon trying to get a simple mailto: tag to
To all, I am trying to get a simple NumberPicker to work in a
I have a simple WCF service that I call server side from code behind
I'm trying to get a simple example working using gSoap, for VS2008. I've done
I am trying to call the webservice to get a simple list of tasks,
Possible Duplicate: How to parse SOAP response without SoapClient I have a simple nuSoap

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.