WEBWebUserCreate

 

WEBWebUserCreate

Initial Build 2008.01
xWeb Web Method
Response Type object

This method adds a new customer/user record. It is a very quick add for getting the customer into NetForum and can be used when minimal information is needed. The record can later be edited to add additional information. This method contains only the required fields to add a customer record for NetForum. If you need to add more information, see WEBIndividualInsert.

Parameters

oWebUser (WebUserType). A WebUser type.

Response

WebUserType of the newly added user, with additional properties like the <CurrentKey> and {[x|Customer.cst_recno}} which are created by NetForum during the insert.

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>df3d1644-ba3e-4dc7-8399-ae06ee6063e5</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBWebUserCreate>
<ns:oWebUser>
<ns:Individual>
<ns:ind_cst_key></ns:ind_cst_key>
<ns:ind_first_name>Bob</ns:ind_first_name>
<ns:ind_mid_name></ns:ind_mid_name>
<ns:ind_last_name>Smith</ns:ind_last_name>
<ns:ind_full_name_cp>Bob Smith</ns:ind_full_name_cp>
<ns:ind_token></ns:ind_token>
</ns:Individual>
<ns:Customer>
<ns:cst_recno></ns:cst_recno>
<ns:cst_web_login>bsmith</ns:cst_web_login>
<ns:cst_new_password>123</ns:cst_new_password>
<ns:cst_new_password_confirm>123</ns:cst_new_password_confirm>
</ns:Customer>
<ns:Email>
<ns:eml_address>bsmith@avectra.com</ns:eml_address>
</ns:Email>
<ns:Business_Address>
<ns:adr_city>McLean</ns:adr_city>
<ns:adr_state>VA</ns:adr_state>
<ns:adr_post_code>22102</ns:adr_post_code>
<ns:adr_country>UNITED STATES</ns:adr_country>
</ns:Business_Address>
<ns:Business_Phone>
<ns:phn_number>7035067000</ns:phn_number>
</ns:Business_Phone>
<ns:Business_Phone_XRef>
<ns:cph_extension></ns:cph_extension>
</ns:Business_Phone_XRef>
<ns:Business_Fax>
<ns:fax_number>7035067000</ns:fax_number>
</ns:Business_Fax>
<ns:Business_Fax_XRef>
<ns:cfx_extension></ns:cfx_extension>
</ns:Business_Fax_XRef>
</ns:oWebUser>
</ns:WEBWebUserCreate>
</soapenv:Body>
</soapenv:Envelope>

Sample Response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>df3d1644-ba3e-4dc7-8399-ae06ee6063e5</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBWebUserCreateResponse xmlns="http://www.avectra.com/2005/">
<WEBWebUserCreateResult>
<Individual>
<ind_cst_key>207d1a31-567e-4a97-ac21-a1923a092755</ind_cst_key>
<ind_first_name>Bob</ind_first_name>
<ind_last_name>Smith</ind_last_name>
<ind_full_name_cp>Bob Smith</ind_full_name_cp>
</Individual>
<Customer>
<cst_recno>82896</cst_recno>
<cst_web_login>bsmith</cst_web_login>
</Customer>
<Email>
<eml_address>bsmith@avectra.com</eml_address>
</Email>
<Business_Address>
<adr_city>McLean</adr_city>
<adr_state>VA</adr_state>
<adr_post_code>22102</adr_post_code>
<adr_country>UNITED STATES</adr_country>
</Business_Address>
<Business_Phone>
<phn_number>7035067000</phn_number>
</Business_Phone>
<Business_Fax>
<fax_number>7035067000</fax_number>
</Business_Fax>
</WEBWebUserCreateResult>
</WEBWebUserCreateResponse>
</soap:Body>
</soap:Envelope>

 

JSON Method

POST /xWeb/JSON/WEBWebUserCreate

DATA: JSON
{
    "WEBWebUserCreate": {
        "oWebUser": {
            "Individual": {
                "ind_first_name": "{{indFirstNameWebUserCreate}}",
                "ind_last_name": "{{indLastNameWebUserCreate}}"
            },
            "Customer": {
                "cst_new_password": "{{passwordWebUserCreate}}",
                "cst_new_password_confirm": "{{passwordWebUserCreate}}"
            },
            "Email": {
                "eml_address": "{{emlAddressWebUserCreate}}"
            },
            "Business_Address": {
                "adr_city": "{{adrCityWebUserCreate}}",
                "adr_state": "VA",
                "adr_post_code": "22102",
                "adr_country": "UNITED STATES"
            },
            "Business_Phone": {
                "phn_number": "{{phnNumberWebUserCreate}}"
            },
            "Business_Phone_XRef": {
                "cph_extension": []
            }
        }
    }
}

SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
{
    "WebUserType": {
        "CurrentKey": "6029e274-8233-43d3-9e83-664b08edfa5b",
        "Individual": {
            "ind_cst_key": "6029e274-8233-43d3-9e83-664b08edfa5b",
            "ind_first_name": "Jeffry",
            "ind_last_name": "Bruen",
            "ind_full_name_cp": "Jeffry Bruen"
        },
        "Customer": {
            "cst_recno": "7005"
        },
        "Email": {
            "eml_address": "Kylee.Hauck@example.net"
        },
        "Business_Address": {
            "adr_city": "Daly City",
            "adr_state": "VA",
            "adr_post_code": "22102",
            "adr_country": "UNITED STATES"
        },
        "Business_Phone_XRef": null,
        "Business_Phone": null,
        "Business_Fax_XRef": null,
        "Business_Fax": null
    }
}

 

Was this article helpful?
0 out of 0 found this helpful