Trying to figure out the best way to handle this, but since I essentially work alone, i figured that SO community could help. Not looking for code, just ideas.
I am developing a web app for my company. Total rebuild. We are moving the product search from a database table we update nightly to a SOAP service that stores info for all devices in our industry (semiconductors). Personally I wish it were in the DB still, but the decision was made before I started, but anywho...
The SOAP publisher allows us to use essentially a开发者_如何学编程ny parameter we would like about a product in the output, but restricts the input params to two, part # and manufacturer.
Long story short is they suggest taking the result set they provide and winnowing it down via search filters on our side.
Here is my (planned) approach:
- make initial request via SOAP
- if request returns 0, message user else continue
- Take SOAP response (WILL BE LIMITED TO 150 RESULTS MAX) and
- convert to json
- Send json to view and use javascript/jquery to page and filter
- If user has js disabled, display all results.
Alternate options involve using / filtering php arrays
I haven't done much beyond writing the small SOAP handler script. I now have results sets but am trying to figure how best to handle.
精彩评论