Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

UpdateContactInfo Webservices Call

MarkPrivratsky
Contributor III

Hi all,

 

I'm trying to leverage the UpdateContactInfo soap call but can't get it to work.   Getting 400 Bad Request errors so something's off in the structure of my xml but I've tried everything I could find in the API guide and just by trying different combinations.  I use powershell for my API scripts and all my other commands are working fine.

 

Here is what my XML structure looks like in my call: 

 

<UpdateContactInfo xmlns="http://archer-tech.com/webservices/">
<sessionToken>$SessionID</sessionToken>
<userId>$UserID</userId>
<contactInfo>
     <ContactTypeId>7</ContactTypeId>
     <ContactSubTypeId>2</ContactSubTypeId>
     <ContactInfo>$EmailAddress</ContactInfo>
     <ContactDefault>true</ContactDefault>
</contactInfo>
</UpdateContactInfo>

 

Anyone else having issues with the UpdateContactInfo soap call or any other suggestions?

 

Thanks.

4 REPLIES 4

Ilya_Khen
Champion III

Try something like this for email:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <UpdateContactInfo xmlns="http://archer-tech.com/webservices/">
      <sessionToken>[SESSION_TOKEN]</sessionToken>
      <userId>[USER_ID]</userId>
      <ContactInfo>
        <ContactTypeId>7</ContactTypeId>
          <ContactInfo>[EMAIL]</ContactInfo>
          <ContactDefault>True</ContactDefault>
          <Id>[USER_ID]</Id>
          <ContactSubTypeId>2</ContactSubTypeId>
          <ContactSubTypeDesc>Business</ContactSubTypeDesc>
      </ContactInfo>
    </UpdateContactInfo>
  </soap:Body>
</soap:Envelope>

Tried what you posted and various other combinations of it but still get the 400 bad request errors.

Interesting, I used that in API template, and went fine.

You can try API template and see if it works in your environment at all. Maybe you have some issue in API node configuration.

https://community.rsa.com/docs/DOC-81721 

You're usng a POST ?

I'm assuming the session ID is for a user that has admin access to update the user contact info?