Click here to Skip to main content
15,887,027 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
SuggestionRe: Default View a chart by clicking a button in the same page. Pin
syhs8928-Jul-15 8:51
syhs8928-Jul-15 8:51 
QuestionCannot send session cache limiter - headers already sent Pin
Jassim Rahma15-May-15 11:16
Jassim Rahma15-May-15 11:16 
AnswerRe: Cannot send session cache limiter - headers already sent Pin
speda127-Sep-15 13:12
speda127-Sep-15 13:12 
AnswerRe: Cannot send session cache limiter - headers already sent Pin
ribluc30-May-16 20:43
ribluc30-May-16 20:43 
Questionsave image by PHP Pin
Member 836750210-May-15 5:16
Member 836750210-May-15 5:16 
General[REPOST] Pin
Sascha Lefèvre10-May-15 6:18
professionalSascha Lefèvre10-May-15 6:18 
AnswerRe: save image by PHP Pin
Sudera13-May-15 21:07
Sudera13-May-15 21:07 
QuestionPHP-SOAP: How to authenticate? Pin
Muhammed Özdemir7-May-15 19:26
Muhammed Özdemir7-May-15 19:26 
XML
I'm stuck with this problem, any help will be appreciated.

I have a web service, it requires authentication to call functions but I couldn't authenticate.

The function XML is like this:

    <s11:Envelope xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'>
      <s11:Header>
        <ns1:AuthHeader xmlns:ns1='MOD'>
    <!-- optional -->
          <ns1:Channel>?XXX?</ns1:Channel>
    <!-- optional -->
          <ns1:Username>?XXX?</ns1:Username>
    <!-- optional -->
          <ns1:Password>?XXX?</ns1:Password><!-- This element can be extended by any attribute from any namespace -->
        </ns1:AuthHeader>
      </s11:Header>
      <s11:Body>
        <ns1:GetBankList xmlns:ns1='MOD' />
      </s11:Body>
    </s11:Envelope>

my connection codes are:

    $baglanti = new :confused:SoapClient("https://galaksi.turknippon.com/appservice/mod.asmx?wsdl");
    $parm = array();
    $parm[] = new SoapVar('channelcode', XSD_STRING, null, null, 'Channel' );
    $parm[] = new SoapVar('myusername', XSD_STRING, null, null, 'Username' );
    $parm[] = new SoapVar('mypassword', XSD_STRING, null, null, 'Password' );

    $Adres = "https://galaksi.turknippon.com/appservice/";
    $Baslik =  new SoapHeader($Adres, "AuthHeader",new SoapVar($parm, SOAP_ENC_OBJECT));
    $baglanti->__setSoapHeaders(array($Baslik));
    $sonuc = $baglanti->AuthHeader(new SoapVar($parm, SOAP_ENC_OBJECT));
    print_r ($sonuc);

Here is a stack trace:



     System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object. at AppServiceLibrary.AuthHeader.Validate(AuthHeader& credential) in xxxx\Galaxy\Galaxy\AppServiceLibrary\AuthHeader.cs:line 132 at xxxx.AppService.MODService.GetBankList() in xxxx\AppService\mod.asmx.cs:line 1148 --- End of inner exception stack trace --- –

AnswerRe: PHP-SOAP: How to authenticate? [Repost] Pin
Richard MacCutchan7-May-15 21:23
mveRichard MacCutchan7-May-15 21:23 
QuestionProblem with Statistics Pin
Member 836750227-Apr-15 8:16
Member 836750227-Apr-15 8:16 
GeneralRe: Problem with Statistics Pin
Sascha Lefèvre27-Apr-15 15:06
professionalSascha Lefèvre27-Apr-15 15:06 
GeneralRe: Problem with Statistics Pin
Member 836750227-Apr-15 18:00
Member 836750227-Apr-15 18:00 
GeneralRe: Problem with Statistics Pin
Sascha Lefèvre27-Apr-15 18:26
professionalSascha Lefèvre27-Apr-15 18:26 
GeneralRe: Problem with Statistics Pin
Member 836750230-Apr-15 12:13
Member 836750230-Apr-15 12:13 
QuestionEcrypt PHP Application Pin
Jassim Rahma14-Apr-15 21:52
Jassim Rahma14-Apr-15 21:52 
AnswerRe: Ecrypt PHP Application Pin
Graham Breach15-Apr-15 7:54
Graham Breach15-Apr-15 7:54 
QuestionRESOURCE Role Pin
Member 1072866713-Apr-15 15:38
Member 1072866713-Apr-15 15:38 
Questionwhy the sign-in is slow?! Pin
Jassim Rahma23-Mar-15 9:58
Jassim Rahma23-Mar-15 9:58 
QuestionSQL Pin
Member 1072866722-Mar-15 20:30
Member 1072866722-Mar-15 20:30 
QuestionRe: SQL Pin
Richard MacCutchan22-Mar-15 22:01
mveRichard MacCutchan22-Mar-15 22:01 
AnswerRe: SQL Pin
syed shanu22-Mar-15 22:28
mvasyed shanu22-Mar-15 22:28 
QuestionHow to expire a session? Pin
Jassim Rahma20-Mar-15 8:14
Jassim Rahma20-Mar-15 8:14 
AnswerRe: How to expire a session? Pin
speda127-Sep-15 13:15
speda127-Sep-15 13:15 
QuestionHow to Delete file when Selected from Dropdown List Pin
Member 1150850510-Mar-15 20:09
Member 1150850510-Mar-15 20:09 
QuestionRe: How to Delete file when Selected from Dropdown List Pin
Richard MacCutchan10-Mar-15 22:08
mveRichard MacCutchan10-Mar-15 22:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.