note 80347 added to ref.soap

From: Date: Thu, 10 Jan 2008 23:52:46 +0000
Subject: note 80347 added to ref.soap
Groups: php.notes 
Request: Send a blank email to php-notes+get-135019@lists.php.net to get a copy of this message
From the "I'll just do it manually" school of frustration. If you've been having trouble getting complex types to work with no, or an entirely non-descript wsdl (my particular complaint... every method just has one child, a complex type element sequence of any... unnngh). Anyway I found the following works to fully replace the contents of the soap body with a pre-built xml string. I haven't tested what this does for calls expecting multiple parameters, since that usually means I can call it with an actual paremeters argument, but I imagine it would still work the same way. ---------------------------------- $Result=$Client->SomeCall(new SoapVar('<Element attr="AttrValue">ElValue</Element>', XSD_ANYXML)); ---------------------------------- it's really quite hackish and I'd prefer to know the proper method to add custom arguments to a SoapVar or SoapParam Object, but this worked and I'm leaving it there for now so can I lose the urge to break things. NOTE: documentation says XSD_ANYXML wasn't added until 5.1.0 ---- Server IP: 64.71.164.2 Probable Submitter: 206.127.23.210 ---- Manual Page -- http://www.php.net/manual/en/ref.soap.php Edit -- https://master.php.net/note/edit/80347 Del: integrated -- https://master.php.net/note/delete/80347/integrated Del: useless -- https://master.php.net/note/delete/80347/useless Del: bad code -- https://master.php.net/note/delete/80347/bad+code Del: spam -- https://master.php.net/note/delete/80347/spam Del: non-english -- https://master.php.net/note/delete/80347/non-english Del: in docs -- https://master.php.net/note/delete/80347/in+docs Del: other reasons-- https://master.php.net/note/delete/80347 Reject -- https://master.php.net/note/reject/80347 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135019) next »