XWeb:GetQuery sample6 Avectra netFORUM

This is how we can use xweb request and reponse.XWeb:GetQuery sample6 Avectra netFORUM

Request

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<m:AuthorizationToken xmlns:m="http://www.avectra.com/2005/">
<m:Token>04062038-9ee6-4f26-b5a0-443bf9ad21f4</m:Token>
</m:AuthorizationToken>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:GetQuery xmlns:m="http://www.avectra.com/2005/">
<m:szObjectName>Customer</m:szObjectName>
<m:szColumnList>*</m:szColumnList>
<m:szWhereClause>cst_key = 'f70c691e-4cdd-4abf-ab9d-ed9b7bc83525'</m:szWhereClause>
<m:szOrderBy></m:szOrderBy>
</m:GetQuery>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response

<?xml version="1.0" encoding="utf-8"?>
<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" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>66b97ecc-c3ba-4ab1-a1c2-ee2e261d73db</Token>
</AuthorizationToken>
<wsa:Action>http://www.avectra.com/2005/GetQueryResponse</wsa:Action>
<wsa:MessageID>uuid:e5c9ee76-196e-4a54-b08e-a035151e2376</wsa:MessageID>
<wsa:RelatesTo>uuid:2fdc7e32-c7ca-4ea5-aa2e-04ebfd196a74</wsa:RelatesTo>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-f4af76d0-6ca2-44de-ad51-a2091e22c57c">
<wsu:Created>2006-09-21T21:25:17Z</wsu:Created>
<wsu:Expires>2006-09-21T21:30:17Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<GetQueryResponse xmlns="http://www.avectra.com/2005/">
<GetQueryResult>
<CustomerObjects xsi:schemaLocation="http://www.avectra.com/2005/ Customer.xsd" recordReturn="1">
<CustomerObject>
<cst_key>f70c691e-4cdd-4abf-ab9d-ed9b7bc83525</cst_key>
<cst_type>Individual</cst_type>
<cst_name_cp>Steven Herbert</cst_name_cp>
<cst_sort_name_dn>Herbert Steven</cst_sort_name_dn>
<cst_ind_full_name_dn>Steven Herbert</cst_ind_full_name_dn>
<cst_org_name_dn xsi:nil="true"/>
<cst_ixo_title_dn xsi:nil="true"/>
<cst_pref_comm_meth xsi:nil="true"/>
<cst_bio xsi:nil="true"/>
<cst_add_date>07/24/2006</cst_add_date>
<cst_add_user>MagnetMail1</cst_add_user>
<cst_change_date>07/24/2006</cst_change_date>
<cst_change_user>MagnetMail1</cst_change_user>
<cst_delete_flag>0</cst_delete_flag>
<cst_recno>80614</cst_recno>
<cst_id>000080614I</cst_id>
<cst_key_ext>f70c691e-4cdd-4abf-ab9d-ed9b7bc83525</cst_key_ext>
<cst_email_text_only>0</cst_email_text_only>
<cst_credit_limit>0.00</cst_credit_limit>
<cst_src_code xsi:nil="true"/>
<cst_tax_exempt_flag>0</cst_tax_exempt_flag>
<cst_tax_id xsi:nil="true"/>
<cst_no_email_flag>0</cst_no_email_flag>
<cst_cxa_key xsi:nil="true"/>
<cst_eml_address_dn>[email protected]</cst_eml_address_dn>
<cst_cxa_billing_key xsi:nil="true"/>
<cst_eml_key>fb7e5895-95f2-4fba-b29c-913757fec8d3</cst_eml_key>
<cst_no_phone_flag>0</cst_no_phone_flag>
<cst_phn_number_complete_dn xsi:nil="true"/>
<cst_cph_key xsi:nil="true"/>
<cst_no_fax_flag>1</cst_no_fax_flag>
<cst_fax_number_complete_dn xsi:nil="true"/>
<cst_cfx_key xsi:nil="true"/>
<cst_ixo_key xsi:nil="true"/>
<cst_oldid xsi:nil="true"/>
<cst_no_web_flag>0</cst_no_web_flag>
<cst_url_code_dn xsi:nil="true"/>
<cst_member_flag>0</cst_member_flag>
<cst_parent_cst_key xsi:nil="true"/>
<cst_url_key xsi:nil="true"/>
<cst_no_msg_flag>1</cst_no_msg_flag>
<cst_msg_handle_dn xsi:nil="true"/>
<cst_web_login xsi:nil="true"/>
<cst_web_password xsi:nil="true"/>
<cst_msg_key xsi:nil="true"/>
<cst_entity_key xsi:nil="true"/>
<cst_web_start_date xsi:nil="true"/>
<cst_no_mail_flag>0</cst_no_mail_flag>
<cst_web_end_date xsi:nil="true"/>
<cst_web_force_password_change>0</cst_web_force_password_change>
<cst_web_login_disabled_flag>0</cst_web_login_disabled_flag>
<cst_comment xsi:nil="true"/>
<cst_credit_hold_flag>0</cst_credit_hold_flag>
<cst_credit_hold_reason xsi:nil="true"/>
<cst_web_forgot_password_status>0</cst_web_forgot_password_status>
<cst_old_cxa_key xsi:nil="true"/>
<cxa_cst_key xsi:nil="true"/>
<cxa_adr_key xsi:nil="true"/>
<cxa_add_date xsi:nil="true"/>
<cxa_add_user xsi:nil="true"/>
<cxa_change_date xsi:nil="true"/>
<cxa_change_user xsi:nil="true"/>
<cxa_delete_flag xsi:nil="true"/>
<cxa_key xsi:nil="true"/>
<cxa_key_ext xsi:nil="true"/>
<cxa_on_hold_flag xsi:nil="true"/>
<cxa_adh_key xsi:nil="true"/>
<cxa_seasonal_from_date xsi:nil="true"/>
<cxa_adt_key xsi:nil="true"/>
<cxa_seasonal_through_date xsi:nil="true"/>
<cxa_mailing_label xsi:nil="true"/>
<cxa_entity_key xsi:nil="true"/>
<cxa_mailing_label_html xsi:nil="true"/>
<cxa_on_hold_from xsi:nil="true"/>
<cxa_mail_stop xsi:nil="true"/>
<cxa_on_hold_through xsi:nil="true"/>
<adr_key xsi:nil="true"/>
<adr_cst_key_owner xsi:nil="true"/>
<adr_line1 xsi:nil="true"/>
<adr_line2 xsi:nil="true"/>
<adr_line3 xsi:nil="true"/>
<adr_city xsi:nil="true"/>
<adr_state xsi:nil="true"/>
<adr_post_code xsi:nil="true"/>
<adr_city_state_code xsi:nil="true"/>
<adr_country>UNITED STATES</adr_country>
<adr_intl_province xsi:nil="true"/>
<adr_county xsi:nil="true"/>
<adr_cong_dist xsi:nil="true"/>
<adr_state_house xsi:nil="true"/>
<adr_state_senate xsi:nil="true"/>
<adr_latitude xsi:nil="true"/>
<adr_longitude xsi:nil="true"/>
<adr_mailing_label xsi:nil="true"/>
<adr_mailing_label_html xsi:nil="true"/>
<adr_add_date xsi:nil="true"/>
<adr_add_user xsi:nil="true"/>
<adr_change_date xsi:nil="true"/>
<adr_change_user xsi:nil="true"/>
<adr_delete_flag xsi:nil="true"/>
<adr_key_ext xsi:nil="true"/>
<adr_bad_address_flag xsi:nil="true"/>
<adr_adb_key xsi:nil="true"/>
<adr_entity_key xsi:nil="true"/>
<org_cst_key xsi:nil="true"/>
<org_name xsi:nil="true"/>
<org_ogt_code xsi:nil="true"/>
<org_cst_key_ext xsi:nil="true"/>
<org_acronym xsi:nil="true"/>
<org_ind_cst_key xsi:nil="true"/>
<org_num_employee xsi:nil="true"/>
<org_annual_sales xsi:nil="true"/>
<org_annual_revenue xsi:nil="true"/>
<org_dnb_number xsi:nil="true"/>
<org_date_founded xsi:nil="true"/>
<org_num_years_in_business_cp xsi:nil="true"/>
<org_state_incorporated xsi:nil="true"/>
<org_num_location xsi:nil="true"/>
<org_annual_budget xsi:nil="true"/>
<org_popup xsi:nil="true"/>
<org_ownership_type xsi:nil="true"/>
<org_entity_key xsi:nil="true"/>
<org_add_date xsi:nil="true"/>
<org_nonprofit_flag xsi:nil="true"/>
<org_add_user xsi:nil="true"/>
<org_change_date xsi:nil="true"/>
<org_change_user xsi:nil="true"/>
<org_delete_flag xsi:nil="true"/>
</CustomerObject>
</CustomerObjects>
</GetQueryResult>
</GetQueryResponse>
</soap:Body>
</soap:Envelope>