Showing results for 
Search instead for 
Did you mean: 

CIM Hosted Page

Here we going to save customer profile using Customer Information Manager [CIM] . But we want to know whether there is any  hosting page at your side. so please clarify us regarding hosting page to save customer profile.
If there is any hosting page at your side. so please tell us how to implement to save customer profile? 
If there is no hosting page  please give some alternate solution to save customer profile



added services reference in visual studio but, not about create object for CustomerProfileAPI 

So you are not using the sample code? then just use whatever name you create the service reference with.

Thanks for the giving reply, here we are not implementing through soap but we are decided to go with xml.


But as you said that using “getHostedProfilePageRequest

We can access the but we are unable to understand how to send the request of getHostedProfilePageRequest using xml through coding. So please let us know the solution.

There is an example on page 66 on the CIM_XML_guide.pdf

We already referred your “CIM_XML_guide.pdf” page 66, we are unable to understated how to implement the code in c# (code behind) for xml which was shown in page no 66,


Below is Aspx code snippet were we have implemented


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CIMSample.aspx.cs" Inherits="CIMSample" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">

<head runat="server">





    <form method="post" action="" id="formAuthorizeNetPage"

    style="display: none;">

    <input type="hidden" name="Token" value="pfGaUNntoTxZYeqqYDjGCQ4qyCHcsXGXLJ2i7MPCEiH6CH5n5qKqcl8EBiTClxu01B


7rInSrn2MWlM6f2xd7aRu1XBn0WXoPxK1j9FMGX2CNCoCBp3cOXB7" />


    <button type="button" onclick="document.getElementById(


        Manage my payment and shipping information</button>





But I haven’t implemented any code for code behind file that is .cs file in c# and as we are a beginner we are not able to understand to send the xml request to your api and also we are unable to find the “getHostedProfilePageRequest”.


How to work with the hosted page for creating customer profile.

In the code behind, use HttpWebRequest to send the xml to 

read the respone to get the token and put it on the input name="Token" value.

Thanks for the giving reply


Code behind the code looks like as below:

string url;

url = @"";

WebRequest webRequest = WebRequest.Create(url);

HttpWebResponse httpWebResponse = webRequest.GetResponse() as HttpWebResponse;

Stream dataStream = httpWebResponse.GetResponseStream();

StreamReader streamReader = new StreamReader(dataStream);

String responseFromServer = streamReader.ReadToEnd();


It is response we getting unable to find the token


<?xml version="1.0" encoding="utf-8"?>

<ErrorResponse xmlns:xsi="" xmlns:xsd="" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">





      <text>The content-type specified is not supported.</text>





Please solved problem as soon as possible.

Thanks for the giving reply,


Input XML:

<?xml version="1.0" encoding="utf-8"?>

<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">












<settingValue>Continue to xtg.</settingValue>









Output XML:

<?xml version="1.0" encoding="utf-8"?>

<ErrorResponse xmlns:xsi="" xmlns:xsd="" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">





      <text>The element 'getHostedProfilePageRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'hostedProfileSettings' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'refId, customerProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.</text>




The XML guide said customerProfileId is required.