Hello, I am doing research for currently available open-source
tools/framework to build a e-commerce site for a small business. Ofbiz seems to offer a great fit and much more, which is wonderful. A unique requirement for this project is the product catalog comes from a data-feed, via xml messaging services over http. (not quite sure if these services are based on established standards like soap, most likely not) Anyway, I did some search in ofbiz's documentations and mailing list, tried to find existing example/use case for messaging support but couldn't find anything. Before I re-invent the wheel, I am wondering if ofbiz already has any form of supports for xml messaging services where I can use as a starting point for modification. If not, what's recommended approach/practice to implement such service. Any help or questions would be greatly appreciated. Ken |
it is in here as the responses to xml responses from USP and USPS.
I use http and https from external sources to receive orders in XML format. I have found it is easier to write the xml to a file than try to process it immediately. I may receive as many as 95 xml files per sec. I then have a service that processes the xml files Ken Lee wrote: > Hello, I am doing research for currently available open-source > tools/framework to build a e-commerce site for a small business. Ofbiz > seems to offer a great fit and much more, which is wonderful. > > A unique requirement for this project is the product catalog comes from a > data-feed, via xml messaging services over http. (not quite sure if these > services are based on established standards like soap, most likely not) > Anyway, I did some search in ofbiz's documentations and mailing list, tried > to find existing example/use case for messaging support but couldn't find > anything. Before I re-invent the wheel, I am wondering if ofbiz already > has > any form of supports for xml messaging services where I can use as a > starting point for modification. If not, what's recommended > approach/practice to implement such service. Any help or questions > would be > greatly appreciated. > > Ken > |
BJ, my apology if these should be obvious to more experience ones, I am not
very fluent with the ofbiz at this point. In your reply, it sounds like ofbiz has services or low level codes that can be config to communicate with USPS via xml messging? that would be a good starting point if that's the case. Thanks for the reply and your advice on processing xml strings, I'll keep that in mind. Ken On 3/26/07, BJ Freeman <[hidden email]> wrote: > > it is in here as the responses to xml responses from USP and USPS. > I use http and https from external sources to receive orders in XML > format. > I have found it is easier to write the xml to a file than try to process > it > immediately. I may receive as many as 95 xml files per sec. > I then have a service that processes the xml files > > Ken Lee wrote: > > Hello, I am doing research for currently available open-source > > tools/framework to build a e-commerce site for a small business. Ofbiz > > seems to offer a great fit and much more, which is wonderful. > > > > A unique requirement for this project is the product catalog comes from > a > > data-feed, via xml messaging services over http. (not quite sure if > these > > services are based on established standards like soap, most likely not) > > Anyway, I did some search in ofbiz's documentations and mailing list, > tried > > to find existing example/use case for messaging support but couldn't > find > > anything. Before I re-invent the wheel, I am wondering if ofbiz already > > has > > any form of supports for xml messaging services where I can use as a > > starting point for modification. If not, what's recommended > > approach/practice to implement such service. Any help or questions > > would be > > greatly appreciated. > > > > Ken > > > |
if you look in
OfBiz_home\applications\product\src\org\ofbiz\shipment\thirdparty you will see the lowlevel code for UPs, USPS, and DHL I don't use this code, but myown I ported over from a previous application The USPS is a mock up. you can find the service defs in OfBiz_home\applications\product\servicedef OfBiz_home\applications\product\config\shipment.properties will give you some of the static config data. in short in UspsMockApiServlet you do a post then do a get for something like interactive communications. for some that sends to a url, Like a webstore posting a order, or a supplier posting inventory, you put a line in the conroller.xml <!-- these orginate from vendor as Posts --> <request-map uri="realtimeorders"> <security https="true" direct-request="true"/> <event type="java" path="com.businessesnetwork.realtime.vendorTimeEvents" invoke="inventory"/> <response name="success" type="view" value="venordorsuccess"/> <response name="error" type="view" value="vendorerror"/> </request-map> and the class that has the real time event has a public static String inventory(HttpServletRequest request, HttpServletResponse response) {}: that processes the request. note if you want the status to show up in the header and show in the access log use response.setHeader("status", "200 OK");//let sender know everything is ok response.setStatus(200);//put ok in the access log. Ken Lee sent the following on 3/26/2007 3:20 PM: > BJ, my apology if these should be obvious to more experience ones, I am not > very fluent with the ofbiz at this point. In your reply, it sounds like > ofbiz has services or low level codes that can be config to communicate > with > USPS via xml messging? that would be a good starting point if that's the > case. Thanks for the reply and your advice on processing xml strings, I'll > keep that in mind. > > Ken > > On 3/26/07, BJ Freeman <[hidden email]> wrote: >> >> it is in here as the responses to xml responses from USP and USPS. >> I use http and https from external sources to receive orders in XML >> format. >> I have found it is easier to write the xml to a file than try to process >> it >> immediately. I may receive as many as 95 xml files per sec. >> I then have a service that processes the xml files >> >> Ken Lee wrote: >> > Hello, I am doing research for currently available open-source >> > tools/framework to build a e-commerce site for a small business. Ofbiz >> > seems to offer a great fit and much more, which is wonderful. >> > >> > A unique requirement for this project is the product catalog comes from >> a >> > data-feed, via xml messaging services over http. (not quite sure if >> these >> > services are based on established standards like soap, most likely not) >> > Anyway, I did some search in ofbiz's documentations and mailing list, >> tried >> > to find existing example/use case for messaging support but couldn't >> find >> > anything. Before I re-invent the wheel, I am wondering if ofbiz >> already >> > has >> > any form of supports for xml messaging services where I can use as a >> > starting point for modification. If not, what's recommended >> > approach/practice to implement such service. Any help or questions >> > would be >> > greatly appreciated. >> > >> > Ken >> > >> > |
Great, these are excellent info and should be what I am looking for, thank
you BJ. I'll post some feedback if I find anything that might be useful to the group. On 3/27/07, BJ Freeman <[hidden email]> wrote: > > if you look in > OfBiz_home\applications\product\src\org\ofbiz\shipment\thirdparty > you will see the lowlevel code for UPs, USPS, and DHL > I don't use this code, but myown I ported over from a previous application > The USPS is a mock up. > > you can find the service defs in > OfBiz_home\applications\product\servicedef > > OfBiz_home\applications\product\config\shipment.properties > will give you some of the static config data. > > in short in > UspsMockApiServlet > you do a post then do a get for something like interactive communications. > for some that sends to a url, Like a webstore posting a order, or a > supplier posting inventory, you > put a line in the conroller.xml > > <!-- these orginate from vendor as Posts --> > <request-map uri="realtimeorders"> > <security https="true" direct-request="true"/> > <event type="java" > path="com.businessesnetwork.realtime.vendorTimeEvents" > invoke="inventory"/> > <response name="success" type="view" value="venordorsuccess"/> > <response name="error" type="view" value="vendorerror"/> > </request-map> > > > and the class that has the real time event has a > public static String inventory(HttpServletRequest request, > HttpServletResponse response) {}: > that processes the request. > > note if you want the status to show up in the header and show in the > access log use > response.setHeader("status", "200 OK");//let sender know > everything is ok > response.setStatus(200);//put ok in the access log. > > > Ken Lee sent the following on 3/26/2007 3:20 PM: > > BJ, my apology if these should be obvious to more experience ones, I am > not > > very fluent with the ofbiz at this point. In your reply, it sounds like > > ofbiz has services or low level codes that can be config to communicate > > with > > USPS via xml messging? that would be a good starting point if that's the > > case. Thanks for the reply and your advice on processing xml strings, > I'll > > keep that in mind. > > > > Ken > > > > On 3/26/07, BJ Freeman <[hidden email]> wrote: > >> > >> it is in here as the responses to xml responses from USP and USPS. > >> I use http and https from external sources to receive orders in XML > >> format. > >> I have found it is easier to write the xml to a file than try to > process > >> it > >> immediately. I may receive as many as 95 xml files per sec. > >> I then have a service that processes the xml files > >> > >> Ken Lee wrote: > >> > Hello, I am doing research for currently available open-source > >> > tools/framework to build a e-commerce site for a small > business. Ofbiz > >> > seems to offer a great fit and much more, which is wonderful. > >> > > >> > A unique requirement for this project is the product catalog comes > from > >> a > >> > data-feed, via xml messaging services over http. (not quite sure if > >> these > >> > services are based on established standards like soap, most likely > not) > >> > Anyway, I did some search in ofbiz's documentations and mailing list, > >> tried > >> > to find existing example/use case for messaging support but couldn't > >> find > >> > anything. Before I re-invent the wheel, I am wondering if ofbiz > >> already > >> > has > >> > any form of supports for xml messaging services where I can use as a > >> > starting point for modification. If not, what's recommended > >> > approach/practice to implement such service. Any help or questions > >> > would be > >> > greatly appreciated. > >> > > >> > Ken > >> > > >> > > > |
Free forum by Nabble | Edit this page |