Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

PhoneList SOAP (5 Comments)

$
0
0

Topic by Bruno Vasconcellos

Hello!!! 

I'm trying to create a contact by SOAP.

But when I added the field 'Phone', occured one error:

 

"RightNowSyncService|urn:wsdl.ws.rightnow.com/v1_2 failed

Found out-of-order or unrecognized node Number|urn:objects.ws.rightnow.com/v1_2 while parsing node of type Phone|urn:objects.ws.rightnow.com/v1_2
Failed in constructing object PhoneList : NULL input can not be deserialized
Failed in setting value for element PhoneList array position 0 of object PhoneList
Failure in setting value for object Contact element Phones of type objects_ws_rightnow_com_v1_2::PhoneList
Failed in constructing object CreateMsg : NULL input can not be deserialized
Failed in setting value for element RNObjects array position 0 of object CreateMsg
Failure in setting value for object Create element Create of type messages_ws_rightnow_com_v1_2::CreateMsg
NULL returned from the Create deserializer due to missing or invalid XML"
 
 

I wrote the 'Phones' like 'Emails' structure:

 

<ns7:Create xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
            <ns7:RNObjects xmlns:ns4="urn:objects.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:Contact">
                <ns4:Emails>
                    <ns4:EmailList action="add">
                        <ns4:Address>email@email.com</ns4:Address>
                        <ns4:AddressType>
                            <ID xmlns="urn:base.ws.rightnow.com/v1_2" id="0" />
                        </ns4:AddressType>
                    </ns4:EmailList>
                </ns4:Emails>
<ns4:Phones>
<ns4:PhoneList action="add">
<ns4:PhoneType>
<ID xmlns="urn:base.ws.rightnow.com/v1_2" id="0" />
</ns4:PhoneType>
<ns4:Number>12345</ns4:Number>
</ns4:PhoneList>
</ns4:Phones>
                <ns4:Name>
                    <ns4:First>Name Here</ns4:First>
   </ns4:Name>
<ns4:Organization>
<ID xmlns="urn:base.ws.rightnow.com/v1_2" id="12" />
</ns4:Organization>
<ns4:Title>Diretor</ns4:Title>
           </ns7:RNObjects>
            <ns7:ProcessingOptions>
                <ns7:SuppressExternalEvents>false</ns7:SuppressExternalEvents>
                <ns7:SuppressRules>false</ns7:SuppressRules>
            </ns7:ProcessingOptions>
        </ns7:Create>
 
 
I tried with LookUpName too, but didn't work:
 
<ns4:Phones>
<ns4:PhoneList action="add">
<ns4:PhoneType>
<Name xmlns="urn:base.ws.rightnow.com/v1_2">Mobile Phone</Name>
</ns4:PhoneType>
<ns4:Number>12345</ns4:Number>
</ns4:PhoneList>
</ns4:Phones>
 
 
I Want to set "Office Phone" and "Mobile Phone" in contact.

Anyone know WHAT am I doing wrong? 
 
Thank you very much.

Bruno Vasconcellos
 

Viewing all articles
Browse latest Browse all 2504

Trending Articles