tdldp Posted March 30, 2009 Share Posted March 30, 2009 Hello... I must use a webservice that awaits a multipart mime data in hexbinary. I curl this webservice with no problem, for all other services, except the ones awaiting hexbinary type, as data was sent in plain text/xml and not in hexBinary... How do i convert string data, in hexBinary, via PHP... Multipart construction is being done ok ... Thanks for your answers... Tdldp Link to comment https://forums.phpfreaks.com/topic/151742-soap-type-hexbinary/ Share on other sites More sharing options...
Yesideez Posted March 30, 2009 Share Posted March 30, 2009 You can convert a value to hex using hex() (returns the value as a string) $hexval=hex(100); That would return "64" Link to comment https://forums.phpfreaks.com/topic/151742-soap-type-hexbinary/#findComment-796805 Share on other sites More sharing options...
tdldp Posted March 30, 2009 Author Share Posted March 30, 2009 You can convert a value to hex using hex() (returns the value as a string) $hexval=hex(100); That would return "64" Hex() ??? this is not a php function... Fatal error: Call to undefined function hex() in Anything else on this ??? Link to comment https://forums.phpfreaks.com/topic/151742-soap-type-hexbinary/#findComment-796837 Share on other sites More sharing options...
Mark Baker Posted March 30, 2009 Share Posted March 30, 2009 Try bin2hex() or any of the range of base conversion functions that PHP provides, as appropriate..... but take a look at the manual yourself Link to comment https://forums.phpfreaks.com/topic/151742-soap-type-hexbinary/#findComment-796848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.