nusoap client wsdl - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

nusoap client wsdl

trusistrusis Posts: 1Member
Hello!

please help to stupid girl who first time work with WSDL

I need to send data, but I can't do that. I have wsdl file (under - sorry that that's so long) who I get from server side

I can operate with function testEcho - that is work correctly, but function 'addOrUpdateSubscriber' does not work.. Sad
"Fault: Array ( [faultcode] => Server.userException [faultstring] => No such operation 'addOrUpdateSubscriber' [detail] => Array ( [hostname] => linux ) )"

where ir error? I tried so many ways to wrote that arrays - attributes

please please please help me...

<?php
$client = new soapclient('http://dshgdfh');
//this work correctly
$result = $client->call('testEcho',array('nu tad beidzot'));

//this does not work
$result = $client->call('addOrUpdateSubscriber', array('numurs'=>678588888,'abonentaTips'=>'TAKSOFONS','adrese'=>array('raj' => 'rigas','apr' => 'rigas','pil' => 'rigas',
'pag' => 'rigas','cms' => 'rigas',
'iel' => 'rigas','nlt' => 'rigas','dzi' => 'rigas',
'pnd' => 'rigas','prp' => 'rigas',
'ter' => 'rigas','nov' => 'rigas','vcl' => 'rigas',
'cll' => 'rigas','cl2' => 'rigas',
'pcl' => 'rigas','ucl' => '','mcl' => '',
'km' => 45,'koord' => '')));



if ($client->fault) {
echo '

Fault: ';
print_r($result);
echo '

';
} else {
// Check for errors
$err = $client->getError();
if ($err) {
// Display the error
echo '

Error: ' . $err . '

';
} else {
// Display the result
print_r($result);
}
}

?>

wsdl:
wsdl:definitions targetNamespace="urn:WSSubscriberDataUploadV1">
-

-

-



-

-






-

-





-

-

-

-






-

-

-

-






-

-




-

-





-

-





-

-




















-

-







-



-

-

-





-

-

-





-

-

-





-

-

-







-



-



-



-



+



-



+



-



+





-

-




+





-





+






-


-


-



-




+


-



-



-




-


-



-



-




+


-



-



-





-

-





Comments

  • pritaeaspritaeas Posts: 274Member
    : Hello!
    :
    : please help to stupid girl who first time work with WSDL
    :
    : I need to send data, but I can't do that. I have wsdl file (under -
    : sorry that that's so long) who I get from server side
    :
    : I can operate with function testEcho - that is work correctly, but
    : function 'addOrUpdateSubscriber' does not work.. Sad
    : "Fault: Array ( [faultcode] => Server.userException [faultstring] =>
    : No such operation 'addOrUpdateSubscriber' [detail] => Array (
    : [hostname] => linux ) )"
    :
    : where ir error? I tried so many ways to wrote that arrays -
    : attributes
    :
    : please please please help me...

    Normally, SOAP uses XML to communicate, not arrays. Don't you have documentation that comes with this WSDL ?
Sign In or Register to comment.