Hello,

I have tried updating a record in eAsee SDOM using http put method.
It is not executing and continuing executing further.

i added org.apache.httpcomponents/httpclient/4.5.0 bundle as well.
Please provide me some solution.

Please see the below code : 

After the control comes to executeMethod = httpClient.executeMethod(m1); it
doesnt go further and instead it goes to the calling method.

HttpMethod m1 = new PutMethod(fetchURL.toString());

m1.setRequestHeader("Content-Type","application/json");
m1.addRequestHeader("Accept", "application/json");
m1.addRequestHeader("OSLC-Core-Version", "2.0");
System.out.println("m1:::::::::::::: " + m1);
                                        
executeMethod = httpClient.executeMethod(m1);
System.out.println("After exec method..." );

My manifest file import statement :

Import-Package: org.osgi.framework,org.apache.camel,
org.apache.camel.impl,org.apache.camel.builder,org.apache.camel.builder.xml,
org.apache.camel.model,org.apache.camel.component,org.apache.camel.component.http,org.apache.camel.core.osgi,org.apache.camel.spi,org.apache.xerces.jaxp,org.apache.xerces.parsers,org.xml.sax,org.xml.sax.helpers,org.apache.xerces.impl.dv.dtd,org.apache.xerces.impl.dv.xs,org.apache.commons.httpclient,org.apache.commons.httpclient.auth.w3c.dom,javax.xml.parsers



--
View this message in context: 
http://karaf.922171.n3.nabble.com/HttpPUT-is-not-working-in-karaf-tp4046346.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Reply via email to