[Progress Communities] [Progress OpenEdge ABL] Forum Post: WebHandler issue

Status
Not open for further replies.
G

goo

Guest
12.0 I have the following handlers in my openedge.properties file: handler42=SPWebHandle : /v1/Coverages/{OrganizationId} handler41=SPWebHandle : /v1/Coverages/{OrganizationId}/getCoverageById/{coverageid} handler40=SPWebHandle : /v1/Coverages/{OrganizationId}/getCoveragesByProductId/{productid} handler39=SPWebHandle : /v1/Customers/{OrganizationId} handler38=SPWebHandle : /v1/Customers/{OrganizationId}/getLatestEventByCustomerId/{customerid} handler37=SPWebHandle : /v1/Customers/{OrganizationId}/listInvoicesByCustomerId/{customerid} handler36=SPWebHandle : /v1/Customers/{OrganizationId}/listDocuments/ handler35=SPWebHandle : /v1/Customers/{OrganizationId}/listDocumentsByCustomerId/{customerid} handler34=SPWebHandle : /v1/Customers/{OrganizationId}/getCustomerBySSN/{ssn} handler33=SPWebHandle : /v1/Customers/{OrganizationId}/getCustomerById/{customerid} handler32=SPWebHandle : /v1/Customers/{OrganizationId}/getCustomerAddressesByCustomerId/{customerid} handler31=SPWebHandle : /v1/Organizations/ handler30=SPWebHandle : /v1/Organizations/{OrganizationId} handler29=SPWebHandle : /v1/PersonRoles/ handler28=SPWebHandle : /v1/PersonRoles/getPersonRoleById/{personroleid} handler27=SPWebHandle : /v1/Persons/{OrganizationId} handler26=POSTWebHandle : /v1/Persons/{OrganizationId}/deletePersonsByCustomerId/{customerid} handler25=POSTWebHandle : /v1/Persons/{OrganizationId}/addPersonByCustomerId/{customerid} handler24=SPWebHandle : /v1/Persons/{OrganizationId}/getPersonsByCustomerId/{customerid} handler23=SPWebHandle : /v1/Persons/{OrganizationId}/getPersonById/{personid} handler22=SPWebHandle : /v1/ProductCategories/{OrganizationId} handler21=SPWebHandle : /v1/ProductCategories/{OrganizationId}/getProductCategoryById/{productcategoryid} handler20=SPWebHandle : /v1/Products/{OrganizationId} handler19=SPWebHandle : /v1/Products/{OrganizationId}/getProductMatrix/ handler18=SPWebHandle : /v1/Products/{OrganizationId}/getProductMatrixByCustomerId/{customerid} handler17=SPWebHandle : /v1/Products/{OrganizationId}/getProductById/{productid} handler16=SPWebHandle : /v1/Products/{OrganizationId}/getProductsByCustomerId/{customerid} handler15=SPWebHandle : /v1/ProductTypes/{OrganizationId} handler14=SPWebHandle : /v1/ProductTypes/{OrganizationId}/getProductTypesByProductCategoryId/{productcategoryid} handler13=SPWebHandle : /v1/ProductTypes/{OrganizationId}/getProductTypeById/{producttypeid} handler12=SPWebHandle : /v1/Token/ handler11=DocumentHandler : /v1/Various/{OrganizationId}/getDocumentById/{documentid} handler10=POSTWebHandle : /v1/Various/{OrganizationId}/getPriceByCoverageId/{coverageid} handler9=POSTWebHandle : /v1/Various/{OrganizationId}/getPricesByProductId/{productid} handler8=POSTWebHandle : /v1/Various/{OrganizationId}/addBelongingByCustomerId/{customerid} handler7=SPWebHandle : /v1/Various/{OrganizationId}/getForeignInsuranceCompanies/ handler6=SPWebHandle : /v1/WebBasket/listWebBasketStatus/ handler5=POSTWebHandle : /v1/WebBasket/{OrganizationId}/deleteWebBasketByCustomerId/{customerid} handler4=POSTWebHandle : /v1/WebBasket/{OrganizationId}/updateWebBasketByCustomerId/{customerid} handler3=SPWebHandle : /v1/WebBasket/{OrganizationId}/getWebBasketById/{webbasketid} handler2=SPWebHandle : /v1/WebBasket/{OrganizationId}/listWebBasketsByCustomerId/{customerid} handler1=SPWebHandle : /v1/WebBasket/{OrganizationId}/getWebBasketByCustomerId/{customerid} Handler 25 is working - giving me correct StatusCode: 400 2020-02-07T11:37:35.140+0100 010608 005328 3 AS-4 ROOT:w:00000003 AS -- TRACE: SINGLETON Non-Void Method 'Progress.Web.InternalWebHandler:HandleRequest' START (Proxy 558792390). 2020-02-07T11:37:35.157+0100 010608 005328 1 AS-4 ROOT:w:00000003 DEBUG ------>:INNNNNNNNE 2020-02-07T11:37:35.158+0100 010608 005328 1 AS-4 ROOT:w:00000003 DEBUG URItemplate:/v1/Persons/{OrganizationId}/addPersonByCustomerId/{customerid} 2020-02-07T11:37:35.158+0100 010608 005328 1 AS-4 ROOT:w:00000003 DEBUG Context: 2020-02-07T11:37:35.158+0100 010608 005328 1 AS-4 ROOT:w:00000003 DEBUG Entity:progress.Json.ObjectModel.JsonArray_1396 2020-02-07T11:37:35.164+0100 010608 005328 1 AS-4 ROOT:w:00000003 DEBUG Content-type: application/json; charset="utf-8" 2020-02-07T11:37:35.164+0100 010608 005328 1 AS-4 ROOT:w:00000003 -- (Procedure: 'HandlePost POSTWebHandle' Line:252) ServiceTable: Persons 2020-02-07T11:37:35.164+0100 010608 005328 1 AS-4 ROOT:w:00000003 -- (Procedure: 'HandlePost POSTWebHandle' Line:252) ServiceMethod: 2020-02-07T11:37:35.295+0100 010608 005328 3 AS-4 ROOT:w:00000003 AS -- TRACE: SINGLETON Non-Void Method (Proxy 558792390) END SUCCESS. It is this handler I have problems with, though I have not testet everything when changing the handlersequence. If I change the handlersequence to the following: handler42=DocumentHandler : /v1/Various/{OrganizationId}/getDocumentById/{documentid} handler41=POSTWebHandle : /v1/Persons/{OrganizationId}/deletePersonsByCustomerId/{customerid} handler40=POSTWebHandle : /v1/Persons/{OrganizationId}/addPersonByCustomerId/{customerid} handler39=POSTWebHandle : /v1/Various/{OrganizationId}/getPriceByCoverageId/{coverageid} handler38=POSTWebHandle : /v1/Various/{OrganizationId}/getPricesByProductId/{productid} handler37=POSTWebHandle : /v1/Various/{OrganizationId}/addBelongingByCustomerId/{customerid} handler36=POSTWebHandle : /v1/WebBasket/{OrganizationId}/deleteWebBasketByCustomerId/{customerid} handler35=POSTWebHandle : /v1/WebBasket/{OrganizationId}/updateWebBasketByCustomerId/{customerid} handler34=SPWebHandle : /v1/Coverages/{OrganizationId} handler33=SPWebHandle : /v1/Coverages/{OrganizationId}/getCoverageById/{coverageid} handler32=SPWebHandle : /v1/Coverages/{OrganizationId}/getCoveragesByProductId/{productid} handler31=SPWebHandle : /v1/Customers/{OrganizationId} handler30=SPWebHandle : /v1/Customers/{OrganizationId}/getLatestEventByCustomerId/{customerid} handler29=SPWebHandle : /v1/Customers/{OrganizationId}/listInvoicesByCustomerId/{customerid} handler28=SPWebHandle : /v1/Customers/{OrganizationId}/listDocuments/ handler27=SPWebHandle : /v1/Customers/{OrganizationId}/listDocumentsByCustomerId/{customerid} handler26=SPWebHandle : /v1/Customers/{OrganizationId}/getCustomerBySSN/{ssn} handler25=SPWebHandle : /v1/Customers/{OrganizationId}/getCustomerById/{customerid} handler24=SPWebHandle : /v1/Customers/{OrganizationId}/getCustomerAddressesByCustomerId/{customerid} handler23=SPWebHandle : /v1/Organizations/ handler22=SPWebHandle : /v1/Organizations/{OrganizationId} handler21=SPWebHandle : /v1/PersonRoles/ handler20=SPWebHandle : /v1/PersonRoles/getPersonRoleById/{personroleid} handler19=SPWebHandle : /v1/Persons/{OrganizationId} handler18=SPWebHandle : /v1/Persons/{OrganizationId}/getPersonsByCustomerId/{customerid} handler17=SPWebHandle : /v1/Persons/{OrganizationId}/getPersonById/{personid} handler16=SPWebHandle : /v1/ProductCategories/{OrganizationId} handler15=SPWebHandle : /v1/ProductCategories/{OrganizationId}/getProductCategoryById/{productcategoryid} handler14=SPWebHandle : /v1/Products/{OrganizationId} handler13=SPWebHandle : /v1/Products/{OrganizationId}/getProductMatrix/ handler12=SPWebHandle : /v1/Products/{OrganizationId}/getProductMatrixByCustomerId/{customerid} handler11=SPWebHandle : /v1/Products/{OrganizationId}/getProductById/{productid} handler10=SPWebHandle : /v1/Products/{OrganizationId}/getProductsByCustomerId/{customerid} handler9=SPWebHandle : /v1/ProductTypes/{OrganizationId} handler8=SPWebHandle : /v1/ProductTypes/{OrganizationId}/getProductTypesByProductCategoryId/{productcategoryid} handler7=SPWebHandle : /v1/ProductTypes/{OrganizationId}/getProductTypeById/{producttypeid} handler6=SPWebHandle : /v1/Token/ handler5=SPWebHandle : /v1/Various/{OrganizationId}/getForeignInsuranceCompanies/ handler4=SPWebHandle : /v1/WebBasket/listWebBasketStatus/ handler3=SPWebHandle : /v1/WebBasket/{OrganizationId}/getWebBasketById/{webbasketid} handler2=SPWebHandle : /v1/WebBasket/{OrganizationId}/listWebBasketsByCustomerId/{customerid} handler1=SPWebHandle : /v1/WebBasket/{OrganizationId}/getWebBasketByCustomerId/{customerid} Handler40 - the same handler that I tested in the other sequence, it gives me a StatusCode: 500 In the agent logfile I get an error saying 2020-02-07T11:31:55.868+0100 014316 010228 3 AS-4 ROOT:w:00000001 AS -- TRACE: SINGLETON Non-Void Method 'Progress.Web.InternalWebHandler:HandleRequest' START (Proxy 558792390). 2020-02-07T11:31:55.967+0100 014316 010228 1 AS-4 ROOT:w:00000001 LogMgrWrtr [OE.W.WebHandler ERROR] Request error for POST /web/v1/Persons/2/addPersonByCustomerId/10220933: status code 500 2020-02-07T11:31:55.967+0100 014316 010228 1 AS-4 ROOT:w:00000001 LogMgrWrtr Error(s) raised: 2020-02-07T11:31:55.967+0100 014316 010228 1 AS-4 ROOT:w:00000001 LogMgrWrtr ReturnValue: METHOD NOT IMPLEMENTED Could anyone tell me where to look for errors? Why is the handle not implemented when I change the sequence?

Continue reading...
 
Status
Not open for further replies.
Top