SOAPClient Header PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • broersen

    #1

    SOAPClient Header PHP

    Hello,

    Can someone tell how to create a header within a SOAP Message for sending
    wwith HTTP Client? And how to use x509 certificate with this HTTP Request?

    <SOAP-ENV:Envelope>
    <SOAP-ENV:Header>
    <kai:identifica tie>
    <username>
    </username
    </kai:identificat ie>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    XML
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>


    Thanks for the help.
    Regards,
    Wilco

  • Mike Placentra II

    #2
    Re: SOAPClient Header PHP

    What package are you using for SOAP? (The PHP SOAP extension, NuSOAP,
    etc.) Or are you generating the XML directly from PHP or using a plain
    XML extension?

    Also, what do you mean by HTTP Client? Are you using the Jakarta
    HttpClient class through PHP-Java integration or some other class or
    project called HTTP Client? Or do you mean using HTTP in general?

    -Michael Placentra II

    On Nov 6, 8:01 am, "broersen" <broerse...@gma il.comwrote:
    Hello,
    >
    Can someone tell how to create a header within a SOAP Message for sending
    wwith HTTP Client? And how to use x509 certificate with this HTTP Request?
    >
    Thanks for the help.
    Regards,
    Wilco

    Comment

    • broersen

      #3
      Re: SOAPClient Header PHP

      Im using the PHP SOAP extension.

      Within .net you are using httpwebrequest for sending an soapmessage to a
      java webservice. I am trying to send an request to an webservice and save
      this answer to the database. Here by i have to use an x509 certificate.
      If someone has another idea to post an soapmessage with no wsdl.

      Regards,
      Wilco

      "Mike Placentra II" <nothingsorigin alontheinternet @gmail.comwrote in
      message news:1194572631 .327771.31440@i 38g2000prf.goog legroups.com...
      What package are you using for SOAP? (The PHP SOAP extension, NuSOAP,
      etc.) Or are you generating the XML directly from PHP or using a plain
      XML extension?
      >
      Also, what do you mean by HTTP Client? Are you using the Jakarta
      HttpClient class through PHP-Java integration or some other class or
      project called HTTP Client? Or do you mean using HTTP in general?
      >
      -Michael Placentra II
      >
      On Nov 6, 8:01 am, "broersen" <broerse...@gma il.comwrote:
      >Hello,
      >>
      >Can someone tell how to create a header within a SOAP Message for sending
      >wwith HTTP Client? And how to use x509 certificate with this HTTP
      >Request?
      >>
      >Thanks for the help.
      >Regards,
      >Wilco
      >

      Comment

      • Willem Bogaerts

        #4
        Re: SOAPClient Header PHP

        I used the curl extension to do that. It has a few advantages: you can
        specify almost every option you can think of (like the use of
        certificates, also an issue in my case) and you can test the service
        with some pre-brew xml to test it. And you can log the entire request
        and response to see what happens. The only drawback is that you have to
        study the options.

        Good luck!

        broersen wrote:
        Im using the PHP SOAP extension.
        >
        Within .net you are using httpwebrequest for sending an soapmessage to a
        java webservice. I am trying to send an request to an webservice and
        save this answer to the database. Here by i have to use an x509
        certificate.
        If someone has another idea to post an soapmessage with no wsdl.
        >
        Regards,
        Wilco
        >
        "Mike Placentra II" <nothingsorigin alontheinternet @gmail.comwrote in
        message news:1194572631 .327771.31440@i 38g2000prf.goog legroups.com...
        >What package are you using for SOAP? (The PHP SOAP extension, NuSOAP,
        >etc.) Or are you generating the XML directly from PHP or using a plain
        >XML extension?
        >>
        >Also, what do you mean by HTTP Client? Are you using the Jakarta
        >HttpClient class through PHP-Java integration or some other class or
        >project called HTTP Client? Or do you mean using HTTP in general?
        >>
        >-Michael Placentra II
        >>
        >On Nov 6, 8:01 am, "broersen" <broerse...@gma il.comwrote:
        >>Hello,
        >>>
        >>Can someone tell how to create a header within a SOAP Message for
        >>sending
        >>wwith HTTP Client? And how to use x509 certificate with this HTTP
        >>Request?
        >>>
        >>Thanks for the help.
        >>Regards,
        >>Wilco
        >>
        >
        --
        Willem Bogaerts

        Application smith
        Kratz B.V.

        Comment

        Working...