You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Rajesh Mallah <ma...@gmail.com> on 2018/05/09 16:11:46 UTC
Order creation using webservices
Hi ,
I am working on an custom application that interacts with OFBiz
using webservices solely. I am able to do quite a lot using this approach
and now its time to create the orders in OFBiz system.
I am able to create the orders using the OOTB interface and using the
resources that are created using the Webservices interface.
Since order creation is a relatively complex process affecting too many
entities and too many UI screens on OOTB i am bit lost about the
proper approach.
Since the custom UI that i am creating for the enduser has limited
flexibility the parameters for order creation are in strict control , hence
i am looking for at least one pathway that shall lead to a successful
order creation. Eg there is only one payment choice and only one
shipping method to simplify the process.
suggestions are solicited.
regds
mallah.
Re: Order creation using webservices
Posted by Rajesh Mallah <ma...@gmail.com>.
Update:
This question was about a sales order creation from shopping basket items.
hence we have following info with us
1) product id
2) store id
3) qty
4) unit price
5) shipping method
6) payment method
and
almost all the pertinent info that are encountered while
ordering using the OOTB.
regds
mallah
On Wed, May 9, 2018 at 9:41 PM, Rajesh Mallah <ma...@gmail.com>
wrote:
>
> Hi ,
>
> I am working on an custom application that interacts with OFBiz
> using webservices solely. I am able to do quite a lot using this approach
> and now its time to create the orders in OFBiz system.
>
> I am able to create the orders using the OOTB interface and using the
> resources that are created using the Webservices interface.
>
> Since order creation is a relatively complex process affecting too many
> entities and too many UI screens on OOTB i am bit lost about the
> proper approach.
>
> Since the custom UI that i am creating for the enduser has limited
> flexibility the parameters for order creation are in strict control , hence
> i am looking for at least one pathway that shall lead to a successful
> order creation. Eg there is only one payment choice and only one
> shipping method to simplify the process.
>
> suggestions are solicited.
>
> regds
> mallah.
>
>
Re: Order creation using webservices
Posted by Mike <mz...@gmail.com>.
Thanks for posting good, working code.
On Thu, May 10, 2018 at 9:34 PM, Rajesh Mallah <ma...@gmail.com>
wrote:
> Hello All ,
>
> Finally it was possible to consume the JSON document
>
> https://pastebin.com/ZReF5bqg containing the order spec
>
> into the newly created Java Service
>
> https://pastebin.com/anCAxqiN
>
>
> regds
> mallah.
>
>
>
>
>
> On Thu, May 10, 2018 at 3:32 PM, Rajesh Mallah <ma...@gmail.com>
> wrote:
>
> >
> > I was able to create the order using Webservices . I just
> > created a copy of testCreateSalesOrder and modified a bit.
> >
> > I am now experimenting to use JSON to send the order information
> > from my non-java application and utilize org.json.* to retrieve the info
> > in the Java land.
> >
> > thanks for the hint again.
> >
> > regds
> > mallah.
> >
> >
> >
> >
> >
> > On Wed, May 9, 2018 at 11:28 PM, Rajesh Mallah <ma...@gmail.com>
> > wrote:
> >
> >> Looks promising thanks a ton Mr Pradeep !
> >>
> >> On Wed, May 9, 2018 at 11:01 PM, S K Pradeep Kumar <
> >> s.k.pradeepkumar@gmail.com> wrote:
> >>
> >>> Check this
> >>>
> >>> org\ofbiz\order\test\SalesOrderTest.java
> >>>
> >>>
> >>>
> >>> With regards,
> >>> S K Pradeep Kumar,
> >>> 9035009495
> >>>
> >>> On Wed, May 9, 2018 at 9:41 PM, Rajesh Mallah <mallah.rajesh@gmail.com
> >
> >>> wrote:
> >>>
> >>> > Hi ,
> >>> >
> >>> > I am working on an custom application that interacts with OFBiz
> >>> > using webservices solely. I am able to do quite a lot using this
> >>> approach
> >>> > and now its time to create the orders in OFBiz system.
> >>> >
> >>> > I am able to create the orders using the OOTB interface and using the
> >>> > resources that are created using the Webservices interface.
> >>> >
> >>> > Since order creation is a relatively complex process affecting too
> many
> >>> > entities and too many UI screens on OOTB i am bit lost about the
> >>> > proper approach.
> >>> >
> >>> > Since the custom UI that i am creating for the enduser has limited
> >>> > flexibility the parameters for order creation are in strict control ,
> >>> hence
> >>> > i am looking for at least one pathway that shall lead to a successful
> >>> > order creation. Eg there is only one payment choice and only one
> >>> > shipping method to simplify the process.
> >>> >
> >>> > suggestions are solicited.
> >>> >
> >>> > regds
> >>> > mallah.
> >>> >
> >>>
> >>
> >>
> >
>
Re: Order creation using webservices
Posted by Rajesh Mallah <ma...@gmail.com>.
Hello All ,
Finally it was possible to consume the JSON document
https://pastebin.com/ZReF5bqg containing the order spec
into the newly created Java Service
https://pastebin.com/anCAxqiN
regds
mallah.
On Thu, May 10, 2018 at 3:32 PM, Rajesh Mallah <ma...@gmail.com>
wrote:
>
> I was able to create the order using Webservices . I just
> created a copy of testCreateSalesOrder and modified a bit.
>
> I am now experimenting to use JSON to send the order information
> from my non-java application and utilize org.json.* to retrieve the info
> in the Java land.
>
> thanks for the hint again.
>
> regds
> mallah.
>
>
>
>
>
> On Wed, May 9, 2018 at 11:28 PM, Rajesh Mallah <ma...@gmail.com>
> wrote:
>
>> Looks promising thanks a ton Mr Pradeep !
>>
>> On Wed, May 9, 2018 at 11:01 PM, S K Pradeep Kumar <
>> s.k.pradeepkumar@gmail.com> wrote:
>>
>>> Check this
>>>
>>> org\ofbiz\order\test\SalesOrderTest.java
>>>
>>>
>>>
>>> With regards,
>>> S K Pradeep Kumar,
>>> 9035009495
>>>
>>> On Wed, May 9, 2018 at 9:41 PM, Rajesh Mallah <ma...@gmail.com>
>>> wrote:
>>>
>>> > Hi ,
>>> >
>>> > I am working on an custom application that interacts with OFBiz
>>> > using webservices solely. I am able to do quite a lot using this
>>> approach
>>> > and now its time to create the orders in OFBiz system.
>>> >
>>> > I am able to create the orders using the OOTB interface and using the
>>> > resources that are created using the Webservices interface.
>>> >
>>> > Since order creation is a relatively complex process affecting too many
>>> > entities and too many UI screens on OOTB i am bit lost about the
>>> > proper approach.
>>> >
>>> > Since the custom UI that i am creating for the enduser has limited
>>> > flexibility the parameters for order creation are in strict control ,
>>> hence
>>> > i am looking for at least one pathway that shall lead to a successful
>>> > order creation. Eg there is only one payment choice and only one
>>> > shipping method to simplify the process.
>>> >
>>> > suggestions are solicited.
>>> >
>>> > regds
>>> > mallah.
>>> >
>>>
>>
>>
>
Re: Order creation using webservices
Posted by Rajesh Mallah <ma...@gmail.com>.
I was able to create the order using Webservices . I just
created a copy of testCreateSalesOrder and modified a bit.
I am now experimenting to use JSON to send the order information
from my non-java application and utilize org.json.* to retrieve the info
in the Java land.
thanks for the hint again.
regds
mallah.
On Wed, May 9, 2018 at 11:28 PM, Rajesh Mallah <ma...@gmail.com>
wrote:
> Looks promising thanks a ton Mr Pradeep !
>
> On Wed, May 9, 2018 at 11:01 PM, S K Pradeep Kumar <
> s.k.pradeepkumar@gmail.com> wrote:
>
>> Check this
>>
>> org\ofbiz\order\test\SalesOrderTest.java
>>
>>
>>
>> With regards,
>> S K Pradeep Kumar,
>> 9035009495
>>
>> On Wed, May 9, 2018 at 9:41 PM, Rajesh Mallah <ma...@gmail.com>
>> wrote:
>>
>> > Hi ,
>> >
>> > I am working on an custom application that interacts with OFBiz
>> > using webservices solely. I am able to do quite a lot using this
>> approach
>> > and now its time to create the orders in OFBiz system.
>> >
>> > I am able to create the orders using the OOTB interface and using the
>> > resources that are created using the Webservices interface.
>> >
>> > Since order creation is a relatively complex process affecting too many
>> > entities and too many UI screens on OOTB i am bit lost about the
>> > proper approach.
>> >
>> > Since the custom UI that i am creating for the enduser has limited
>> > flexibility the parameters for order creation are in strict control ,
>> hence
>> > i am looking for at least one pathway that shall lead to a successful
>> > order creation. Eg there is only one payment choice and only one
>> > shipping method to simplify the process.
>> >
>> > suggestions are solicited.
>> >
>> > regds
>> > mallah.
>> >
>>
>
>
Re: Order creation using webservices
Posted by Rajesh Mallah <ma...@gmail.com>.
Hello Friends,
I am creating a new Web service that would create the order from a JSON
document.
What would be an appropriate class or package / procedure to place such
methods that shall survive upgrades to OFBiz ?
regds
mallah.
On Wed, May 9, 2018 at 11:28 PM, Rajesh Mallah <ma...@gmail.com>
wrote:
> Looks promising thanks a ton Mr Pradeep !
>
> On Wed, May 9, 2018 at 11:01 PM, S K Pradeep Kumar <
> s.k.pradeepkumar@gmail.com> wrote:
>
>> Check this
>>
>> org\ofbiz\order\test\SalesOrderTest.java
>>
>>
>>
>> With regards,
>> S K Pradeep Kumar,
>> 9035009495
>>
>> On Wed, May 9, 2018 at 9:41 PM, Rajesh Mallah <ma...@gmail.com>
>> wrote:
>>
>> > Hi ,
>> >
>> > I am working on an custom application that interacts with OFBiz
>> > using webservices solely. I am able to do quite a lot using this
>> approach
>> > and now its time to create the orders in OFBiz system.
>> >
>> > I am able to create the orders using the OOTB interface and using the
>> > resources that are created using the Webservices interface.
>> >
>> > Since order creation is a relatively complex process affecting too many
>> > entities and too many UI screens on OOTB i am bit lost about the
>> > proper approach.
>> >
>> > Since the custom UI that i am creating for the enduser has limited
>> > flexibility the parameters for order creation are in strict control ,
>> hence
>> > i am looking for at least one pathway that shall lead to a successful
>> > order creation. Eg there is only one payment choice and only one
>> > shipping method to simplify the process.
>> >
>> > suggestions are solicited.
>> >
>> > regds
>> > mallah.
>> >
>>
>
>
Re: Order creation using webservices
Posted by Rajesh Mallah <ma...@gmail.com>.
Looks promising thanks a ton Mr Pradeep !
On Wed, May 9, 2018 at 11:01 PM, S K Pradeep Kumar <
s.k.pradeepkumar@gmail.com> wrote:
> Check this
>
> org\ofbiz\order\test\SalesOrderTest.java
>
>
>
> With regards,
> S K Pradeep Kumar,
> 9035009495
>
> On Wed, May 9, 2018 at 9:41 PM, Rajesh Mallah <ma...@gmail.com>
> wrote:
>
> > Hi ,
> >
> > I am working on an custom application that interacts with OFBiz
> > using webservices solely. I am able to do quite a lot using this approach
> > and now its time to create the orders in OFBiz system.
> >
> > I am able to create the orders using the OOTB interface and using the
> > resources that are created using the Webservices interface.
> >
> > Since order creation is a relatively complex process affecting too many
> > entities and too many UI screens on OOTB i am bit lost about the
> > proper approach.
> >
> > Since the custom UI that i am creating for the enduser has limited
> > flexibility the parameters for order creation are in strict control ,
> hence
> > i am looking for at least one pathway that shall lead to a successful
> > order creation. Eg there is only one payment choice and only one
> > shipping method to simplify the process.
> >
> > suggestions are solicited.
> >
> > regds
> > mallah.
> >
>
Re: Order creation using webservices
Posted by S K Pradeep Kumar <s....@gmail.com>.
Check this
org\ofbiz\order\test\SalesOrderTest.java
With regards,
S K Pradeep Kumar,
9035009495
On Wed, May 9, 2018 at 9:41 PM, Rajesh Mallah <ma...@gmail.com>
wrote:
> Hi ,
>
> I am working on an custom application that interacts with OFBiz
> using webservices solely. I am able to do quite a lot using this approach
> and now its time to create the orders in OFBiz system.
>
> I am able to create the orders using the OOTB interface and using the
> resources that are created using the Webservices interface.
>
> Since order creation is a relatively complex process affecting too many
> entities and too many UI screens on OOTB i am bit lost about the
> proper approach.
>
> Since the custom UI that i am creating for the enduser has limited
> flexibility the parameters for order creation are in strict control , hence
> i am looking for at least one pathway that shall lead to a successful
> order creation. Eg there is only one payment choice and only one
> shipping method to simplify the process.
>
> suggestions are solicited.
>
> regds
> mallah.
>