I would like to share one of my experience which I have had with Web services API used with portal environment (using portlets). In this issue, what I found is, the issue is not related to Web services, XML and portal. This error occurs due to invalid certificate which is used in portal environment. The main cause of this issue is, you are preparing request for HTTPS URL and your portal is not using valid certificate. So what you need to do is? update your certificate and restart your App server and portal server (depending on your environment). Your issue will get resolved. Alternatively, if you do not want to update your certificate you would need to change the configuration of server for which you have prepared URL. In my case, I am preparing URL for Exchange server (from portal) and the URL is,
https://<Exchange server host>/EWS/ exchange.asmx
So you need to change your Exchange server configuration for HTTP (URL would be start from HTTP not with HTTPs).
For your information, the error details are,
[4/21/11 20:04:30:081 IST] 00000055 HTTPSender I org.apache.axis2.transport.
http.HTTPSender sendViaPost Unable to sendViaPost to url[https://<Exchange server host>/EWS/ exchange.asmx]
org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault. makeFault(AxisFault.java:430)
at org.apache.axis2.transport. http.SOAPMessageFormatter. writeTo(SOAPMessageFormatter. java:83)
at org.apache.axis2.transport. http.AxisRequestEntity. writeRequest( AxisRequestEntity.java:84)
at org.apache.commons.httpclient. methods.EntityEnclosingMethod. writeRequestBody( EntityEnclosingMethod.java: 495)
at org.apache.commons.httpclient. HttpMethodBase.writeRequest( HttpMethodBase.java:1973)
at org.apache.commons.httpclient. HttpMethodBase.execute( HttpMethodBase.java:993)
at org.apache.commons.httpclient. HttpMethodDirector. executeWithRetry( HttpMethodDirector.java:397)
at org.apache.commons.httpclient. HttpMethodDirector. executeMethod( HttpMethodDirector.java:170)
at org.apache.commons.httpclient. HttpClient.executeMethod( HttpClient.java:396)
at org.apache.commons.httpclient. HttpClient.executeMethod( HttpClient.java:346)
at org.apache.axis2.transport. http.AbstractHTTPSender. executeMethod( AbstractHTTPSender.java:557)
at org.apache.axis2.transport. http.HTTPSender.sendViaPost( HTTPSender.java:199)
at org.apache.axis2.transport. http.HTTPSender.send( HTTPSender.java:76)
at org.apache.axis2.transport. http. CommonsHTTPTransportSender. writeMessageWithCommons( CommonsHTTPTransportSender. java:400)
at org.apache.axis2.transport. http. CommonsHTTPTransportSender. invoke( CommonsHTTPTransportSender. java:225)
at org.apache.axis2.engine. AxisEngine.send(AxisEngine. java:438)
at org.apache.axis2.description. OutInAxisOperationClient.send( OutInAxisOperation.java:402)
at org.apache.axis2.description. OutInAxisOperationClient. executeImpl( OutInAxisOperation.java:229)
at org.apache.axis2.client. OperationClient.execute( OperationClient.java:165)
at com.microsoft.schemas. exchange.services._2006. messages.ExchangeServicesStub. findFolder( ExchangeServicesStub.java: 8788)
at com.yash.ews.FindFolders. findFolders(FindFolders.java: 81)
https://<Exchange server host>
So you need to change your Exchange server configuration for HTTP (URL would be start from HTTP not with HTTPs).
For your information, the error details are,
[4/21/11 20:04:30:081 IST] 00000055 HTTPSender I org.apache.axis2.transport.
at org.apache.axis2.AxisFault.
at org.apache.axis2.transport.
at org.apache.axis2.transport.
at org.apache.commons.httpclient.
at org.apache.commons.httpclient.
at org.apache.commons.httpclient.
at org.apache.commons.httpclient.
at org.apache.commons.httpclient.
at org.apache.commons.httpclient.
at org.apache.commons.httpclient.
at org.apache.axis2.transport.
at org.apache.axis2.transport.
at org.apache.axis2.transport.
at org.apache.axis2.transport.
at org.apache.axis2.transport.
at org.apache.axis2.engine.
at org.apache.axis2.description.
at org.apache.axis2.description.
at org.apache.axis2.client.
at com.microsoft.schemas.
at com.yash.ews.FindFolders.
No comments:
Post a Comment