473,799 Members | 3,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Nov 6 '07 #1
3 4072
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
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******** *************@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
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******** *************@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.
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
6036
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 Xml.XmlNode object. When I test the web services using IE, I receive the XML data I want. But when I use MSSOAPLib.soapClient in MS Access, I got an error of “Wrong number of arguments or invalid property assignment.” I don't think this was...
1
18411
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") But I am getting the following error when the script is run: Microsoft VBScript runtime (0x800A01AD) ActiveX component can't create object: 'MSSOAP.SoapClient'
3
2300
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 ! Thanks Paul
1
3609
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 request XML which causes the problem in getting response from the service. Request XML generated by SoapClient: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://abc.com/GBTSTo/GBTSTReq/01"...
0
4758
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 http://www.schlossnagle.org/~george/blog/index.php?/archives/235-Salesforce.com-and-PHP.html ) To acheive this, I subclass SoapClient and overwrite the __doRequest() method. According to the PHP documentation and the article above, the
4
14227
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 me fuming mad. The two methods are "GetSessionToken" which expects two strings, and "SetProjectData" which expects XML wrapped in a CDATA tag. My problem is that the XML I pass to SetProjectData is being escaped by the PHP SoapClient and I don't...
11
21804
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? Currently I am creating a $string full of CDATA and XML tags. But when I pass this to the webservice, the CDATA and XML tags are escaped and lose their meaning. $client = new SoapClient("my.wsdl",array("trace"=>1)); $string = "<! ]>";...
1
2522
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 and then SoapClient->call() fails with some ugly messages containing PHP code. Is it possible to do something like try {
1
1644
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> <SOAP-ENV:Header> <kai:identificatie> <username> </username
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.