GBSWebService
Click here for a complete list of operations.
Add
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /CGSWebService.asmx HTTP/1.1 Host: www.cgsapi.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.GBSapi.com/Add" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <Add xmlns="http://www.GBSapi.com/"> <Language_Code>string</Language_Code> <Country_Code>string</Country_Code> <State_Province_Code>string</State_Province_Code> <City_ID>int</City_ID> <Location_ID>int</Location_ID> <Name>string</Name> <Additional_Info>string</Additional_Info> <Hours>string</Hours> <Address_Line1>string</Address_Line1> <Address_Line2>string</Address_Line2> <Postal_Code>string</Postal_Code> <Phone>string</Phone> <Email_Address>string</Email_Address> <Contact_Email_Address>string</Contact_Email_Address> <WebSite>string</WebSite> <Open_Status>boolean</Open_Status> <Attribute_Code_List>string</Attribute_Code_List> <Submitter_Email>string</Submitter_Email> <Latitude>double</Latitude> <Longitude>double</Longitude> <Other_Change>string</Other_Change> <NewCityLatitude>double</NewCityLatitude> <NewCityLongitude>double</NewCityLongitude> <NewCityName>string</NewCityName> </Add> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AddResponse xmlns="http://www.GBSapi.com/" /> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /CGSWebService.asmx HTTP/1.1 Host: www.cgsapi.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <Add xmlns="http://www.GBSapi.com/"> <Language_Code>string</Language_Code> <Country_Code>string</Country_Code> <State_Province_Code>string</State_Province_Code> <City_ID>int</City_ID> <Location_ID>int</Location_ID> <Name>string</Name> <Additional_Info>string</Additional_Info> <Hours>string</Hours> <Address_Line1>string</Address_Line1> <Address_Line2>string</Address_Line2> <Postal_Code>string</Postal_Code> <Phone>string</Phone> <Email_Address>string</Email_Address> <Contact_Email_Address>string</Contact_Email_Address> <WebSite>string</WebSite> <Open_Status>boolean</Open_Status> <Attribute_Code_List>string</Attribute_Code_List> <Submitter_Email>string</Submitter_Email> <Latitude>double</Latitude> <Longitude>double</Longitude> <Other_Change>string</Other_Change> <NewCityLatitude>double</NewCityLatitude> <NewCityLongitude>double</NewCityLongitude> <NewCityName>string</NewCityName> </Add> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AddResponse xmlns="http://www.GBSapi.com/" /> </soap12:Body> </soap12:Envelope>