[Spce-user] Issue with SOAP-Interface when creating alias_numbers
Mario Blatzheim
cosit.lists at googlemail.com
Sat Aug 6 19:43:06 EDT 2011
Hello,
while creating a SOAP-Client for Sipwise, i got the following fault message:
<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/
">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client.Voip.MalformedParameter</faultcode>
<faultstring>malformed parameter 'alias_numbers', should be an array
of structs</faultstring>
<detail>
<error xsi:type="namesp1:error">
<object xsi:type="xsd:string">alias_numbers</object>
</error>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
The request was the following:
<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/
">
<soap:Body>
<update_voip_account_subscriber>
<authentication>
<type xsi:type="xsd:string">admin</type>
<username xsi:type="xsd:string">xxXXxx</username>
<password xsi:type="xsd:string">xxXXxx</password>
</authentication>
<parameters>
<id xsi:type="xsd:int">5</id>
<subscriber>
<username xsi:type="xsd:string">u49xxxxxxxxxxx</username>
<domain xsi:type="xsd:string">xx.201.37.xx.</domain>
<alias_numbers xsi:type="xsd:E164NumberArray">
<item>
<cc xsi:type="xsd:int">49</cc>
<ac xsi:type="xsd:int">xxx</ac>
<sn xsi:type="xsd:int">xxxxxxxxx</sn>
</item>
</alias_numbers>
</subscriber>
</parameters>
</update_voip_account_subscriber>
</soap:Body>
</soap:Envelope>
The Programming language is PHP5, but the request is done by cURL, the xml
is formatted by proper functions.
Mario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20110807/aa59f083/attachment.html>
More information about the Spce-user
mailing list