Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

PHP soap and XMLSchema-instance

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

PHP soap and XMLSchema-instance

Postby Jevad » Mon Apr 15, 2013 5:47 am

Code: Select all
$loginxml = new SoapVar('<h:Auth xmlns:h="" xmlns:i="">
</h:Auth>', XSD_ANYXML);

How do I do this with out using XSD_ANYXML?
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Apr 15, 2013 5:35 am

Re: PHP soap and XMLSchema-instance

Postby johnj » Mon Apr 15, 2013 6:08 am

Please read about SoapVar from

If you look at the documentation of class SoapVar, you can see that its second parameter to the constructor is "encoding". This encoding ID can be XSD_STRING, XSD_BOOLEAN, XSD_DECIMAL, XSD_DATE, XSD_ANYXML, etc etc. So, you have to choose this parameter based on your requirement.
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.