--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/51c004a4-c12f-49d9-b57d-3e6ee698261d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/38e858ae-21ae-4ed7-93a9-6c404dcfd1bf%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/6a6442f2-53b4-4295-9a9e-fc04cbaa27bc%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/f06f7603-62c9-4382-b14d-14b6e6c5f145%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/d7fddb89-2f80-4622-bb0f-853b21ce9cc6%40googlegroups.com.
/*
* Enable CORS
*/
CorsConfiguration config = new CorsConfiguration();
CorsInterceptor corsInterceptor = new CorsInterceptor(config);
config.addAllowedHeader("Origin");
config.addAllowedHeader("Accept");
config.addAllowedHeader("X-Requested-With");
config.addAllowedHeader("Content-Type");
config.addAllowedHeader("Access-Control-Request-Method");
config.addAllowedHeader("Access-Control-Request-Headers");
config.addAllowedOrigin("*");
config.addExposedHeader("Location");
config.addExposedHeader("Content-Location");
config.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
this.registerInterceptor(corsInterceptor);
Regards
Ram
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/CALL%2BWMMEvdnxCEUkzMs%2Bw%2Bxwc_T-GrJhfmVRunf9cOsDRGYhHw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/d7fddb89-2f80-4622-bb0f-853b21ce9cc6%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/baedd839-d268-40ee-a5c5-b09db6915021%40googlegroups.com.
Hi James,HTTP - PATCH Operation is working fine if I use the http://localhost:8080/baseDstu3/Patient/52 (both CURL and POSTMAN) , the However same code is not working if I deploy it elsewhere.I am facing the same problem when I invoke HAPI Test server from my Postman and CURL as well.4c327593ec15:log mittalas$ curl -X PATCH -H "Content-Type: application/json-patch+json" --data '[ { "op": "replace", "path": "/gender", "value": "male" } ]' http://hapi-fhir.us-west-2.elasticbeanstalk.com/baseDstu3/Patient/52
curl: (52) Empty reply from server
mittalas$ curl -X PATCH -H "Content-Type: application/json-patch+json" --data '[ { "op": "replace", "path": "/gender", "value": "male" } ]' http://fhirtest.uhn.ca/baseDstu3/Patint/70285
curl: (52) Empty reply from server
4c327593ec15:log mittalas$ curl -X PATCH -H "Content-Type: application/json-patch+json" --data ' { "op": "replace", "path": "/gender", "value": "male" }
]' https://fhirtest.uhn.ca/baseDstu3/Patient/70285
curl: (52) Empty reply from server
HTTPS is working fine :
mittalas$ curl -X PATCH -H "Content-Type: application/json-patch+json" --data '[ { "op": "replace", "path": "/gender", "value": "male" } ]' https://fhirtest.uhn.ca/baseDstu3/Patient/70285
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully created resource "Patient/70285/_history/6" in 27ms</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully created resource \"Patient/70285/_history/6\" in 27ms"
}
]
}
mittalas$ curl -X PATCH -H "Content-Type: application/json-patch+json" --data '[ { "op": "replace", "path": "/gender", "value": "male" } ]' http://localhost:8080/baseDstu3/Patient/52
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully created resource "Patient/52/_history/5" in 1,829ms</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully created resource \"Patient/52/_history/5\" in 1,829ms"
}
]
}
Pls if suggest me if you have any thoughts?
RegardsRamOn Wed, Jul 12, 2017 at 9:23 PM, Ram Mittala <seetharam...@gmail.com> wrote:Thanks James for your help.RegardsRamOn Wed, Jul 12, 2017 at 4:45 PM, James Agnew <james...@gmail.com> wrote:Glad it worked!sent from my phone.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/c25ec459-2be8-46dd-87ea-8522a31ff18d%40googlegroups.com.
In my local sever, I'm also seeing that behavior that I get no response at all to a PATCH request. I didn't do anything to configure CORS support. What does CORS have to do with PATCH specifically? Except that I guess there's a list of verbs supported in the CORS config. Should it not be working even if I don't have CORS?
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/6172178f-57b1-47ba-8d55-48e33e6e2850%40googlegroups.com.