You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "Sanders, Brian" <BS...@connextions.com> on 2009/02/12 22:40:38 UTC

Service Interaction Question

Is it possible to make it so that I can post data to a service without
having to encapsulate the body in a SOAP envelope? I know that the .Net
framework supports it, so it's obviously feasible. Thanks.

 

Brian Sanders

Application Support Analyst


Re: Service Interaction Question

Posted by "Vince M. Clark" <vc...@globalera.com>.
Brian 

You can define a request map in the controller that calls an event. Here is an example of how I use this. 
We have a form on our website that is static html (it is not rendered by OFiz.) But the form action calls an OFBiz URL, for example: 
http://www.globalera.com/ge/control/webFormSubmit 
The controller in our custom component calls an event, which we have created as a service. Our service is mostly a wrapper that calls the createLead service. 
Upon success the controller just redirects back to a thank you page on our website. So OFBiz never handles the view, just accepts the request, calls a service, and redirects. 

Hope this helps. 

----- Original Message ----- 
From: "Brian Sanders" <BS...@connextions.com> 
To: user@ofbiz.apache.org 
Sent: Thursday, February 12, 2009 2:40:38 PM (GMT-0700) America/Denver 
Subject: Service Interaction Question 

Is it possible to make it so that I can post data to a service without 
having to encapsulate the body in a SOAP envelope? I know that the .Net 
framework supports it, so it's obviously feasible. Thanks. 



Brian Sanders 

Application Support Analyst