need help on party group
Hi All, I want to create a party group, with contact information, which will have some parties (users), and these party group users should also have their own individual contact information. Like - Party Group -> CompanyABC (contact information of the company, lets say cont...@companyabc.com) and CompanyABC will have Party -> User1 - with their their own contact information (for eg. us...@companyabc.com) Party -> User2 (us...@companyabc.com) What's happening is when I create a party group and assign a party user to it, the party group contact info is there, but the party status is set to PARTY_DISABLED, why ?, and all the party contact information is lost ? How should I achieve the above scenario ? Thanks, Abdullah
Re: Dealing with ESAPI in CMS
I am storing a very large JSON string in the database using the CMS. Am I right in understanding that because the createTextContent service does not have an "allowHtml" attribute on the textData field set to "none" that in ModelService.validate method it is the StringUtil.checkStringForHtmlStrictNone call that is encoding the double quotes that are in the string? What would setting allowHtml to "safe" do? Still encode? If this is the case, do we have any options other than writing different versions of content persisting services to handle the case where we do not want encoding to happen? -Al
Re: Dealing with ESAPI in CMS
Great, cool. Hopefully the new size (10) should fix that for you. Thanks for reporting it, and of course if you run into anything else please do write it up again. I'm trying to keep an eye on this stuff in particular and be around to fix things since this sort of low-level change tends to impact a lot and causes random problems all over... :( -David On Feb 23, 2009, at 9:29 PM, Al Byers wrote: I was being too general. I was not uploading images. I just used createTextContent and it failed because the limit was set too low. I saw how to fix that with maxInputSize and was just asking the question if there were more granular ways to deal with the problem. -Al On Mon, Feb 23, 2009 at 5:30 PM, David E Jones wrote: Could you be more specific? In other words, which part of the application were you using and what was the error message that you got? You mentioned a problem uploading images... which baffles me the most because the ESAPI changes are _only_ for String attributes on services. What was the error that you got for that? More details would be really helpful about the specific issue you're running into. Beyond that as a generality (possibly not related to what you're running into?), I agree that we should leave the default pretty high, and I've just committed a change that does that. -David On Feb 23, 2009, at 4:52 PM, Al Byers wrote: I guess one of the first places that we will run into ESAPI affects is in content management when we try to store images and the like that are larger than the default "maxInputSize" = 5000 specified in the antisamy- esapi.xml file. What would be the best approach to dealing with this? 1. Just modify the maxInputSize value? I may want to limit files that are uploaded, but not content that is persisted some other way. 2. In that case do I override the createDataText service (which would mean overriding the "createTextContent" service)? Are there any other options I am missing like specifically changing the value of allowHTML (if that were set to "any" there would be no content limits, right?) for a specific service call? Thanks, -Al
Re: Dealing with ESAPI in CMS
I was being too general. I was not uploading images. I just used createTextContent and it failed because the limit was set too low. I saw how to fix that with maxInputSize and was just asking the question if there were more granular ways to deal with the problem. -Al On Mon, Feb 23, 2009 at 5:30 PM, David E Jones wrote: > > Could you be more specific? In other words, which part of the application > were you using and what was the error message that you got? > > You mentioned a problem uploading images... which baffles me the most > because the ESAPI changes are _only_ for String attributes on services. What > was the error that you got for that? > > More details would be really helpful about the specific issue you're > running into. Beyond that as a generality (possibly not related to what > you're running into?), I agree that we should leave the default pretty high, > and I've just committed a change that does that. > > -David > > > > On Feb 23, 2009, at 4:52 PM, Al Byers wrote: > > I guess one of the first places that we will run into ESAPI affects is in >> content management when we try to store images and the like that are >> larger >> than the default "maxInputSize" = 5000 specified in the antisamy-esapi.xml >> file. >> >> What would be the best approach to dealing with this? >> >> 1. Just modify the maxInputSize value? I may want to limit files that are >> uploaded, but not content that is persisted some other way. >> >> 2. In that case do I override the createDataText service (which would mean >> overriding the "createTextContent" service)? >> >> Are there any other options I am missing like specifically changing the >> value of allowHTML (if that were set to "any" there would be no content >> limits, right?) for a specific service call? >> >> Thanks, >> -Al >> > >
Re: Cart and same Product Id but different configuration
Hi, The problem is with the same configuration OPTION, when its component is virtual. *** Example with Product PIZZA and "select the toppings" question : _ I add to cart one with Pepper : type GREEN _ I add to cart one with Pepper : type HOT The cart displays only one reference fot these two different products. Eric - Original Message - From: "Jacques Le Roux" To: Sent: Sunday, February 15, 2009 3:05 PM Subject: Re: Cart and same Product Id but different configuration Hi Eric, No problem like that OOTB. You can check on alternate server where I have created an order WSCO1 Jacques From: "Eric DE MAULDE" Hi, When a customer put into the cart different configurations from the same product (same product ID) The cart doesn't differenciate products. For the cart it's the same refence and line. Do you have the same problem ? An idea ? Thanks Eric
Re: Dealing with ESAPI in CMS
Could you be more specific? In other words, which part of the application were you using and what was the error message that you got? You mentioned a problem uploading images... which baffles me the most because the ESAPI changes are _only_ for String attributes on services. What was the error that you got for that? More details would be really helpful about the specific issue you're running into. Beyond that as a generality (possibly not related to what you're running into?), I agree that we should leave the default pretty high, and I've just committed a change that does that. -David On Feb 23, 2009, at 4:52 PM, Al Byers wrote: I guess one of the first places that we will run into ESAPI affects is in content management when we try to store images and the like that are larger than the default "maxInputSize" = 5000 specified in the antisamy- esapi.xml file. What would be the best approach to dealing with this? 1. Just modify the maxInputSize value? I may want to limit files that are uploaded, but not content that is persisted some other way. 2. In that case do I override the createDataText service (which would mean overriding the "createTextContent" service)? Are there any other options I am missing like specifically changing the value of allowHTML (if that were set to "any" there would be no content limits, right?) for a specific service call? Thanks, -Al
Dealing with ESAPI in CMS
I guess one of the first places that we will run into ESAPI affects is in content management when we try to store images and the like that are larger than the default "maxInputSize" = 5000 specified in the antisamy-esapi.xml file. What would be the best approach to dealing with this? 1. Just modify the maxInputSize value? I may want to limit files that are uploaded, but not content that is persisted some other way. 2. In that case do I override the createDataText service (which would mean overriding the "createTextContent" service)? Are there any other options I am missing like specifically changing the value of allowHTML (if that were set to "any" there would be no content limits, right?) for a specific service call? Thanks, -Al
Re: multilingual Sub-content and alternate locale
Yes, I know. I will look at it soon... Jacques From: "masionas" Unfortunately it does not appear to work. jacques.le.roux wrote: Follow the same scheme using subdivisions. It should work (never testesd) Jacques -- View this message in context: http://www.nabble.com/multilingual-Sub-content-and-alternate-locale-tp20953155p22170534.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: multilingual Sub-content and alternate locale
Unfortunately it does not appear to work. jacques.le.roux wrote: > > Follow the same scheme using subdivisions. It should work (never testesd) > > Jacques > > -- View this message in context: http://www.nabble.com/multilingual-Sub-content-and-alternate-locale-tp20953155p22170534.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Using Axis w/ OFBiz
Maybe we're getting confused by terminology... I wouldn't consider calling an OFBiz service through SOAP a way to "have access natively to OFBiz services". The whole point of SOAP is to NOT have any sort of "native" or "in-container" interaction with another system. On the other hand if you are running your code in the same container as the rest of OFBiz, why not using something that is easier, faster, less code, more flexibility, and less problems with object types, etc? If you're in the same container, you don't even have to use the RemoteDispatcher (which is what I'd recommend if you are writing something that can be OFBiz-aware as it allows you to call services running remotely and treat them as if they were running locally. However, if you're in-container you can get a LocalDispatcher instance and do a real "native" call that avoids the overhead of serialization, going through the network interface (even if it is on the same machine it is much slower), etc. -David On Feb 22, 2009, at 4:49 PM, Vince M. Clark wrote: David - we are running Axis within the OFBiz container to have access natively to OFBiz services. We are not using OFBiz to render the UI. Basically we want to consume all the ecommerce functionality, but do it thru web services so we can build our interface using PHP. - Original Message - From: "David E Jones" To: user@ofbiz.apache.org Sent: Sunday, February 22, 2009 4:51:16 PM (GMT-0700) America/Denver Subject: Re: Using Axis w/ OFBiz If you're running in-container, why use web services? As for the ShoppingCartEvents.getCartObject() method... is the request you are passing to it in the web session of the user? No, it is in the web session of the SOAP service... -David On Feb 22, 2009, at 12:36 PM, atoner wrote: Hi. I am trying to expose services in OFBiz through Axis2 deployed in the same container. Basically I am trying to use a Symfony front-end to make SOAP calls to perform functions such as adding an item to a shopping cart or retrieving shopping cart contents. I am doing this by writing a few (what I thought would be) simple SOAP services in Axis to accomplish this. But I am having a lot of problems and haven’t found much in the mailing list archives or on the forums which helps. I am able to call the SOAP services, the problem is using the OFBiz internals within the services. For instance, calling ShoppingCartEvents.getCartObject() always returns a null pointer. Perhaps I am just looking in the wrong place. Could anyone steer me in the direction of how I would go about creating and then adding a product/item to a shopping cart and getting its contents? This is the current code I have: public String addItemToCart( String productId ) { MessageContext msgCtx = MessageContext.getCurrentMessageContext(); HttpServletRequest request = (HttpServletRequest) msgCtx.getProperty( "transport.http.servletRequest" ); Locale locale = UtilHttp.getLocale(request); ShoppingCart shoppingCart = ShoppingCartEvents.getCartObject( request, locale, "USD" ); return (String) shoppingCart.getOrderType(); } Thanks! -- View this message in context: http://www.nabble.com/Using-Axis-w--OFBiz-tp22150583p22150583.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to expose Web Service of OFBiz ?
This helps, thank you. Your example goes further than the one in the how to. Could you shed some light on this scenario? We want to use all the shopping cart functionality and are struggling with how to put all the pieces together. If I use OFBiz ecommerce as a guide and trace thru the code I see that from the ecommerce site if I click "add to cart" it calls a request map called "additem" in the controller. That request map calls the following event: which is not defined as a service. So we are a bit confused as to how we can mimick the shopping cart functionality thru web services. Should we call ShoppingCartEvents.addToCart() directly from our java class in Axis, and then use other methods defined as services, such as ShoppingCartServices.getShoppingCartData() to return up the stack? - Original Message - From: "Alfredo Rueda" To: user@ofbiz.apache.org Sent: Monday, February 23, 2009 8:50:22 AM (GMT-0700) America/Denver Subject: Re: How to expose Web Service of OFBiz ? OK, I will be glad to help you, but please could you suggest me which Ofbiz service you want to export? I'm working with OpenTaps, so I don't know If OpenTaps will also have your web service included in their distro (OpenTaps is built upon Ofbiz??) Some example: GenericDelegator delegator = GenericDelegator.getGenericDelegator("default"); LocalDispatcher dispatcher = GenericDispatcher.getLocalDispatcher("default",delegator); GenericValue admin = null; try { admin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", "admin")); } catch (GenericEntityException e1) { e1.printStackTrace(); } Map result = null; Object[] params = { "login.username", un_username, "login.password", un_password, "domini", un_domini, (more params) "estat", un_estat, "ip", una_ip, "userLogin", admin }; try { result = dispatcher.runSync("put here the name of your ofbiz service", UtilMisc.toMap(params)); } catch (GenericServiceException e) { e.printStackTrace(); } // Now get the result using result variable Hope that helps! Vince Clark wrote: > > OK that makes sense. Yes I agree it would not make sense to publish custom > services you have written for a customer. But examples of OFBiz standard > services being exported would be very helpful, along with the directory > structure, supporting files, etc. for deploying as an OFBiz component. For > example, did you deploy the entire binary distribution, or just axis2.war? > > A jira issue that explains your solution along with a patch would be > fantastic! Before doing that, would you mind just replying to this thread > with a code sample showing the call to a standard OFBiz service and how > you are dealing with the results? It would be very timely as we are > struggling with this very thing right now. > > - Original Message - > From: "Alfredo Rueda" > To: user@ofbiz.apache.org > Sent: Monday, February 23, 2009 8:23:39 AM (GMT-0700) America/Denver > Subject: Re: How to expose Web Service of OFBiz ? > > > Hello Vince, > > Yes, I have deployed Axis2 as its own OFBiz component. > > "The example code > will be a java file that exports two Ofbiz Services that come with Ofbiz > Distribution (now I'm exporting customer specific Ofbiz Services, that is > why it's nonsense to publish this java file.)" > > I meant that it's nonsense to publish an example in which I export > customer > specific ofbiz services, because I have to provide also a lot of code that > the customer specific ofbiz service relies on, for instance, ofbiz service > minilang implementation, lot of subservices, views entities, etc, etc, > etc. > > The purpose is just to show how to export ofbiz services that use complex > type parameters, so why not use as an example standard ofbiz services that > comes with Ofbiz Distribution? This was the only thing I tried to explain > before :-) > > Regards, > > Alfredo > > > > > > Vince Clark wrote: >> >> Alfredo >> >> So to be clear, you have deployed Axis2 as its own OFBiz component? Or >> are >> you still using the approach of deploying the war file under an existing >> webapp directory in another component? >> >> A patch would be very helpful. Not sure why you think it is "nonsense." >> Working examples are extremely helpful to the community. Especially in >> new >> areas like this. >> >> To submit a patch you must create an account on Jira, then create an >> issue >> and attach the patch file. >> >> Looking forward to seeing what you have done! >> >> - Original Message - >> From: "Alfredo Rueda" >> To: user@ofbiz.apache.org >> Sent: Monday, February 23, 2009 5:17:53 AM (GMT-0700) America/Denver >> Subject: Re: How to expose Web Service of OFBiz ? >> >> >> Hello Jacques! >> >> The Axis2 Ofbiz Component is simply an Ofbiz Component that has: >> >> 1. Axis2 1.4 Distribution stored in a subdirectory. >> 2. The Ofbiz build system
Re: paypal IPN causes security error when creating payment
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 actually would suggest a Secas off of create customer that sets the security the way he wants. Hansen sent the following on 2/23/2009 11:03 AM: > It looks like a bug. To resolve it, just add the following parameter and > value when calling createPaymentFromPreference (line 493 of > PayPalEvents.java). > paymentFromId=userLogin.getString("partyId") > > > BJ Freeman wrote: > here is what I see > these Methods are meant to allow a party to update their profile. > you could create a customerGroup > and put the security permission under that, then assign the > customergroup to the parties login. > Unless you want only your staff to update it. > the way it is setup now you staff are the only ones to Create and Update > CC info. > However this should have nothing to do with IPN process once the CC is > created. > > > > Hansen Wang sent the following on 2/5/2009 2:25 PM: Yes. That is exactly where the problem is. The exception did not happen after I added the user to the ORDERENTRY group. But this is not a solution because a regular customer can not have the permissions in the group. Looks like have to change the code to switch the user when executing the related code block. What would you recommend to do? Thanks. Hansen On Thu, Feb 5, 2009 at 2:41 PM, BJ Freeman wrote: I did a quick review of the code the only two security groups that have this permission are the ORDERENTRY and ORDERPURCH This means if the user is not a order taker or purchasing agent and have these permission it will not work. your error orginated from PaymentMethodServices.java need more information about you senario to help any more. BJ Freeman sent the following on 2/5/2009 1:01 PM: > release4 is the most stable. however they may be bugs that have not been >>> found. >>> >>> Hansen Wang sent the following on 2/5/2009 12:48 PM: I use release4 trunk. My presumption is that paypalIPN works out of the box for the release I am using. Thanks, Hansen On Thu, Feb 5, 2009 at 1:40 PM, BJ Freeman wrote: this is an ofbiz message saying the user does not have PAY_INFO_CREATE permissions. my guess is that the code is not use the "system" user in running this code. it is is then the security permissions have to assigned to the system user. it seems we have lost the ability to assign permissions to groups in the current version. Hansen Wang sent the following on 2/5/2009 12:23 PM: >>> The following exception happened when I received an paypal IPN for >>> a sales >>> order. >>> >>> accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml#createPayment]]: >>> ; [Security Error : To Create a Payment you must either be the to >>> or from >>> party or have the PAY_INFO_CREATE or PAY_INFO_ADMIN permissions.] >>> >>> The order was placed by a registered user and the IPN was sent to >>> the server >>> right after the order was submitted. >>> >>> If anyone knows the root cause, please let me know. That would >>> save me some >>> time tracing the source code. >>> >>> Thanks, >>> Hansen >>> >> >> -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJovXXrP3NbaWWqE4RAhB0AJ0dc0dE0DZob+Wt05C9EBjbcrkEywCfVfmZ mMbqdJqgdRgH5e8cdcFtZ9I= =BYvq -END PGP SIGNATURE-
Re: paypal IPN causes security error when creating payment
It looks like a bug. To resolve it, just add the following parameter and value when calling createPaymentFromPreference (line 493 of PayPalEvents.java). paymentFromId=userLogin.getString("partyId") BJ Freeman wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > here is what I see > these Methods are meant to allow a party to update their profile. > you could create a customerGroup > and put the security permission under that, then assign the > customergroup to the parties login. > Unless you want only your staff to update it. > the way it is setup now you staff are the only ones to Create and Update > CC info. > However this should have nothing to do with IPN process once the CC is > created. > > > > Hansen Wang sent the following on 2/5/2009 2:25 PM: >> Yes. That is exactly where the problem is. The exception did not happen >> after I added the user to the ORDERENTRY group. But this is not a >> solution >> because a regular customer can not have the permissions in the group. >> Looks >> like have to change the code to switch the user when executing the >> related >> code block. What would you recommend to do? >> >> Thanks. >> Hansen >> >> >> On Thu, Feb 5, 2009 at 2:41 PM, BJ Freeman wrote: >> >> I did a quick review of the code >> the only two security groups that have this permission are the >> ORDERENTRY and ORDERPURCH >> This means if the user is not a order taker or purchasing agent and have >> these permission it will not work. >> your error orginated from >> PaymentMethodServices.java >> >> need more information about you senario to help any more. >> >> >> BJ Freeman sent the following on 2/5/2009 1:01 PM: >> > release4 is the most stable. however they may be bugs that have not >> been > found. > > Hansen Wang sent the following on 2/5/2009 12:48 PM: >> I use release4 trunk. My presumption is that paypalIPN works out of >> the >> box >> for the release I am using. >> Thanks, >> Hansen >> On Thu, Feb 5, 2009 at 1:40 PM, BJ Freeman >> wrote: >> this is an ofbiz message saying the user does not have >> PAY_INFO_CREATE >> permissions. >> my guess is that the code is not use the "system" user in running >> this >> code. it is is then the security permissions have to assigned to the >> system user. >> it seems we have lost the ability to assign permissions to groups in >> the >> current version. > >> Hansen Wang sent the following on 2/5/2009 12:23 PM: > The following exception happened when I received an paypal IPN for > a >> sales > order. > > >> accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml#createPayment]]: > ; [Security Error : To Create a Payment you must either be the to > or >> from > party or have the PAY_INFO_CREATE or PAY_INFO_ADMIN permissions.] > > The order was placed by a registered user and the IPN was sent to > the >> server > right after the order was submitted. > > If anyone knows the root cause, please let me know. That would > save >> me >> some > time tracing the source code. > > Thanks, > Hansen > >>> > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.6 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFJi25UrP3NbaWWqE4RAl95AKDHnl7DnAHG/jYWJ1M4qyId7ytTcwCglyAS > alB6qU2t2wEooiT5YASoZTI= > =wGYC > -END PGP SIGNATURE- > > -- View this message in context: http://www.nabble.com/paypal-IPN-causes-security-error-when-creating-payment-tp21860344p22167714.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Screen-Widget enforce non-empty fields
All, Is there an easy way to enforce a non-empty fields in the screen-widget form without using a complex service like createCustomer When it comes to drop-down you can allow-empty to false or true. What about other fields? Jacek
Re: New Release Branch
Personally I'd like to see all security issues solved before a new release. There also are some other things I have not in head just right now (Colors and localisation for the calendar is one of them) Anyway if we are sure we will be able to fix all security issues before freezing this release (hey, I did not say 9.3 ;o) I think it should be ok. By this last sentence I mean we may create a branch in march 2009. But this will not imply that the release will be numbered 9.3. Remember Ubuntu 6.06 should have been 6.04 ... Jacques From: "Bruno Busco" Why postpone it? Will we not be able to close this in february/march? https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310500&fixfor=12313602&resolution=-1&sorter/field=issuekey&sorter/order=DESC -Bruno 2009/2/23 Jacques Le Roux : In Ubuntu world they use LTS concept (Long Time Support) which means 5 (yes five!) years of guaranteed support on these specific versions (there are already 2 of them : 6.06 and 8.04). Of course OFBiz is not an OS and I think we will never support a release 5 years (how could we do with the lack of manpower we still have despite of all wonderful efforts we have seen taking place since the beginning of this project). So I guess we will simply have releases (or versions, like 9.3, but I guess we will postpone its release, hence the number will change) and the trunk as it's already done. In one word a version will be either trunk.releaseNumber either versionNumber.releaseNumber (like 9.3.99) Note that the footer shows already this information if you run the ant svninfo target after your build If we are all ok with this description (David?) I could add this to http://docs.ofbiz.org/display/OFBADMIN/Release+Plan And I think we should at least update title in http://docs.ofbiz.org/display/OFBIZ/OFBiz+4.X+and+5.0 HTH Jacques From: "BJ Freeman" -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 interesting. so how do you denote a minor release or update? Bruno Busco sent the following on 2/22/2009 3:35 AM: Sorry, I did not understand your real question. We have decided to use a release numbering scheme similar to UBUNTU. 9.3 means March 2009 -Bruno 2009/2/22 BJ Freeman : so why did ofbiz jump from 4.0 to 9.3? Bruno Busco sent the following on 2/22/2009 2:59 AM: Well, the unresolved issues scheduled for 9.3 are: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310500&fixfor=12313602&resolution=-1&sorter/field=issuekey&sorter/order=DESC OFBIZ-2133 has a patch ready and is actually waiting for a review. -Bruno 2009/2/22 BJ Freeman : https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12310500&fixfor=12313602 it say release Branch 9.3 so no 5,6,7, or 8 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJoTsArP3NbaWWqE4RAnAJAJwL2QBJ5qohvu0DQGY1vKErTrZsQQCfYO3V R5s/zYI6xl/TJWO7Q4oOAZg= =Zgcv -END PGP SIGNATURE-
Re: quick ship order cause deadlock
That server was deployed 2+ yrs ago and it is a production server for and existing application. The supported postgresql for the server is 7.3 and there is much hassle to install the latest release of postgres into that server. I will purchase a new server for this project. Thanks! On Mon, Feb 23, 2009 at 12:51 AM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: > Please try to use the lastest version of Postgres and the problem should > dissapear. Also why are you using a so old Kernel version ? > > Jacques > > From: "Hansen Wang" > > The same configuration and data work fine in windows. Only difference is >> that I have a newer version of postgreSQL (8.4) in windows. >> >> I tried to run it with 1.6 with jdbc4, still no difference that 1.5 with >> jdbc3. >> >> I tried to make sendOrderCompleteNotification (invoked by eca of >> changeOrderStatus to COMPLETED) run as syn. see some improvement that it >> gets to the point of sending the email and creating communication event. >> >> I tried to remove sendOrderCompleteNotification from the above eca. it >> works. >> >> So ther problem is between sendOrderCompletedNotification (after inserting >> communication event) and the rest. Given my time constraints, I do not >> think >> that I will be able to find and resolve the deadlock problem in java level >> given the code is relative stable and many projects are using it. What I >> would like to do is just want to get around it by either changing the >> server >> env or re-arranging the executinon sequnce. Any advise is appreciated. >> >> >> >> On Sun, Feb 22, 2009 at 5:12 AM, BJ Freeman wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> not sure ofbiz 4.0 will run on 1.5. >>> would check the proper driver for PostgreSQL 7.4.19 are being used in >>> ofbiz >>> looks like a loop after the first warning >>> [ServiceEcaCondition.java:127:WARN ] From Field (communicationEventId) >>> is >>> > not found in context for createWorkEffort, defaulting to null. >>> >>> >>> Hansen Wang sent the following on 2/22/2009 3:57 AM: >>> > I encountered the following deadlock when I tried to quick ship an >>> entire >>> > order. >>> > >>> > The server environment are as bellows: >>> > >>> > psql (PostgreSQL) 7.4.19 >>> > 2.6.9-42.0.3.EL #1 Mon Sep 25 17:14:19 EDT 2006 i686 athlon i386 >>> GNU/Linux >>> > java version "1.5.0_06" >>> > ofbiz4.0 >>> > >>> > Please note that the order is the only order in the system. >>> > >>> > Attached bellow are db locks and ofbiz log. There may not be enough >>> > information to pinpoint the cause of the >>> > problem by examining the following logs. But please let me know if you >>> have >>> > seen similar problem like this >>> > before. >>> > >>> > >>> > 1. object locks sort by name. nothing suspecious from here. >>> > >>> > relname| relation | database | transaction | >>> pid >>> > | mode | granted >>> > >>> >>> ---+--+--+-+--+--+- >>> > contact_mech | 2644120 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > content | 2644156 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > data_resource | 2644335 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > entity_sync_remove| 2644501 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > entity_sync_remove| 2644501 | 2643821 | | >>> 9483 >>> | >>> > RowExclusiveLock | t >>> > facility | 2644547 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > facility | 2644547 | 2643821 | | >>> 9483 >>> | >>> > RowShareLock | t >>> > facility_contact_mech_purpose | 2644563 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > inventory_item| 2644829 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > inventory_item| 2644829 | 2643821 | | >>> 9483 >>> | >>> > RowShareLock | t >>> > item_issuance | 2644925 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > item_issuance | 2644925 | 2643821 | | >>> 9483 >>> | >>> > RowShareLock | t >>> > item_issuance | 2644925 | 2643821 | | >>> 9483 >>> | >>> > RowExclusiveLock | t >>> > item_issuance_role| 2644929 | 2643821 | | >>> 9483 >>> | >>> > AccessShareLock | t >>> > item_issuance_role| 2644929 | 2643821 | | >>> 9483 >>> | >>> > RowExclusiveLock | t >>> > job_sandbox | 2644933 | 2643821 | | >>> 9535 >>> | >>> > AccessShareLock | t >>> > job_sandbox | 2644933 | 2643821 | | >>> 95
Re: New Release Branch
Why postpone it? Will we not be able to close this in february/march? https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310500&fixfor=12313602&resolution=-1&sorter/field=issuekey&sorter/order=DESC -Bruno 2009/2/23 Jacques Le Roux : > In Ubuntu world they use LTS concept (Long Time Support) which means 5 (yes > five!) years of guaranteed support on these specific versions (there are > already 2 of them : 6.06 and 8.04). > Of course OFBiz is not an OS and I think we will never support a release 5 > years (how could we do with the lack of manpower we still have despite of > all wonderful efforts we have seen taking place since the beginning of this > project). > So I guess we will simply have releases (or versions, like 9.3, but I guess > we will postpone its release, hence the number will change) and the trunk as > it's already done. > In one word a version will be > either > trunk.releaseNumber > either > versionNumber.releaseNumber (like 9.3.99) > > Note that the footer shows already this information if you run the ant > svninfo target after your build > > If we are all ok with this description (David?) I could add this to > http://docs.ofbiz.org/display/OFBADMIN/Release+Plan > And I think we should at least update title in > http://docs.ofbiz.org/display/OFBIZ/OFBiz+4.X+and+5.0 > > HTH > > Jacques > > From: "BJ Freeman" >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> interesting. so how do you denote a minor release or update? >> >> Bruno Busco sent the following on 2/22/2009 3:35 AM: >>> >>> Sorry, >>> I did not understand your real question. >>> >>> We have decided to use a release numbering scheme similar to UBUNTU. >>> 9.3 means March 2009 >>> >>> -Bruno >>> >>> 2009/2/22 BJ Freeman : >>> so why did ofbiz jump from 4.0 to 9.3? >>> >>> Bruno Busco sent the following on 2/22/2009 2:59 AM: >> >> Well, >> the unresolved issues scheduled for 9.3 are: >> >> https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310500&fixfor=12313602&resolution=-1&sorter/field=issuekey&sorter/order=DESC >> >> OFBIZ-2133 has a patch ready and is actually waiting for a review. >> >> -Bruno >> >> >> 2009/2/22 BJ Freeman : >> >> https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12310500&fixfor=12313602 >> it say release Branch 9.3 >> so no 5,6,7, or 8 >> >> -BEGIN PGP SIGNATURE- >> Version: GnuPG v1.4.6 (MingW32) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >> iD8DBQFJoTsArP3NbaWWqE4RAnAJAJwL2QBJ5qohvu0DQGY1vKErTrZsQQCfYO3V >> R5s/zYI6xl/TJWO7Q4oOAZg= >> =Zgcv >> -END PGP SIGNATURE- >> > > >
Re: How to expose Web Service of OFBiz ?
OK, I will be glad to help you, but please could you suggest me which Ofbiz service you want to export? I'm working with OpenTaps, so I don't know If OpenTaps will also have your web service included in their distro (OpenTaps is built upon Ofbiz??) Some example: GenericDelegator delegator = GenericDelegator.getGenericDelegator("default"); LocalDispatcher dispatcher = GenericDispatcher.getLocalDispatcher("default",delegator); GenericValue admin = null; try { admin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", "admin")); } catch (GenericEntityException e1) { e1.printStackTrace(); } Map result = null; Object[] params = { "login.username", un_username, "login.password", un_password, "domini", un_domini, (more params) "estat", un_estat, "ip", una_ip, "userLogin", admin }; try { result = dispatcher.runSync("put here the name of your ofbiz service", UtilMisc.toMap(params)); } catch (GenericServiceException e) { e.printStackTrace(); } // Now get the result using result variable Hope that helps! Vince Clark wrote: > > OK that makes sense. Yes I agree it would not make sense to publish custom > services you have written for a customer. But examples of OFBiz standard > services being exported would be very helpful, along with the directory > structure, supporting files, etc. for deploying as an OFBiz component. For > example, did you deploy the entire binary distribution, or just axis2.war? > > A jira issue that explains your solution along with a patch would be > fantastic! Before doing that, would you mind just replying to this thread > with a code sample showing the call to a standard OFBiz service and how > you are dealing with the results? It would be very timely as we are > struggling with this very thing right now. > > - Original Message - > From: "Alfredo Rueda" > To: user@ofbiz.apache.org > Sent: Monday, February 23, 2009 8:23:39 AM (GMT-0700) America/Denver > Subject: Re: How to expose Web Service of OFBiz ? > > > Hello Vince, > > Yes, I have deployed Axis2 as its own OFBiz component. > > "The example code > will be a java file that exports two Ofbiz Services that come with Ofbiz > Distribution (now I'm exporting customer specific Ofbiz Services, that is > why it's nonsense to publish this java file.)" > > I meant that it's nonsense to publish an example in which I export > customer > specific ofbiz services, because I have to provide also a lot of code that > the customer specific ofbiz service relies on, for instance, ofbiz service > minilang implementation, lot of subservices, views entities, etc, etc, > etc. > > The purpose is just to show how to export ofbiz services that use complex > type parameters, so why not use as an example standard ofbiz services that > comes with Ofbiz Distribution? This was the only thing I tried to explain > before :-) > > Regards, > > Alfredo > > > > > > Vince Clark wrote: >> >> Alfredo >> >> So to be clear, you have deployed Axis2 as its own OFBiz component? Or >> are >> you still using the approach of deploying the war file under an existing >> webapp directory in another component? >> >> A patch would be very helpful. Not sure why you think it is "nonsense." >> Working examples are extremely helpful to the community. Especially in >> new >> areas like this. >> >> To submit a patch you must create an account on Jira, then create an >> issue >> and attach the patch file. >> >> Looking forward to seeing what you have done! >> >> - Original Message - >> From: "Alfredo Rueda" >> To: user@ofbiz.apache.org >> Sent: Monday, February 23, 2009 5:17:53 AM (GMT-0700) America/Denver >> Subject: Re: How to expose Web Service of OFBiz ? >> >> >> Hello Jacques! >> >> The Axis2 Ofbiz Component is simply an Ofbiz Component that has: >> >> 1. Axis2 1.4 Distribution stored in a subdirectory. >> 2. The Ofbiz build system is connected to Axis2 build system via an Ant >> build.xml file >> 3. A java file that is a Web Services Facade to Ofbiz Services that want >> to >> be exported. >> >> So, the only code that need to be published is: >> 1. The java file that is a Web Services Facade to Ofbiz Services that >> want >> to be exporte
Re: How to expose Web Service of OFBiz ?
OK that makes sense. Yes I agree it would not make sense to publish custom services you have written for a customer. But examples of OFBiz standard services being exported would be very helpful, along with the directory structure, supporting files, etc. for deploying as an OFBiz component. For example, did you deploy the entire binary distribution, or just axis2.war? A jira issue that explains your solution along with a patch would be fantastic! Before doing that, would you mind just replying to this thread with a code sample showing the call to a standard OFBiz service and how you are dealing with the results? It would be very timely as we are struggling with this very thing right now. - Original Message - From: "Alfredo Rueda" To: user@ofbiz.apache.org Sent: Monday, February 23, 2009 8:23:39 AM (GMT-0700) America/Denver Subject: Re: How to expose Web Service of OFBiz ? Hello Vince, Yes, I have deployed Axis2 as its own OFBiz component. "The example code will be a java file that exports two Ofbiz Services that come with Ofbiz Distribution (now I'm exporting customer specific Ofbiz Services, that is why it's nonsense to publish this java file.)" I meant that it's nonsense to publish an example in which I export customer specific ofbiz services, because I have to provide also a lot of code that the customer specific ofbiz service relies on, for instance, ofbiz service minilang implementation, lot of subservices, views entities, etc, etc, etc. The purpose is just to show how to export ofbiz services that use complex type parameters, so why not use as an example standard ofbiz services that comes with Ofbiz Distribution? This was the only thing I tried to explain before :-) Regards, Alfredo Vince Clark wrote: > > Alfredo > > So to be clear, you have deployed Axis2 as its own OFBiz component? Or are > you still using the approach of deploying the war file under an existing > webapp directory in another component? > > A patch would be very helpful. Not sure why you think it is "nonsense." > Working examples are extremely helpful to the community. Especially in new > areas like this. > > To submit a patch you must create an account on Jira, then create an issue > and attach the patch file. > > Looking forward to seeing what you have done! > > - Original Message - > From: "Alfredo Rueda" > To: user@ofbiz.apache.org > Sent: Monday, February 23, 2009 5:17:53 AM (GMT-0700) America/Denver > Subject: Re: How to expose Web Service of OFBiz ? > > > Hello Jacques! > > The Axis2 Ofbiz Component is simply an Ofbiz Component that has: > > 1. Axis2 1.4 Distribution stored in a subdirectory. > 2. The Ofbiz build system is connected to Axis2 build system via an Ant > build.xml file > 3. A java file that is a Web Services Facade to Ofbiz Services that want > to > be exported. > > So, the only code that need to be published is: > 1. The java file that is a Web Services Facade to Ofbiz Services that want > to be exported. > This file contains simply a Java Class that has 1 wrapper method for > each Ofbiz Service that want to be exported. Axis2 does the job of > exporting > java methods as WebServices. It's amazing! > 2. The build.xml of the component that builds the java file and puts the > class file in an specific Axis2 directory > > The Ofbiz community may consider to include this ready to use Axis2 Ofbiz > component that includes Axis2 Distribution and some Ofbiz Services > exported > via SOAP as an example of use. > > So, in this case the JIRA issue could be an idea more than code changes of > existing Ofbiz code? > How can I publish this idea as a JIRA issue? > If the community thinks that is a good idea, then I will be glad to > provide > an example code (for instance 2 Ofbiz services that use complex types > exported via SOAP), the build.xml and the documentation. The example code > will be a java file that exports two Ofbiz Services that come with Ofbiz > Distribution (now I'm exporting customer specific Ofbiz Services, that is > why It's nonsense to publish this java file.) > > Regards, > > Alfredo > > > > > > > > jacques.le.roux wrote: >> >> Hello Alfredo, >> >> Did you create a such Axis2 component ? If yes couls you think about >> creating a Jira issue and submit a patch ? >> >> Thanks >> >> Jacques >> >> From: "Alfredo Rueda" >>> >>> Hello Dhruv! >>> >>> A collection of Ofbiz services have been exposed as Web Services using >>> this >>> solution: >>> >>> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP >>> >>> >>> These Web Services have been deployed in a production environment and >>> are >>> working perfectly fine. >>> >>> I suggest you to follow the steps, and I will be glad to help you if you >>> run >>> into trouble at some point in the process. >>> >>> Once you finish you can create your own Axis
Re: How to expose Web Service of OFBiz ?
Hello Vince, Yes, I have deployed Axis2 as its own OFBiz component. "The example code will be a java file that exports two Ofbiz Services that come with Ofbiz Distribution (now I'm exporting customer specific Ofbiz Services, that is why it's nonsense to publish this java file.)" I meant that it's nonsense to publish an example in which I export customer specific ofbiz services, because I have to provide also a lot of code that the customer specific ofbiz service relies on, for instance, ofbiz service minilang implementation, lot of subservices, views entities, etc, etc, etc. The purpose is just to show how to export ofbiz services that use complex type parameters, so why not use as an example standard ofbiz services that comes with Ofbiz Distribution? This was the only thing I tried to explain before :-) Regards, Alfredo Vince Clark wrote: > > Alfredo > > So to be clear, you have deployed Axis2 as its own OFBiz component? Or are > you still using the approach of deploying the war file under an existing > webapp directory in another component? > > A patch would be very helpful. Not sure why you think it is "nonsense." > Working examples are extremely helpful to the community. Especially in new > areas like this. > > To submit a patch you must create an account on Jira, then create an issue > and attach the patch file. > > Looking forward to seeing what you have done! > > - Original Message - > From: "Alfredo Rueda" > To: user@ofbiz.apache.org > Sent: Monday, February 23, 2009 5:17:53 AM (GMT-0700) America/Denver > Subject: Re: How to expose Web Service of OFBiz ? > > > Hello Jacques! > > The Axis2 Ofbiz Component is simply an Ofbiz Component that has: > > 1. Axis2 1.4 Distribution stored in a subdirectory. > 2. The Ofbiz build system is connected to Axis2 build system via an Ant > build.xml file > 3. A java file that is a Web Services Facade to Ofbiz Services that want > to > be exported. > > So, the only code that need to be published is: > 1. The java file that is a Web Services Facade to Ofbiz Services that want > to be exported. > This file contains simply a Java Class that has 1 wrapper method for > each Ofbiz Service that want to be exported. Axis2 does the job of > exporting > java methods as WebServices. It's amazing! > 2. The build.xml of the component that builds the java file and puts the > class file in an specific Axis2 directory > > The Ofbiz community may consider to include this ready to use Axis2 Ofbiz > component that includes Axis2 Distribution and some Ofbiz Services > exported > via SOAP as an example of use. > > So, in this case the JIRA issue could be an idea more than code changes of > existing Ofbiz code? > How can I publish this idea as a JIRA issue? > If the community thinks that is a good idea, then I will be glad to > provide > an example code (for instance 2 Ofbiz services that use complex types > exported via SOAP), the build.xml and the documentation. The example code > will be a java file that exports two Ofbiz Services that come with Ofbiz > Distribution (now I'm exporting customer specific Ofbiz Services, that is > why It's nonsense to publish this java file.) > > Regards, > > Alfredo > > > > > > > > jacques.le.roux wrote: >> >> Hello Alfredo, >> >> Did you create a such Axis2 component ? If yes couls you think about >> creating a Jira issue and submit a patch ? >> >> Thanks >> >> Jacques >> >> From: "Alfredo Rueda" >>> >>> Hello Dhruv! >>> >>> A collection of Ofbiz services have been exposed as Web Services using >>> this >>> solution: >>> >>> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP >>> >>> >>> These Web Services have been deployed in a production environment and >>> are >>> working perfectly fine. >>> >>> I suggest you to follow the steps, and I will be glad to help you if you >>> run >>> into trouble at some point in the process. >>> >>> Once you finish you can create your own Axis2 Ofbiz Component to provide >>> a >>> cleaner solution. This Axis2 Ofbiz Component will serve as a Web Service >>> Facade to comunicate Ofbiz with other systems. >>> >>> Regards, >>> >>> Alfredo Rueda >>> >>> >>> Dhruv Datta wrote: Hi Frns, I am using "wsimport" tool to read an existing WSDL file of OFBiz framework and want to generate artifacts. I need these because I am doing load testing on Web Service and retrieve data like the average time requierd to obtain the reponse from a webservice. So I've following questions: 1) How to expose the existing WebServices of the OFBiz ? 2) What meaningful data will these services provide? I am trying to expose a Web Service by using following syntax: E:\WSDL>wsimport -d . http://localhost:8080/webtools/control/SOAPService/cancelScheduledJob?WSDL And I am gettin
Re: How to expose Web Service of OFBiz ?
Alfredo So to be clear, you have deployed Axis2 as its own OFBiz component? Or are you still using the approach of deploying the war file under an existing webapp directory in another component? A patch would be very helpful. Not sure why you think it is "nonsense." Working examples are extremely helpful to the community. Especially in new areas like this. To submit a patch you must create an account on Jira, then create an issue and attach the patch file. Looking forward to seeing what you have done! - Original Message - From: "Alfredo Rueda" To: user@ofbiz.apache.org Sent: Monday, February 23, 2009 5:17:53 AM (GMT-0700) America/Denver Subject: Re: How to expose Web Service of OFBiz ? Hello Jacques! The Axis2 Ofbiz Component is simply an Ofbiz Component that has: 1. Axis2 1.4 Distribution stored in a subdirectory. 2. The Ofbiz build system is connected to Axis2 build system via an Ant build.xml file 3. A java file that is a Web Services Facade to Ofbiz Services that want to be exported. So, the only code that need to be published is: 1. The java file that is a Web Services Facade to Ofbiz Services that want to be exported. This file contains simply a Java Class that has 1 wrapper method for each Ofbiz Service that want to be exported. Axis2 does the job of exporting java methods as WebServices. It's amazing! 2. The build.xml of the component that builds the java file and puts the class file in an specific Axis2 directory The Ofbiz community may consider to include this ready to use Axis2 Ofbiz component that includes Axis2 Distribution and some Ofbiz Services exported via SOAP as an example of use. So, in this case the JIRA issue could be an idea more than code changes of existing Ofbiz code? How can I publish this idea as a JIRA issue? If the community thinks that is a good idea, then I will be glad to provide an example code (for instance 2 Ofbiz services that use complex types exported via SOAP), the build.xml and the documentation. The example code will be a java file that exports two Ofbiz Services that come with Ofbiz Distribution (now I'm exporting customer specific Ofbiz Services, that is why It's nonsense to publish this java file.) Regards, Alfredo jacques.le.roux wrote: > > Hello Alfredo, > > Did you create a such Axis2 component ? If yes couls you think about > creating a Jira issue and submit a patch ? > > Thanks > > Jacques > > From: "Alfredo Rueda" >> >> Hello Dhruv! >> >> A collection of Ofbiz services have been exposed as Web Services using >> this >> solution: >> >> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP >> >> >> These Web Services have been deployed in a production environment and are >> working perfectly fine. >> >> I suggest you to follow the steps, and I will be glad to help you if you >> run >> into trouble at some point in the process. >> >> Once you finish you can create your own Axis2 Ofbiz Component to provide >> a >> cleaner solution. This Axis2 Ofbiz Component will serve as a Web Service >> Facade to comunicate Ofbiz with other systems. >> >> Regards, >> >> Alfredo Rueda >> >> >> Dhruv Datta wrote: >>> >>> Hi Frns, >>> >>> I am using "wsimport" tool to read an existing WSDL file of OFBiz >>> framework and want to generate artifacts. I need these because I am >>> doing load testing on Web Service and retrieve data like the average >>> time requierd to obtain the reponse from a webservice. >>> >>> So I've following questions: >>> >>> 1) How to expose the existing WebServices of the OFBiz ? >>> 2) What meaningful data will these services provide? >>> >>> I am trying to expose a Web Service by using following syntax: >>> >>> E:\WSDL>wsimport -d . >>> http://localhost:8080/webtools/control/SOAPService/cancelScheduledJob?WSDL >>> >>> And I am getting following error : >>> >>> warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not >>> allowed in doc/lit for soapbind:body: "cancelScheduledJob" >>> warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not >>> allowed in doc/lit for soapbind:body: "cancelScheduledJob" >>> error: Invalid wsdl:operation "cancelScheduledJob": its a >>> document-literal operation, message part must refer to a schema >>> element declaration >>> >>> >>> Any help would be greatly appreciated. >>> >>> Thanks in Advance. >>> >>> Dhruv. >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-expose-Web-Service-of-OFBiz---tp22077891p22158082.html >> >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/How-to-expose-Web-Service-of-OFBiz---tp22077891p22160487.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Using Axis w/ OFBiz
Yes we have read the how to. The examples in it stop short of actually calling an OFBiz service. We have been able to call simple services in OFBiz like getOrderStatus and return a string. Why are you suggesting ServiceMix? We would certainly consider it if we needed an ESB. But for what we are trying to accomplish I think we would have the same difficulties as we are having now. If you think differently please advise. - Original Message - From: "Jacques Le Roux" To: user@ofbiz.apache.org Sent: Monday, February 23, 2009 12:58:30 AM (GMT-0700) America/Denver Subject: Re: Using Axis w/ OFBiz Did you have a look at http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Soap Else why not ServiceMix ? Jacques From: "Vince M. Clark" David - we are running Axis within the OFBiz container to have access natively to OFBiz services. We are not using OFBiz to render the UI. Basically we want to consume all the ecommerce functionality, but do it thru web services so we can build our interface using PHP. - Original Message - From: "David E Jones" To: user@ofbiz.apache.org Sent: Sunday, February 22, 2009 4:51:16 PM (GMT-0700) America/Denver Subject: Re: Using Axis w/ OFBiz If you're running in-container, why use web services? As for the ShoppingCartEvents.getCartObject() method... is the request you are passing to it in the web session of the user? No, it is in the web session of the SOAP service... -David On Feb 22, 2009, at 12:36 PM, atoner wrote: > > Hi. > > I am trying to expose services in OFBiz through Axis2 deployed in > the same > container. Basically I am trying to use a Symfony front-end to make > SOAP > calls to perform functions such as adding an item to a shopping cart > or > retrieving shopping cart contents. I am doing this by writing a few > (what I > thought would be) simple SOAP services in Axis to accomplish this. > > But I am having a lot of problems and haven’t found much in the > mailing list > archives or on the forums which helps. > > I am able to call the SOAP services, the problem is using the OFBiz > internals within the services. For instance, calling > ShoppingCartEvents.getCartObject() always returns a null pointer. > Perhaps I > am just looking in the wrong place. > > Could anyone steer me in the direction of how I would go about > creating and > then adding a product/item to a shopping cart and getting its > contents? > This is the current code I have: > > public String addItemToCart( String productId ) > { > MessageContext msgCtx = MessageContext.getCurrentMessageContext(); > HttpServletRequest request = (HttpServletRequest) > msgCtx.getProperty( > "transport.http.servletRequest" ); > > Locale locale = UtilHttp.getLocale(request); > > ShoppingCart shoppingCart = > ShoppingCartEvents.getCartObject( request, > locale, "USD" ); > > return (String) shoppingCart.getOrderType(); > } > > Thanks! > > > -- > View this message in context: > http://www.nabble.com/Using-Axis-w--OFBiz-tp22150583p22150583.html > Sent from the OFBiz - User mailing list archive at Nabble.com. >
Re: Creating a record in database
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 there is already support for this entity and service in ofbiz. so you can extend that entity and add your information then update the already existing service. Note: a lot of the entities now use the auto created for CRUD services so you just update the entity and the service will be created automatically. or rename your entity and services. hairi007 sent the following on 2/23/2009 2:22 AM: > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > what does the logs say > what version of ofbiz are you using > > Hi guys, I think i know the problem as to why i cannot create the record. > Eventhough I created my own entity, in the entitymodel.xml, when i try > creating a record from my program, the log shows that it is actually trying > to create a record from another table mapping. > > How do i change this mapping? > (desparate mode) > > hope u guys can help. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJoqQDrP3NbaWWqE4RAnW7AJwJXNGlxAGShQVSwH9keC6mfxCxMACgzrQA vaU42TmRoVCgwfajtyqKMU0= =755N -END PGP SIGNATURE-
Re: Creating a record in database
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 how did you get the code, through svn? did you download the trunk or release 4.0. the logs are in runtime/logs. if your running a local copy you can also see the logs in the webtools section. hairi007 sent the following on 2/22/2009 8:27 PM: > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > what does the logs say > what version of ofbiz are you using > > > > How do i check which version? Anyways I've just download the files for > development about 1 mth ago. > > Thnx -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJoqHcrP3NbaWWqE4RAiblAJ9zR0iHbcih097nWJbZC5//meEOnACgug7k TGWxTEYW6N+1DWUdfPeibs4= =8bpt -END PGP SIGNATURE-
Re: How to expose Web Service of OFBiz ?
Hello Jacques! The Axis2 Ofbiz Component is simply an Ofbiz Component that has: 1. Axis2 1.4 Distribution stored in a subdirectory. 2. The Ofbiz build system is connected to Axis2 build system via an Ant build.xml file 3. A java file that is a Web Services Facade to Ofbiz Services that want to be exported. So, the only code that need to be published is: 1. The java file that is a Web Services Facade to Ofbiz Services that want to be exported. This file contains simply a Java Class that has 1 wrapper method for each Ofbiz Service that want to be exported. Axis2 does the job of exporting java methods as WebServices. It's amazing! 2. The build.xml of the component that builds the java file and puts the class file in an specific Axis2 directory The Ofbiz community may consider to include this ready to use Axis2 Ofbiz component that includes Axis2 Distribution and some Ofbiz Services exported via SOAP as an example of use. So, in this case the JIRA issue could be an idea more than code changes of existing Ofbiz code? How can I publish this idea as a JIRA issue? If the community thinks that is a good idea, then I will be glad to provide an example code (for instance 2 Ofbiz services that use complex types exported via SOAP), the build.xml and the documentation. The example code will be a java file that exports two Ofbiz Services that come with Ofbiz Distribution (now I'm exporting customer specific Ofbiz Services, that is why It's nonsense to publish this java file.) Regards, Alfredo jacques.le.roux wrote: > > Hello Alfredo, > > Did you create a such Axis2 component ? If yes couls you think about > creating a Jira issue and submit a patch ? > > Thanks > > Jacques > > From: "Alfredo Rueda" >> >> Hello Dhruv! >> >> A collection of Ofbiz services have been exposed as Web Services using >> this >> solution: >> >> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP >> >> These Web Services have been deployed in a production environment and are >> working perfectly fine. >> >> I suggest you to follow the steps, and I will be glad to help you if you >> run >> into trouble at some point in the process. >> >> Once you finish you can create your own Axis2 Ofbiz Component to provide >> a >> cleaner solution. This Axis2 Ofbiz Component will serve as a Web Service >> Facade to comunicate Ofbiz with other systems. >> >> Regards, >> >> Alfredo Rueda >> >> >> Dhruv Datta wrote: >>> >>> Hi Frns, >>> >>>I am using "wsimport" tool to read an existing WSDL file of OFBiz >>> framework and want to generate artifacts. I need these because I am >>> doing load testing on Web Service and retrieve data like the average >>> time requierd to obtain the reponse from a webservice. >>> >>>So I've following questions: >>> >>>1) How to expose the existing WebServices of the OFBiz ? >>>2) What meaningful data will these services provide? >>> >>> I am trying to expose a Web Service by using following syntax: >>> >>> E:\WSDL>wsimport -d . >>> http://localhost:8080/webtools/control/SOAPService/cancelScheduledJob?WSDL >>> >>> And I am getting following error : >>> >>> warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not >>> allowed in doc/lit for soapbind:body: "cancelScheduledJob" >>> warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not >>> allowed in doc/lit for soapbind:body: "cancelScheduledJob" >>> error: Invalid wsdl:operation "cancelScheduledJob": its a >>> document-literal operation, message part must refer to a schema >>> element declaration >>> >>> >>> Any help would be greatly appreciated. >>> >>> Thanks in Advance. >>> >>> Dhruv. >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-expose-Web-Service-of-OFBiz---tp22077891p22158082.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/How-to-expose-Web-Service-of-OFBiz---tp22077891p22160487.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Ofbiz multilanguage suport in R4
A such effort has been done in trunk (not sure for this label though) but don't expect anything like that in R4, sorry :/ Jacques From: "Ján Valkovic" Hi, it's neccessary joining strings like this? ${uiLabelMap.CommonNo} ${uiLabelMap.ProductReviewsPendingApproval} It's not possible translate it to slovak. "No" in english means "No" (as opposite to yes) and "Nothing" too, but slovak language hasn't similar word. Translation of "no" is dependent on word after "no" ( http://en.wikipedia.org/wiki/Slovak_language ) Solution is: ${uiLabelMap.NoProductReviewsPendingApproval} in place of ${uiLabelMap.CommonNo} ${uiLabelMap.ProductReviewsPendingApproval} Thanks Jan Valkovic
Re: How to expose Web Service of OFBiz ?
Hello Alfredo, Did you create a such Axis2 component ? If yes couls you think about creating a Jira issue and submit a patch ? Thanks Jacques From: "Alfredo Rueda" Hello Dhruv! A collection of Ofbiz services have been exposed as Web Services using this solution: http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP These Web Services have been deployed in a production environment and are working perfectly fine. I suggest you to follow the steps, and I will be glad to help you if you run into trouble at some point in the process. Once you finish you can create your own Axis2 Ofbiz Component to provide a cleaner solution. This Axis2 Ofbiz Component will serve as a Web Service Facade to comunicate Ofbiz with other systems. Regards, Alfredo Rueda Dhruv Datta wrote: Hi Frns, I am using "wsimport" tool to read an existing WSDL file of OFBiz framework and want to generate artifacts. I need these because I am doing load testing on Web Service and retrieve data like the average time requierd to obtain the reponse from a webservice. So I've following questions: 1) How to expose the existing WebServices of the OFBiz ? 2) What meaningful data will these services provide? I am trying to expose a Web Service by using following syntax: E:\WSDL>wsimport -d . http://localhost:8080/webtools/control/SOAPService/cancelScheduledJob?WSDL And I am getting following error : warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "cancelScheduledJob" warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "cancelScheduledJob" error: Invalid wsdl:operation "cancelScheduledJob": its a document-literal operation, message part must refer to a schema element declaration Any help would be greatly appreciated. Thanks in Advance. Dhruv. -- View this message in context: http://www.nabble.com/How-to-expose-Web-Service-of-OFBiz---tp22077891p22158082.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Why LookupBulkAddSupplierProducts functionality is disabled?
Well Hans, LookupBulkAddSupplierProducts is already a request made in controller.xml of Ordermgr. And this request open up a LookupBulkAddSupplierProducts form, present in OrderEntryForms.xml which shows the products dependent on supplier selected. Now, it is useful because when user want to add multiple products into the cart then this is the best way to do that. Otherwise user can add only one product at a time . And if he want to add more than one product into the cart then he needs to click on lookup multiple times. I think this helps you to understand. Please let me know if I can help you more. Thanks -Divesh All my customers are very confused by this option both in the sales order and purchase order and i have disabled it many times here locally. This time i have forgot it to put it back. But if you think it is useful feel free to change it back. I would appreciate to know why you think it is useful, remember that especially in the purchase order the products are dependent on the supplier selected. Regards, Hans On Mon, 2009-02-23 at 15:10 +0530, Divesh Dutta wrote: Hello Hans, In commit revision number 746158, you have commented this part of code : <#--a href="javascript:quicklookup(document.quickaddform.add_product_id)" class="buttontext">${uiLabelMap.OrderQuickLookup} in ordermgr/entry/cart/showcart.ftl After commenting this code, user can not get option of adding bulk products into the cart (in case of Purchase order). I think its good to have back this functionality so that user can have choice, to add bulk products or single product into the cart. Thanks -Divesh
Re: Why LookupBulkAddSupplierProducts functionality is disabled?
All my customers are very confused by this option both in the sales order and purchase order and i have disabled it many times here locally. This time i have forgot it to put it back. But if you think it is useful feel free to change it back. I would appreciate to know why you think it is useful, remember that especially in the purchase order the products are dependent on the supplier selected. Regards, Hans On Mon, 2009-02-23 at 15:10 +0530, Divesh Dutta wrote: > Hello Hans, > In commit revision number 746158, you have commented this > part of code : > <#--a > href="javascript:quicklookup(document.quickaddform.add_product_id)" > class="buttontext">${uiLabelMap.OrderQuickLookup} in > ordermgr/entry/cart/showcart.ftl > After commenting this code, user can not get option of adding bulk > products into the cart (in case of Purchase order). I think its good to > have back this functionality so that user can have choice, to add bulk > products or single product into the cart. > > Thanks > -Divesh -- Antwebsystems.com: Quality OFBiz services for competitive rates
RE: Tricky! About fields in the form
Maybe, it's a good idea. I'll try it. -Original Message- From: Bilgin Ibryam [mailto:bibr...@iguanait.com] Sent: 2009年2月23日 17:34 To: user@ofbiz.apache.org Subject: Re: Tricky! About fields in the form Hi Jack, The best practice is to use form widgets, but if it is only one form and you can't achieve it with form widget, I think then you can build your form with FTL. Getting all the attributes and adding them to the form as fields inside a loop is really easy. BTW is there a reason for not considering FTL for this form task? Bilgin
Re: Creating a record in database
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 what does the logs say what version of ofbiz are you using Hi guys, I think i know the problem as to why i cannot create the record. Eventhough I created my own entity, in the entitymodel.xml, when i try creating a record from my program, the log shows that it is actually trying to create a record from another table mapping. How do i change this mapping? (desparate mode) hope u guys can help. -- View this message in context: http://www.nabble.com/Creating-a-record-in-database-tp22149825p22158831.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Ofbiz multilanguage suport in R4
Hi, it's neccessary joining strings like this? ${uiLabelMap.CommonNo} ${uiLabelMap.ProductReviewsPendingApproval} It's not possible translate it to slovak. "No" in english means "No" (as opposite to yes) and "Nothing" too, but slovak language hasn't similar word. Translation of "no" is dependent on word after "no" ( http://en.wikipedia.org/wiki/Slovak_language ) Solution is: ${uiLabelMap.NoProductReviewsPendingApproval} in place of ${uiLabelMap.CommonNo} ${uiLabelMap.ProductReviewsPendingApproval} Thanks Jan Valkovic
Why LookupBulkAddSupplierProducts functionality is disabled?
Hello Hans, In commit revision number 746158, you have commented this part of code : <#--a href="javascript:quicklookup(document.quickaddform.add_product_id)" class="buttontext">${uiLabelMap.OrderQuickLookup} in ordermgr/entry/cart/showcart.ftl After commenting this code, user can not get option of adding bulk products into the cart (in case of Purchase order). I think its good to have back this functionality so that user can have choice, to add bulk products or single product into the cart. Thanks -Divesh
Re: Tricky! About fields in the form
Hi Jack, The best practice is to use form widgets, but if it is only one form and you can't achieve it with form widget, I think then you can build your form with FTL. Getting all the attributes and adding them to the form as fields inside a loop is really easy. BTW is there a reason for not considering FTL for this form task? Bilgin
Re: How to expose Web Service of OFBiz ?
Hello Dhruv! A collection of Ofbiz services have been exposed as Web Services using this solution: http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP These Web Services have been deployed in a production environment and are working perfectly fine. I suggest you to follow the steps, and I will be glad to help you if you run into trouble at some point in the process. Once you finish you can create your own Axis2 Ofbiz Component to provide a cleaner solution. This Axis2 Ofbiz Component will serve as a Web Service Facade to comunicate Ofbiz with other systems. Regards, Alfredo Rueda Dhruv Datta wrote: > > Hi Frns, > >I am using "wsimport" tool to read an existing WSDL file of OFBiz > framework and want to generate artifacts. I need these because I am > doing load testing on Web Service and retrieve data like the average > time requierd to obtain the reponse from a webservice. > >So I've following questions: > >1) How to expose the existing WebServices of the OFBiz ? >2) What meaningful data will these services provide? > > I am trying to expose a Web Service by using following syntax: > > E:\WSDL>wsimport -d . > http://localhost:8080/webtools/control/SOAPService/cancelScheduledJob?WSDL > > And I am getting following error : > > warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not > allowed in doc/lit for soapbind:body: "cancelScheduledJob" > warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not > allowed in doc/lit for soapbind:body: "cancelScheduledJob" > error: Invalid wsdl:operation "cancelScheduledJob": its a > document-literal operation, message part must refer to a schema > element declaration > > > Any help would be greatly appreciated. > > Thanks in Advance. > > Dhruv. > > -- View this message in context: http://www.nabble.com/How-to-expose-Web-Service-of-OFBiz---tp22077891p22158082.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: New Release Branch
This is just a way of versioning the release branch, nothing more. Along with the release branch URL you'll also need the SVN revision number to pin down the exact set of files you have. -David On Feb 23, 2009, at 12:48 AM, Jacques Le Roux wrote: In Ubuntu world they use LTS concept (Long Time Support) which means 5 (yes five!) years of guaranteed support on these specific versions (there are already 2 of them : 6.06 and 8.04). Of course OFBiz is not an OS and I think we will never support a release 5 years (how could we do with the lack of manpower we still have despite of all wonderful efforts we have seen taking place since the beginning of this project). So I guess we will simply have releases (or versions, like 9.3, but I guess we will postpone its release, hence the number will change) and the trunk as it's already done. In one word a version will be either trunk.releaseNumber either versionNumber.releaseNumber (like 9.3.99) Note that the footer shows already this information if you run the ant svninfo target after your build If we are all ok with this description (David?) I could add this to http://docs.ofbiz.org/display/OFBADMIN/Release+Plan And I think we should at least update title in http://docs.ofbiz.org/display/OFBIZ/OFBiz+4.X+and+5.0 HTH Jacques From: "BJ Freeman" -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 interesting. so how do you denote a minor release or update? Bruno Busco sent the following on 2/22/2009 3:35 AM: Sorry, I did not understand your real question. We have decided to use a release numbering scheme similar to UBUNTU. 9.3 means March 2009 -Bruno 2009/2/22 BJ Freeman : so why did ofbiz jump from 4.0 to 9.3? Bruno Busco sent the following on 2/22/2009 2:59 AM: Well, the unresolved issues scheduled for 9.3 are: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310500&fixfor=12313602&resolution=-1&sorter/field=issuekey&sorter/order=DESC OFBIZ-2133 has a patch ready and is actually waiting for a review. -Bruno 2009/2/22 BJ Freeman : https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12310500&fixfor=12313602 it say release Branch 9.3 so no 5,6,7, or 8 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJoTsArP3NbaWWqE4RAnAJAJwL2QBJ5qohvu0DQGY1vKErTrZsQQCfYO3V R5s/zYI6xl/TJWO7Q4oOAZg= =Zgcv -END PGP SIGNATURE-