[Spce-user] SoapFault exception error

Skyler skchopperguy at gmail.com
Fri Jun 29 21:34:23 EDT 2012


Hi,

 I opened the wsdl doc in my browser and then 'save as' to put the
Provisioning.wsdl local. Once the wsdl is local to the webserver
and wsdl2phpgenerator1.4.1-php5.3 directory, I run:  sudo ./wsdl2php -i
Provisioning.wsdl -o outputdirectory/

 This way there is no auth required as WSDL auth is handled by apache2
mod_auth for oss-bss in spce.

 I have since ran this generator against bing search api ( ./wsdl2php -i
http://api.search.live.net/search.wsdl -o outputdirectory/) and it works,
creating all classes in separate php files for include. Though the classes
created are a bit over my head to understand how they would be used.

 Google indicates that the <document> error is because the
Provisioning.wsdl is built from wsdl-viewer possibly (
http://tomi.vanek.sk/index.php?page=wsdl-viewer). So, the <xsd:tag> is not
present in Provisioning.wsdl for this generator to find.


Skyler

On Fri, Jun 29, 2012 at 8:12 AM, Vladimir Grujic <hyperbabac at gmail.com>wrote:

> Hi,
> Where did you put authentication credentials?
>
> Vladimir
> On Jun 28, 2012 5:46 PM, "Skyler" <skchopperguy at gmail.com> wrote:
>
>> Hi,
>>
>>  I came across wsdl2phpgenerator1.4.1-php5.3 and thought to try it out
>> and see what it can do. However, I can't seem to figure out how to get past
>> this error below. Has anyone seen this kind of error before? Any ideas on
>> what I could try out in order to overcome this?
>>
>> skyler at www1:/var/www/public_html/wsdl2phpgenerator1.4.1-php5.3$ sudo
>> ./wsdl2php -i Provisioning.wsdl -o outputdirectory/ -s
>> PHP Fatal error:  SOAP-ERROR: Parsing Schema: unexpected <documentation>
>> in complexType in
>> /var/www/public_html/wsdl2phpgenerator1.4.1-php5.3/src/Generator.php on
>> line 132
>> PHP Fatal error:  Uncaught exception 'wsdl2php\Exception' with message
>> 'Error connectiong to to the wsdl. Error: SOAP-ERROR: Parsing Schema:
>> unexpected <documentation> in complexType' in
>> /var/www/public_html/wsdl2phpgenerator1.4.1-php5.3/src/Generator.php:136
>> Stack trace:
>> #0
>> /var/www/public_html/wsdl2phpgenerator1.4.1-php5.3/src/Generator.php(115):
>> wsdl2php\Generator->load()
>> #1 /var/www/public_html/wsdl2phpgenerator1.4.1-php5.3/generate.php(163):
>> wsdl2php\Generator->generate(Object(wsdl2php\Config))
>> #2 /var/www/public_html/wsdl2phpgenerator1.4.1-php5.3/wsdl2php(4):
>> require_once('/var/www/public...')
>> #3 {main}
>>   thrown in
>> /var/www/public_html/wsdl2phpgenerator1.4.1-php5.3/src/Generator.php on
>> line 136
>>
>> Thanks,
>> Skyler
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> http://lists.sipwise.com/listinfo/spce-user
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20120629/d3b18a5b/attachment-0001.html>


More information about the Spce-user mailing list