PHP soap and XMLSchema-instance

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 2
Joined: Mon Apr 15, 2013 5:35 am

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?

php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

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.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 10 guests