Click here to Skip to main content
15,886,873 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: SQL Injection error. Pin
Stephen Holdorf20-May-15 3:24
Stephen Holdorf20-May-15 3:24 
QuestionAuthorize.net PayPal Option Pin
jkirkerx11-May-15 12:24
professionaljkirkerx11-May-15 12:24 
QuestionDashboard samples reference Pin
sma123#11-May-15 5:46
sma123#11-May-15 5:46 
AnswerRe: Dashboard samples reference Pin
User 418025429-Jul-15 10:37
User 418025429-Jul-15 10:37 
Questionunderstand about Web Accessibility Pin
Nguyen Jay8-May-15 15:48
Nguyen Jay8-May-15 15:48 
AnswerRe: understand about Web Accessibility Pin
Richard MacCutchan8-May-15 21:38
mveRichard MacCutchan8-May-15 21:38 
AnswerRe: understand about Web Accessibility Pin
Afzaal Ahmad Zeeshan11-May-15 5:16
professionalAfzaal Ahmad Zeeshan11-May-15 5:16 
QuestionPHP-SOAP: How to authenticate? Pin
Muhammed Özdemir7-May-15 19:23
Muhammed Özdemir7-May-15 19:23 
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 --- –

QuestionRe: PHP-SOAP: How to authenticate? Pin
ZurdoDev11-May-15 4:14
professionalZurdoDev11-May-15 4:14 
QuestionUploading and downloading file from ONEDRIVE through WCF service Pin
Kandepu Rajesh7-May-15 6:32
Kandepu Rajesh7-May-15 6:32 
SuggestionRe: Uploading and downloading file from ONEDRIVE through WCF service Pin
ZurdoDev11-May-15 4:15
professionalZurdoDev11-May-15 4:15 
QuestionHi friends, How to apply bootstrap classes to the particular selected content from textarea. Pin
Member 113964094-May-15 19:45
Member 113964094-May-15 19:45 
AnswerRe: Hi friends, How to apply bootstrap classes to the particular selected content from textarea. Pin
Richard MacCutchan4-May-15 21:14
mveRichard MacCutchan4-May-15 21:14 
GeneralRe: Hi friends, How to apply bootstrap classes to the particular selected content from textarea. Pin
Member 113964094-May-15 22:45
Member 113964094-May-15 22:45 
QuestionAccess a web page through IP and port no (VS2013, HTML5, AngularJS) Pin
Praveen Raghuvanshi4-May-15 7:25
professionalPraveen Raghuvanshi4-May-15 7:25 
Questionabout classic asp Pin
tiwal3-May-15 7:07
tiwal3-May-15 7:07 
AnswerRe: about classic asp Pin
F-ES Sitecore3-May-15 8:09
professionalF-ES Sitecore3-May-15 8:09 
GeneralRe: about classic asp Pin
tiwal4-May-15 6:47
tiwal4-May-15 6:47 
QuestionEdit the Word Document Which is on the server. Pin
Kandepu Rajesh1-May-15 6:52
Kandepu Rajesh1-May-15 6:52 
QuestionWeb/Mobile project. Expert advise needed for system architecture Pin
Member 116571311-May-15 3:38
Member 116571311-May-15 3:38 
Questionvb.net web form Error:It is an error to use a section registered as allowDefinition='MachineToApp... Pin
dcof29-Apr-15 12:11
dcof29-Apr-15 12:11 
QuestionUpdating Legacy XML Code Pin
BeagleGuy29-Apr-15 10:41
BeagleGuy29-Apr-15 10:41 
Questionload image in jsp page Pin
aamirpal@gmail.com27-Apr-15 19:45
aamirpal@gmail.com27-Apr-15 19:45 
QuestionProcess WORD document in the browser Pin
Antonio Guedes24-Apr-15 10:19
Antonio Guedes24-Apr-15 10:19 
GeneralRe: Process WORD document in the browser Pin
Kornfeld Eliyahu Peter25-Apr-15 10:11
professionalKornfeld Eliyahu Peter25-Apr-15 10:11 

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.