I created a simple service using the Form Builder gui. When I click the
Test button in the service dialog I get a 404 HTML response. Yet when I test the entire form my service works. Why does the test feature fail? Also, how are you supposed to test your service with specific test data in the request body? I noticed the builder is labeled "preview", when is the final release? (3.9, 4.0?) On a side note, when I get HTTP errors in Orbeon the log doesn't show the url it was trying to access; this makes it frustrating to debug. I see error dumps like this: ERROR 2010-12-09 16:42:33,151 [http-8080-1][] org.orbeon.oxf.xforms.processor.XFormsServer - xforms-submit-error - response {status code: "405"} ERROR 2010-12-09 16:42:33,151 [http-8080-1][] org.orbeon.oxf.xforms.processor.XFormsServer - xforms-submit-error - response headers {content-type: "text/html;charset=utf-8", content-length: "980", server: "Apache-Coyote/1.1", date: "Fri, 10 Dec 2010 00:42:33 GMT"} ERROR 2010-12-09 16:42:33,151 [http-8080-1][] org.orbeon.oxf.xforms.processor.XFormsServer - xforms-submit-error - setting body string {body: " <html><head><title>Apache Tomcat/6.0.29 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 405 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The specified HTTP method is not allowed for the requested resource ().</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.29</h3></body></html>"} ERROR 2010-12-09 16:42:33,151 [http-8080-1][] org.orbeon.oxf.xforms.processor.XFormsServer - xforms-submit-error - setting throwable {throwable: "org.orbeon.oxf.xforms.submission.XFormsSubmissionException: (processing submission response): xforms:submission for submission id: Hello-submission, error code received when submitting instance: 405 null, line -1, column -1: xforms:submission for submission id: Hello-submission, error code received when submitting instance: 405 at org.orbeon.oxf.xforms.submission.XFormsModelSubmission.getReplacer(XFormsModelSubmission.java:631) at org.orbeon.oxf.xforms.submission.RegularSubmission$1.call(RegularSubmission.java:106) at org.orbeon.oxf.xforms.submission.RegularSubmission$1.call(RegularSubmission.java:81) [snip] Nowhere do I see the url for the request. Is there a reason for this? Also, it would improve readability if instead of 4 errors messages you just log once and put the different groups of information on new lines. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Arlo,
Yes, the Test button in the HTTP Service dialog just sends the XML body you specified. It is currently not populated by the current values of the controls, for example. Maybe that explains why you are getting an error in this case? To test the service beyond that you can use the Form Builder Test button, which runs the whole form and will also run whatever services you have defined. The "Preview" label will be gone in Orbeon Forms 3.9. Thanks for the feedback on logging. In the meanwhile you can log more submission information by adding the submission-details token to oxf.xforms.logging.debug in your properties-local.xml: <property as="xs:NMTOKENS" name="oxf.xforms.logging.debug" value="document model submission control event action analysis server html submission-details"/> -Erik On Thu, Dec 9, 2010 at 5:14 PM, Arlo White <[hidden email]> wrote: > I created a simple service using the Form Builder gui. When I click the Test > button in the service dialog I get a 404 HTML response. Yet when I test the > entire form my service works. Why does the test feature fail? > > Also, how are you supposed to test your service with specific test data in > the request body? > > I noticed the builder is labeled "preview", when is the final release? (3.9, > 4.0?) > > On a side note, when I get HTTP errors in Orbeon the log doesn't show the > url it was trying to access; this makes it frustrating to debug. I see error > dumps like this: > > ERROR 2010-12-09 16:42:33,151 [http-8080-1][] > org.orbeon.oxf.xforms.processor.XFormsServer - xforms-submit-error - > response {status code: "405"} > ERROR 2010-12-09 16:42:33,151 [http-8080-1][] > org.orbeon.oxf.xforms.processor.XFormsServer - xforms-submit-error - > response headers {content-type: "text/html;charset=utf-8", content-length: > "980", server: "Apache-Coyote/1.1", date: "Fri, 10 Dec 2010 00:42:33 GMT"} > ERROR 2010-12-09 16:42:33,151 [http-8080-1][] > org.orbeon.oxf.xforms.processor.XFormsServer - xforms-submit-error - setting > body string {body: " > <html><head><title>Apache Tomcat/6.0.29 - Error report</title><style><!--H1 > {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} > H2 > {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} > H3 > {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} > BODY > {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B > {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} > P > {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A > {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> > </head><body><h1>HTTP Status 405 - </h1><HR size="1" > noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> > <u></u></p><p><b>description</b> <u>The specified HTTP method is not allowed > for the requested resource ().</u></p><HR size="1" > noshade="noshade"><h3>Apache Tomcat/6.0.29</h3></body></html>"} > ERROR 2010-12-09 16:42:33,151 [http-8080-1][] > org.orbeon.oxf.xforms.processor.XFormsServer - xforms-submit-error - setting > throwable {throwable: > "org.orbeon.oxf.xforms.submission.XFormsSubmissionException: (processing > submission response): xforms:submission for submission id: Hello-submission, > error code received when submitting instance: 405 > null, line -1, column -1: xforms:submission for submission id: > Hello-submission, error code received when submitting instance: 405 > at > org.orbeon.oxf.xforms.submission.XFormsModelSubmission.getReplacer(XFormsModelSubmission.java:631) > at > org.orbeon.oxf.xforms.submission.RegularSubmission$1.call(RegularSubmission.java:106) > at > org.orbeon.oxf.xforms.submission.RegularSubmission$1.call(RegularSubmission.java:81) > [snip] > > Nowhere do I see the url for the request. Is there a reason for this? > Also, it would improve readability if instead of 4 errors messages you just > log once and put the different groups of information on new lines. > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |