![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
XML SOAP experts, i need a heads up
I have a piece of xml, like this:
Code:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uniface:applic:services:DELAPRBWS"> <soapenv:Header/> <soapenv:Body> <urn:CALCULATEPREMIUM soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <PL69_IN xsi:type="xsd:string"><![CDATA[<?xml version="1.0" ?> <PL69_IN> <INPUTBLOK> <BERICHTTYPE>PL69</BERICHTTYPE> <INITIATOR_ID>ATP</INITIATOR_ID> <RESPONDENT_ID>DELA</RESPONDENT_ID> <BEDRIJFSCODE>ATP</BEDRIJFSCODE> </INPUTBLOK> <POLISBLOK> <INSCHRIJVERNUMMER>10005</INSCHRIJVERNUMMER> <BEREKENING_ID>2</BEREKENING_ID> <BETAALPERIODE>1</BETAALPERIODE> <COMMERCIEEL_PRODUCT>D</COMMERCIEEL_PRODUCT> <INGANGSDATUM_POLISMUTATIE>01-10-2012</INGANGSDATUM_POLISMUTATIE> <DEKKINGBLOK> <DEKKING_ID_DEK>1</DEKKING_ID_DEK> <ELEMENTAIR_PRODUCT_ID>400</ELEMENTAIR_PRODUCT_ID> <INGANGSDATUM_DEKKING>01-10-2012</INGANGSDATUM_DEKKING> <KAPITAAL_VERZEKERD>5000</KAPITAAL_VERZEKERD> <VERZEKERDEBLOK> <GEB_DAT>31-01-1981</GEB_DAT> <GESLACHT>V</GESLACHT> </VERZEKERDEBLOK> </DEKKINGBLOK> <DEKKINGBLOK> <DEKKING_ID_DEK>2</DEKKING_ID_DEK> <ELEMENTAIR_PRODUCT_ID>210</ELEMENTAIR_PRODUCT_ID> <INGANGSDATUM_DEKKING>01-10-2012</INGANGSDATUM_DEKKING> <KAPITAAL_VERZEKERD>5000</KAPITAAL_VERZEKERD> <VERZEKERDEBLOK> <GEB_DAT>31-08-2005</GEB_DAT> <GESLACHT>V</GESLACHT> </VERZEKERDEBLOK> </DEKKINGBLOK> </POLISBLOK> </PL69_IN>]]> </PL69_IN> <PL69_OUT xsi:type="xsd:string"></PL69_OUT> </urn:CALCULATEPREMIUM> </soapenv:Body> </soapenv:Envelope> Code:
$soapparam = new SoapVar($objRequest, XSD_ANYXML); $client->__soapCall("CALCULATEPREMIUM", array($soapparam)); Its not working at all. I keep getting blank results. Is there a function to check if we are getting through at all? I keep getting this result, no matter what: Code:
Array ( [return] => 0 [PL69_OUT] => )
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
And yes, i do call the client first
Code:
$client = new SoapClient('http://domain.com/DELAPRBWS?wsdl');
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,484
|
The best heads up I can give you is :
"Don't use SOAP unless you are washing your ass". But until then, use this class I wrote : PHP Code:
PHP Code:
That's all the time I can spend on this though.
__________________
Make Money with Porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Thanks, i will have a look.
Its annoying as hell, should have had this done yesterday.
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Issue is though, i think i need to get this format:
Code:
$params = array('stuff'=>$stuff,'morestuff'=>$morestuff); Code:
<PL69_IN xsi:type="xsd:string"><![CDATA[<?xml version="1.0" ?> <PL69_IN> <INPUTBLOK> <BERICHTTYPE>PL69</BERICHTTYPE> <INITIATOR_ID>ATP</INITIATOR_ID> <RESPONDENT_ID>DELA</RESPONDENT_ID> <BEDRIJFSCODE>ATP</BEDRIJFSCODE> </INPUTBLOK> <POLISBLOK> <INSCHRIJVERNUMMER>10005</INSCHRIJVERNUMMER> <BEREKENING_ID>2</BEREKENING_ID> <BETAALPERIODE>1</BETAALPERIODE> <COMMERCIEEL_PRODUCT>D</COMMERCIEEL_PRODUCT> <INGANGSDATUM_POLISMUTATIE>01-10-2012</INGANGSDATUM_POLISMUTATIE> <DEKKINGBLOK> <DEKKING_ID_DEK>1</DEKKING_ID_DEK> <ELEMENTAIR_PRODUCT_ID>400</ELEMENTAIR_PRODUCT_ID> <INGANGSDATUM_DEKKING>01-10-2012</INGANGSDATUM_DEKKING> <KAPITAAL_VERZEKERD>5000</KAPITAAL_VERZEKERD> <VERZEKERDEBLOK> <GEB_DAT>31-01-1981</GEB_DAT> <GESLACHT>V</GESLACHT> </VERZEKERDEBLOK> </DEKKINGBLOK> <DEKKINGBLOK> <DEKKING_ID_DEK>2</DEKKING_ID_DEK> <ELEMENTAIR_PRODUCT_ID>210</ELEMENTAIR_PRODUCT_ID> <INGANGSDATUM_DEKKING>01-10-2012</INGANGSDATUM_DEKKING> <KAPITAAL_VERZEKERD>5000</KAPITAAL_VERZEKERD> <VERZEKERDEBLOK> <GEB_DAT>31-08-2005</GEB_DAT> <GESLACHT>V</GESLACHT> </VERZEKERDEBLOK> </DEKKINGBLOK> </POLISBLOK> </PL69_IN>]]> </PL69_IN>
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,484
|
$params = array('BERICHTTYPE'=>'PL69','INITIATOR_ID'=>'ATP', 'RESPONDENT_ID'=>'DELA'.......);
__________________
Make Money with Porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Hehe, i knew that much, but it is different each time so i need it automated. Feel like a freakin n00b
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,484
|
Quote:
I posted that. $params = array('stuff'=>$stuff,'morestuff'=>$morestuff);
__________________
Make Money with Porn |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Quote:
I appreciate the help though, don't get me wrong!!
__________________
seks.ai for sale - ping me |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,484
|
Quote:
Fuck you idiot! ![]()
__________________
Make Money with Porn |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Quote:
I have two projects here that needed fixing yesterday. Always great when shit hits the fan on more than one project at the same time. It makes my vision blurry:-p
__________________
seks.ai for sale - ping me |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Aug 2002
Posts: 2,781
|
Quote:
![]() Give up programming now... its not for you.
__________________
I don't endorse a god damn thing...... ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Quote:
Luckily i am not a 'real programmer'. I'm just very very resourcefull at times.... ![]()
__________________
seks.ai for sale - ping me |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
20 bucks for who helps me fix this little crap, it needs to be done today.
dykwia at gmail dottercom or 125586484
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
So Fucking Stiff!
Industry Role:
Join Date: Oct 2005
Posts: 493
|
That raw SOAP envelope doesn't help much.. Better post the full WSDL URL and most of your code, that'll probably contain the key the solve this.
SOAP & PHP generally doen't play well together.. Maandag kan ik je helpen, maar 20 USD is wel een beetje weinig ;)
__________________
ICQ 208807506 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | ||
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Quote:
Quote:
Voor de kenner die mijn script ziet, vast binnen half uurtje voltooid. Ik ken alleen SOAP mbt het halen van gegevens, niet voor het posten én halen;-)
__________________
seks.ai for sale - ping me |
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
Glad to find out i am not a COMPLETE idiot. My input file/format is just wrong, i tested with some default xml data and that gave some valid output, whereas the SOAP envelope doesn't do me any good. Seems i need to read up on that first:-(
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Industry Role:
Join Date: Oct 2012
Posts: 45
|
xml is dead, everyone should use json
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,614
|
i cant afford soap...
![]() But I guess most of you knew that already... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,480
|
I never actually thought about it, nor did i ever care, but... are you Drinkinghard?
__________________
seks.ai for sale - ping me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
use csv for regular data exchange
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |