Service Interaction Question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Service Interaction Question

bsanders1979
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

Reply | Threaded
Open this post in threaded view
|

Re: Service Interaction Question

Vince Clark
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" <[hidden email]>
To: [hidden email]
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