Soap header

Hello,

I’m working with the sc_webservice macro. Now I have to add a soap header to my requests.
Can anybody tell me how I can do this? In the SC web help I can’t find something about soap header.

Regards
Rolf

soap header is a stand php thing.
http://php.net/manual/en/book.soap.php
http://php.net/manual/en/class.soapclient.php

etc… I havent used php soap using that macro but prefer to use soap by hand… (lol… but serious)…

When I use SoapClient from a php script outside SC it works fine. When I paste the code into SC and run it I get the message
Fatal error[SIZE=12px]: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘https://app-data.des-mia.de/MIA_Online-wsdl.xml’ : failed to load external entity “https://app-data.des-mia.de/MIA_Online-wsdl.xml” in /Users/rolf/dev/NetMake/wwwroot/scriptcase/app/MiaOnline/Anmelden/Anmelden_apl.php:2782 [/SIZE]

Do you have an idea what is wrong?

The wsdl seems to be properly available. I am using only the standard SoapClient myself and for us it seems to work fine.
I assume you run that script by hand with php, actually using the php from where your scriptcase is installed?
Apparently (seen the error) you may not have the rights according to the server to go outside. Check your php log it may hold a better error description…

I think it was a problem with the http header. Meanwhile it works, but I’m not shure why :wink:
Thanks for the hint with the php log.