Hi James,

I am using the following code:

                $arguments['szObjectName'] = 'CoalitionContact';
		
		if ($value['form_key'] == 'first_name') {
			$arguments['gc1_first_name'] = $submission->data[$key]['value'][0];
		}

                $coalition_contact_object = netforum_facade_object_parameters('CoalitionContact', $arguments);
		$response = netforum_xweb_request('InsertFacadeObject', $coalition_contact_object, '1 min');

The request fails, and this is logged in watchdog:

Could not get response to InsertFacadeObject request: System.Web.Services.Protocols.SoapException: Object reference not set to an instance of an object. at Avectra.netForum.xWeb.xWebSecure.netForumXMLSecure.InsertFacadeObject(String szObjectName, XmlNode oNode).

Any idea?

Comments

kevinquillen’s picture

Status: Active » Fixed
james.michael-hill’s picture

Looking at my notes it appears that calling

   netforum_xweb_request('InsertFacadeObject',array('szObjectName'=>'CoalitionContact', 'oNode'=>$coalition_contact_object)); 

would work better. I last tested that on an early version of xWeb but I doubt that it has changed significantly.

kevinquillen’s picture

Yeah, I got mixed up. I've got it working now, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.