NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
nusoap client wsdl


Joined: 04 Sep 2008
Posts: 1
Reply with quote
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 '<p><b>Fault: ';
print_r($result);
echo '</b></p>';
} else {
// Check for errors
$err = $client->getError();
if ($err) {
// Display the error
echo '<p><b>Error: ' . $err . '</b></p>';
} else {
// Display the result
print_r($result);
}
}

?>

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

<!--
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
-->

<wsdl:types>

<schema targetNamespace="urn:WSSubscriberDataUploadTypesV1">
<import namespace="urn:WSSubscriberDataUploadV1"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<simpleType name="WSEnumResponseCodeType">

<restriction base="xsd:string">
<enumeration value="SUCC"/>
<enumeration value="WARN"/>
<enumeration value="ERR"/>
</restriction>
</simpleType>

<complexType name="WSResponse">

<sequence>
<element name="code" type="tns1:WSEnumResponseCodeType"/>
<element name="description" nillable="true" type="xsd:string"/>
</sequence>
</complexType>

<complexType name="WSResponseOnNumber">

<complexContent>

<extension base="tns1:WSResponse">

<sequence>
<element name="number" type="xsd:long"/>
</sequence>
</extension>
</complexContent>
</complexType>

<complexType name="WSResponseOnSubscriber">

<complexContent>

<extension base="tns1:WSResponse">

<sequence>
<element name="number" type="xsd:long"/>
</sequence>
</extension>
</complexContent>
</complexType>

<complexType name="WSBusinessException">

<sequence>
<element name="message" nillable="true" type="xsd:string"/>
</sequence>
</complexType>

<simpleType name="WSEnumAbonentaTips">

<restriction base="xsd:string">
<enumeration value="PUBLISKAIS_FIKSETAIS_TIKLS"/>
<enumeration value="TAKSOFONS"/>
</restriction>
</simpleType>

<complexType name="WSKoord">

<sequence>
<element name="x-koord" nillable="true" type="xsd:long"/>
<element name="y-koord" nillable="true" type="xsd:long"/>
</sequence>
</complexType>

<complexType name="WSAdrese">

<sequence>
<element name="raj" nillable="true" type="xsd:string"/>
<element name="pil" nillable="true" type="xsd:string"/>
<element name="pag" nillable="true" type="xsd:string"/>
<element name="cms" nillable="true" type="xsd:string"/>
<element name="iel" nillable="true" type="xsd:string"/>
<element name="nlt" nillable="true" type="xsd:string"/>
<element name="dzi" nillable="true" type="xsd:string"/>
<element name="pnd" nillable="true" type="xsd:string"/>
<element name="nov" nillable="true" type="xsd:string"/>
<element name="vcl" nillable="true" type="xsd:string"/>
<element name="cl1" nillable="true" type="xsd:string"/>
<element name="cl2" nillable="true" type="xsd:string"/>
<element name="pcl" nillable="true" type="xsd:string"/>
<element name="ucl" nillable="true" type="xsd:string"/>
<element name="mcl" nillable="true" type="xsd:string"/>
<element name="km" nillable="true" type="xsd:float"/>
<element name="koord" nillable="true" type="tns1:WSKoord"/>
</sequence>
</complexType>

<complexType name="WSAbonents">

<sequence>
<element name="numurs" type="xsd:long"/>
<element name="abonentaTips" type="tns1:WSEnumAbonentaTips"/>
<element name="adrese" type="tns1:WSAdrese"/>
</sequence>
</complexType>
</schema>

<schema targetNamespace="urn:WSSubscriberDataUploadV1">
<import namespace="urn:WSSubscriberDataUploadTypesV1"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<complexType name="ArrayOf_tns1_WSSubscriber">

<complexContent>

<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:WSAbonents[]"/>
</restriction>
</complexContent>
</complexType>

<complexType name="ArrayOf_tns1_WSResponseOnSubscriber">

<complexContent>

<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:WSResponseOnSubscriber[]"/>
</restriction>
</complexContent>
</complexType>

<complexType name="ArrayOf_tns1_WSNumber">

<complexContent>

<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:long[]"/>
</restriction>
</complexContent>
</complexType>

<complexType name="ArrayOf_tns1_WSResponseOnNumber">

<complexContent>

<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:WSResponseOnNumber[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>

<wsdl:message name="addOrUpdateSubscriberResponse">
<wsdl:part name="addOrUpdateSubscriberReturn" type="impl:ArrayOf_tns1_WSResponseOnSubscriber"/>
</wsdl:message>

<wsdl:message name="WSBusinessException">
<wsdl:part name="fault" type="tns1:WSBusinessException"/>
</wsdl:message>

<wsdl:message name="deactivateSubscriberRequest">
<wsdl:part name="subscriberList" type="impl:ArrayOf_tns1_WSNumber"/>
</wsdl:message>

<wsdl:message name="testEchoResponse">
<wsdl:part name="testEchoReturn" type="xsd:string"/>
</wsdl:message>
+
<wsdl:message name="deactivateSubscriberResponse">
<wsdl:part name="deactivateSubscriberReturn" type="impl:ArrayOf_tns1_WSResponseOnNumber"/>
</wsdl:message>

<wsdl:message name="addOrUpdateSubscriberRequest">
<wsdl:part name="subscriberList" type="impl:ArrayOf_tns1_WSSubscriber"/>
</wsdl:message>
+
<wsdl:message name="changePasswordResponse">
<wsdl:part name="changePasswordReturn" type="tns1:WSResponse"/>
</wsdl:message>

<wsdl:message name="testEchoRequest">
<wsdl:part name="hello" type="xsd:string"/>
</wsdl:message>
+
<wsdl:message name="changePasswordRequest">
<wsdl:part name="username" type="xsd:string"/>
<wsdl:part name="oldPassword" type="xsd:string"/>
<wsdl:part name="newPassword" type="xsd:string"/>
</wsdl:message>

<wsdl:portType name="WSSubscriberDataUpload">

<wsdl:operation name="testEcho" parameterOrder="hello">
<wsdl:input message="impl:testEchoRequest" name="testEchoRequest"/>
<wsdl:output message="impl:testEchoResponse" name="testEchoResponse"/>
</wsdl:operation>
+
<wsdl:operation name="changePassword" parameterOrder="username oldPassword newPassword">
<wsdl:input message="impl:changePasswordRequest" name="changePasswordRequest"/>
<wsdl:output message="impl:changePasswordResponse" name="changePasswordResponse"/>
<wsdl:fault message="impl:WSBusinessException" name="WSBusinessException"/>
</wsdl:operation>

<wsdl:operation name="addOrUpdateSubscriber" parameterOrder="subscriberList">
<wsdl:input message="impl:addOrUpdateSubscriberRequest" name="addOrUpdateSubscriberRequest"/>
<wsdl:output message="impl:addOrUpdateSubscriberResponse" name="addOrUpdateSubscriberResponse"/>
<wsdl:fault message="impl:WSBusinessException" name="WSBusinessException"/>
</wsdl:operation>
+
<wsdl:operation name="deactivateSubscriber" parameterOrder="subscriberList">
<wsdl:input message="impl:deactivateSubscriberRequest" name="deactivateSubscriberRequest"/>
<wsdl:output message="impl:deactivateSubscriberResponse" name="deactivateSubscriberResponse"/>
<wsdl:fault message="impl:WSBusinessException" name="WSBusinessException"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="WSSubscriberDataUploadV1SoapBinding" type="impl:WSSubscriberDataUpload">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="testEcho">
<wsdlsoap:operation soapAction=""/>

<wsdl:input name="testEchoRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:input>

<wsdl:output name="testEchoResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:output>
</wsdl:operation>
+
<wsdl:operation name="changePassword">
<wsdlsoap:operation soapAction=""/>

<wsdl:input name="changePasswordRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:input>

<wsdl:output name="changePasswordResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:output>

<wsdl:fault name="WSBusinessException">
<wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSBusinessException" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:fault>
</wsdl:operation>

<wsdl:operation name="addOrUpdateSubscriber">
<wsdlsoap:operation soapAction="urn:WSSubscriberDataUploadV1/addOrUpdateSubscriber"/>

<wsdl:input name="addOrUpdateSubscriberRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:input>

<wsdl:output name="addOrUpdateSubscriberResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:output>

<wsdl:fault name="WSBusinessException">
<wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSBusinessException" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:fault>
</wsdl:operation>
+
<wsdl:operation name="deactivateSubscriber">
<wsdlsoap:operation soapAction="urn:WSSubscriberDataUploadV1/deactivateSubscriber"/>

<wsdl:input name="deactivateSubscriberRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:input>

<wsdl:output name="deactivateSubscriberResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:output>

<wsdl:fault name="WSBusinessException">
<wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSBusinessException" namespace="urn:WSSubscriberDataUploadV1" use="encoded"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="WSSubscriberDataUploadService">

<wsdl:port binding="impl:WSSubscriberDataUploadV1SoapBinding" name="WSSubscriberDataUploadV1">
<wsdlsoap:address location="http://212.70.175.220:8080/db112/services/WSSubscriberDataUploadV1"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
View user's profileFind all posts by trusis2Send private message
nusoap client wsdl
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic