473,382 Members | 1,332 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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:identificatie>
<username>
</username
</kai:identificatie>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
XML
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thanks for the help.
Regards,
Wilco

Nov 6 '07 #1
3 4053
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...@gmail.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
Nov 9 '07 #2
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" <no***************************@gmail.comwrote in
message news:11*********************@i38g2000prf.googlegro ups.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...@gmail.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
Nov 10 '07 #3
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" <no***************************@gmail.comwrote in
message news:11*********************@i38g2000prf.googlegro ups.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...@gmail.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.
http://www.kratz.nl/
Nov 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Yolande | last post by:
Hi there, I try to use MSSOAPLib.soapClient to get the XML data produced by our web services. I have a web method call ReportExec(strID, strRequest). It takes two string arguments and returns a ...
1
by: aws.steve | last post by:
I am trying to get my first Soap based website to work on my Windows 2000 server with IIS 5. The code used to create the client is as follows: set SoapClient = CreateObject("MSSOAP.SoapClient")...
3
by: PaulF | last post by:
Is it possible to use a SoapClient derived class to send a message to a Web Service (eg a .asmx file)? It it is, does anyone have any code they could point me at that actually does this ! ...
1
by: Dheepu Kumar1 | last post by:
We are using WSDL in soapclient to access the java web service.The soapclient request is not formed as required by the service. Namespace is not included in one ComplexType element(<GSTBTReq>) in...
0
by: Florian Laws | last post by:
Hello, to work around an interoperability problem with the PHP5 SOAP extension, I'd like to modify the generate XML SOAP request. (as described in...
4
by: brandonkirsch | last post by:
Hey guys, I recently lost hours to the PHP 5.2.1 SoapClient when trying to use a remote webservice. There are two methods I have to use, the first one worked like a charm and the second one has...
11
by: brandonkirsch | last post by:
Hey guys, I've posted a question on here before but I don't think I was very direct about the problem so I'll state it in a new way: How do I send CDATA to a webservice using the PHP SoapClient? ...
1
by: Sergei Riaguzov | last post by:
Hi, How can I catch errors produced by SOAP server with SoapClient? The first thing which comes in mind is eval() but maybe there is a better way? The server is sending some fault information...
1
by: broersen | last post by:
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>...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.