Re: org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not Implemented' message

2008-11-18 Thread peterramesh

Hi Daniel,

I'm trying to access the services offered by Entrez utilities web service,
On running a sample java application (
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/DOC/esoap_java_help.html
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/DOC/esoap_java_help.html
) I'm getting 501 error.


- Unable to sendViaPost to
url[http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/soap_adapter_2_0.cgi]
org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceStub.run_eGquery(EUtilsServiceStub.java:1580)
at gov.nih.nlm.ncbi.www.soap.eutils.GetDBCount.main(GetDBCount.java:28)
org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented


Does it meant that the service being not offered to the public?

Thanks in advance,
Rameshkumar



Daniel Hagen wrote:
 
 Hi Pinaki,
 
 this looks like a HTTP issue to me where the SQUID Proxy between client 
 and server does have a problem with the Chunked Transfer Encoding the 
 client uses in conjunction with a HTTP POST request.
 
 Squid's support for Chunked Transfer Encoding when communicating with 
 the client is incomplete; I have seen the exact behaviour you described 
 for HTTP PUT requests but was unaware that this also is the case for 
 HTTP POST.
 
 Maybe you could try to convince your webservice client not to use 
 Chunked Transfer Encoding but to
 - either close the HTTP connection after each request (which can be a 
 performance problem when you are making many requests in a short time
 frame)
 - or send a Content-Length along with the request
 
 Another workaround would be to disable the use of a proxy if your 
 environment allows you to connect to the Webservice server directly.
 
 Best regards
 
 Daniel
 
 Pinaki Chandrasekhar schrieb:
 Hello Friends,
 I have been trying to figure out the problem for a few days and really
 need
 some help.
 My j2ee application integrates with IPX gateway for Short messaging
 service.
 This is implemented as a WebService by IPX and they provided me with thge
 precompiled client stub files ( compiled using axis 2.1.1.1)
 I am new to web services and axis. I went through all the installation
 and
 tutorial successfully with a helloworld ws example and the axis2userguide
 example that is provided.
 However I am stuck when I try integrating with my existing j2ee
 application.
 My j2ee app is the client for the web service and I compiled it
 successfully
 with the client stubs set on the classpath. But I keep getting this error
 whenever it needs to send the message:
 org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not
 Implemented'
 
 I have the server logs here for your reference.
 
 I may be messing  things up in configuring the whole app on the server
 with
 axis 2
 
 I am using the Jboss-4.0.3Sp1 as the server and also have axis2 installed
 on
 the same machine with the AXIS2_HOME set properly. I also have the
 axis.war
 file deployed on the server.
 
 Please, can someone help when to rectify the problem.
 
 Thanks in advance,
 
 pc
 
 
 
 this is the server log when I send a short code through my phone. It goes
 to
 the iPX gateway who reroute it back to my application. It seems like the
 message is all getting prepared and throws up an error while about to
 send.
 
 2008-04-23 10:31:15,769 INFO [ReceiveSMSServlet] Receive SMS Message
 
 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] SMS
 Received:1208917875769
 
 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
 ---TimeStamp
 : 20080423 04:32:44
 
 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
 ---Operator :
 DiGi
 
 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
 ---MessageId
 : 1-1703551585
 
 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---Message
 :
 Store fs 009
 
 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX
 Receive ---DestinationAddress : 32088
 
 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX
 Receive ---OriginatorAddress : 60169063492
 
 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] Local
 Context.PROVIDER_URL: 

Re: org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not Implemented' message

2008-11-18 Thread Amila Suriarachchi
On Tue, Nov 18, 2008 at 5:30 PM, peterramesh [EMAIL PROTECTED] wrote:


 Hi Daniel,

 I'm trying to access the services offered by Entrez utilities web service,
 On running a sample java application (

 http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/DOC/esoap_java_help.html

 http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/DOC/esoap_java_help.html
 ) I'm getting 501 error.


 - Unable to sendViaPost to
 url[
 http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/soap_adapter_2_0.cgi
 ]
 org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
at

 org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)


this means the problem is with the response.  Have look at the response.

thanks,
Amila.


at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at

 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
at

 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at

 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at

 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at

 gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceStub.run_eGquery(EUtilsServiceStub.java:1580)
at
 gov.nih.nlm.ncbi.www.soap.eutils.GetDBCount.main(GetDBCount.java:28)
 org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented


 Does it meant that the service being not offered to the public?

 Thanks in advance,
 Rameshkumar



 Daniel Hagen wrote:
 
  Hi Pinaki,
 
  this looks like a HTTP issue to me where the SQUID Proxy between client
  and server does have a problem with the Chunked Transfer Encoding the
  client uses in conjunction with a HTTP POST request.
 
  Squid's support for Chunked Transfer Encoding when communicating with
  the client is incomplete; I have seen the exact behaviour you described
  for HTTP PUT requests but was unaware that this also is the case for
  HTTP POST.
 
  Maybe you could try to convince your webservice client not to use
  Chunked Transfer Encoding but to
  - either close the HTTP connection after each request (which can be a
  performance problem when you are making many requests in a short time
  frame)
  - or send a Content-Length along with the request
 
  Another workaround would be to disable the use of a proxy if your
  environment allows you to connect to the Webservice server directly.
 
  Best regards
 
  Daniel
 
  Pinaki Chandrasekhar schrieb:
  Hello Friends,
  I have been trying to figure out the problem for a few days and really
  need
  some help.
  My j2ee application integrates with IPX gateway for Short messaging
  service.
  This is implemented as a WebService by IPX and they provided me with
 thge
  precompiled client stub files ( compiled using axis 2.1.1.1)
  I am new to web services and axis. I went through all the installation
  and
  tutorial successfully with a helloworld ws example and the
 axis2userguide
  example that is provided.
  However I am stuck when I try integrating with my existing j2ee
  application.
  My j2ee app is the client for the web service and I compiled it
  successfully
  with the client stubs set on the classpath. But I keep getting this
 error
  whenever it needs to send the message:
  org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not
  Implemented'
 
  I have the server logs here for your reference.
 
  I may be messing  things up in configuring the whole app on the server
  with
  axis 2
 
  I am using the Jboss-4.0.3Sp1 as the server and also have axis2
 installed
  on
  the same machine with the AXIS2_HOME set properly. I also have the
  axis.war
  file deployed on the server.
 
  Please, can someone help when to rectify the problem.
 
  Thanks in advance,
 
  pc
 
 
 
  this is the server log when I send a short code through my phone. It
 goes
  to
  the iPX gateway who reroute it back to my application. It seems like the
  message is all getting prepared and throws up an error while about to
  send.
 
  2008-04-23 10:31:15,769 INFO [ReceiveSMSServlet] Receive SMS Message
 
  2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] SMS
  Received:1208917875769
 
  2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
  ---TimeStamp
  : 20080423 04:32:44
 
  2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
  ---Operator :
  DiGi
 
  2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
  ---MessageId
  : 1-1703551585
 
  2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
 ---Message
  :
  Store fs 009
 
  2008-04-23 

Re: org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not Implemented' message

2008-11-18 Thread ibrahim demir
Ok. Thanks for your quick reply. so I must find a way to refractor them or to 
clear them using Eclipse.

Yours.

 Ibrahim DEMIR
CyberSoft Yazilim Muh.
http://www.ibrahimdemir.org

 
   
 





From: Amila Suriarachchi [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, November 18, 2008 4:18:47 PM
Subject: Re: org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not 
Implemented' message




On Tue, Nov 18, 2008 at 5:30 PM, peterramesh [EMAIL PROTECTED] wrote:


Hi Daniel,

I'm trying to access the services offered by Entrez utilities web service,
On running a sample java application (
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/DOC/esoap_java_help.html
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/DOC/esoap_java_help.html
) I'm getting 501 error.


- Unable to sendViaPost to
url[http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/soap_adapter_2_0.cgi]
org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
   at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)

this means the problem is with the response.  Have look at the response.

thanks,
Amila. 


   at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
   at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
   at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
   at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
   at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
   at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
   at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
   at
gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceStub.run_eGquery(EUtilsServiceStub.java:1580)
   at gov.nih.nlm.ncbi.www.soap.eutils.GetDBCount.main(GetDBCount.java:28)
org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented


Does it meant that the service being not offered to the public?

Thanks in advance,
Rameshkumar




Daniel Hagen wrote:

 Hi Pinaki,

 this looks like a HTTP issue to me where the SQUID Proxy between client
 and server does have a problem with the Chunked Transfer Encoding the
 client uses in conjunction with a HTTP POST request.

 Squid's support for Chunked Transfer Encoding when communicating with
 the client is incomplete; I have seen the exact behaviour you described
 for HTTP PUT requests but was unaware that this also is the case for
 HTTP POST.

 Maybe you could try to convince your webservice client not to use
 Chunked Transfer Encoding but to
 - either close the HTTP connection after each request (which can be a
 performance problem when you are making many requests in a short time
 frame)
 - or send a Content-Length along with the request

 Another workaround would be to disable the use of a proxy if your
 environment allows you to connect to the Webservice server directly.

 Best regards

 Daniel

 Pinaki Chandrasekhar schrieb:
 Hello Friends,
 I have been trying to figure out the problem for a few days and really
 need
 some help.
 My j2ee application integrates with IPX gateway for Short messaging
 service.
 This is implemented as a WebService by IPX and they provided me with thge
 precompiled client stub files ( compiled using axis 2.1.1.1)
 I am new to web services and axis. I went through all the installation
 and
 tutorial successfully with a helloworld ws example and the axis2userguide
 example that is provided.
 However I am stuck when I try integrating with my existing j2ee
 application.
 My j2ee app is the client for the web service and I compiled it
 successfully
 with the client stubs set on the classpath. But I keep getting this error
 whenever it needs to send the message:
 org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not
 Implemented'

 I have the server logs here for your reference.

 I may be messing  things up in configuring the whole app on the server
 with
 axis 2

 I am using the Jboss-4.0.3Sp1 as the server and also have axis2 installed
 on
 the same machine with the AXIS2_HOME set properly. I also have the
 axis.war
 file deployed on the server.

 Please, can someone help when to rectify the problem.

 Thanks in advance,

 pc



 this is the server log when I send a short code through my phone. It goes
 to
 the iPX gateway who reroute it back to my application. It seems like the
 message is all getting prepared and throws up an error while about to
 send.

 2008-04-23 10:31:15,769 INFO [ReceiveSMSServlet] Receive SMS Message

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] SMS
 Received:1208917875769

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive

Re: org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not Implemented' message

2008-11-18 Thread Amila Suriarachchi
On Wed, Apr 23, 2008 at 8:58 AM, Pinaki Chandrasekhar 
[EMAIL PROTECTED] wrote:

  Hello Friends,
 I have been trying to figure out the problem for a few days and really need
 some help.
 My j2ee application integrates with IPX gateway for Short messaging
 service.
 This is implemented as a WebService by IPX and they provided me with thge
 precompiled client stub files ( compiled using axis 2.1.1.1)


you don't need the stubs files to talk to a web service. Generate the client
code using the wsdl2java tool.
Try to call to your service using a standalone client (I mean  no need to
deploy it in a jboss server).
This way you can isolate the problem easily.

thanks,
Amila.

 I am new to web services and axis. I went through all the installation and
 tutorial successfully with a helloworld ws example and the axis2userguide
 example that is provided.
 However I am stuck when I try integrating with my existing j2ee
 application. My j2ee app is the client for the web service and I compiled it
 successfully with the client stubs set on the classpath. But I keep getting
 this error whenever it needs to send the message:

 org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not
 Implemented'

 I have the server logs here for your reference.

 I may be messing  things up in configuring the whole app on the server with
 axis 2

 I am using the Jboss-4.0.3Sp1 as the server and also have axis2 installed
 on the same machine with the AXIS2_HOME set properly. I also have the
 axis.war file deployed on the server.

 Please, can someone help when to rectify the problem.

 Thanks in advance,

 pc



 this is the server log when I send a short code through my phone. It goes
 to the iPX gateway who reroute it back to my application. It seems like the
 message is all getting prepared and throws up an error while about to send.

 2008-04-23 10:31:15,769 INFO [ReceiveSMSServlet] Receive SMS Message

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] SMS
 Received:1208917875769

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---TimeStamp
 : 20080423 04:32:44

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---Operator
 : DiGi

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---MessageId
 : 1-1703551585

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---Message :
 Store fs 009

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
 ---DestinationAddress : 32088

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive
 ---OriginatorAddress : 60169063492

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] Local
 Context.PROVIDER_URL: java.naming.provider.url

 2008-04-23 10:31:15,779 INFO [ContentControllerBean] get content for
 requestCode = fs 009

 2008-04-23 10:31:15,779 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Content#findByKeyword]
 Executing SQL: SELECT DISTINCT t0_c.ContentId, t0_c.Keyword, t0_c.Tariff,
 t0_c.Type, t0_c.Title, t0_c.Status, t0_c.creationDate FROM content t0_c
 WHERE (t0_c.Keyword = ?)

 2008-04-23 10:31:15,789 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.Content] load
 relation SQL: SELECT content.StoreId, store.Name, store.Status,
 store.mobileNumber, store.freeRequestCount FROM content content, store store
 WHERE (content.StoreId=store.StoreId) AND ((content.ContentId=?))

 2008-04-23 10:31:15,799 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Media#findByContent]
 Executing SQL: SELECT DISTINCT t0_m.MediaId, t0_m.fileSize, t0_m.fileName,
 t0_m.Height, t0_m.Width FROM media t0_m, content t1_m_content WHERE
 ((t1_m_content.ContentId=?) AND t0_m.ContentId=t1_m_content.ContentId)

 2008-04-23 10:31:15,809 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Store#findStore] Executing
 SQL: SELECT DISTINCT t0_s.StoreId FROM store t0_s WHERE (t0_s.StoreId = ?)

 2008-04-23 10:31:15,819 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Setting#findSetting]
 Executing SQL: SELECT t0_s.SettingId, t0_s.SmsServerPassword,
 t0_s.SmsServer, t0_s.SmsUrl, t0_s.SmsLogin, t0_s.SmsPassword,
 t0_s.SmsKeyword, t0_s.SmsShortcode, t0_s.SmsService, t0_s.wapGatewayUrl,
 t0_s.freeDownload, t0_s.mTCost, t0_s.operatorPercentage, t0_s.iPXPercentage
 FROM setting t0_s

 2008-04-23 10:31:16,450 DEBUG [httpclient.wire.header]  POST
 /api/services2/SmsUtilApiService HTTP/1.1[\r][\n]

 2008-04-23 10:31:16,490 DEBUG [httpclient.wire.header]  SOAPAction:
 tns:#sendWapPushSm[\r][\n]

 2008-04-23 10:31:16,490 DEBUG [httpclient.wire.header]  User-Agent:
 Axis2[\r][\n]

 2008-04-23 10:31:16,490 DEBUG [httpclient.wire.header]  Host:
 asia.ipx.com[\r][\n]

 2008-04-23 10:31:16,490 DEBUG [httpclient.wire.header] 
 Transfer-Encoding: chunked[\r][\n]

 2008-04-23 10:31:16,490 DEBUG [httpclient.wire.header]  Content-Type:
 text/xml; charset=UTF-8[\r][\n]

 2008-04-23 10:31:16,490 DEBUG [httpclient.wire.header]  [\r][\n]

 2008-04-23 10:31:16,610 DEBUG [httpclient.wire.content]  37d[\r][\n]

 2008-04-23 10:31:16,610 DEBUG 

RE: org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not Implemented' message

2008-04-28 Thread Pinaki Chandrasekhar
Thanks Daniel.
I shall try out your recommendations and let you know where I am.
Regards,
Pinaki

-Original Message-
From: Daniel Hagen [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 27, 2008 8:07 PM
To: axis-user@ws.apache.org
Subject: Re: org.apache.axis2.AxisFault: HTTP Transport error : '501' -
'Not Implemented' message


Hi Pinaki,

this looks like a HTTP issue to me where the SQUID Proxy between client
and server does have a problem with the Chunked Transfer Encoding the
client uses in conjunction with a HTTP POST request.

Squid's support for Chunked Transfer Encoding when communicating with
the client is incomplete; I have seen the exact behaviour you described
for HTTP PUT requests but was unaware that this also is the case for
HTTP POST.

Maybe you could try to convince your webservice client not to use
Chunked Transfer Encoding but to
- either close the HTTP connection after each request (which can be a
performance problem when you are making many requests in a short time frame)
- or send a Content-Length along with the request

Another workaround would be to disable the use of a proxy if your
environment allows you to connect to the Webservice server directly.

Best regards

Daniel

Pinaki Chandrasekhar schrieb:
 Hello Friends,
 I have been trying to figure out the problem for a few days and really
need
 some help.
 My j2ee application integrates with IPX gateway for Short messaging
service.
 This is implemented as a WebService by IPX and they provided me with thge
 precompiled client stub files ( compiled using axis 2.1.1.1)
 I am new to web services and axis. I went through all the installation and
 tutorial successfully with a helloworld ws example and the axis2userguide
 example that is provided.
 However I am stuck when I try integrating with my existing j2ee
application.
 My j2ee app is the client for the web service and I compiled it
successfully
 with the client stubs set on the classpath. But I keep getting this error
 whenever it needs to send the message:
 org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not
Implemented'

 I have the server logs here for your reference.

 I may be messing  things up in configuring the whole app on the server
with
 axis 2

 I am using the Jboss-4.0.3Sp1 as the server and also have axis2 installed
on
 the same machine with the AXIS2_HOME set properly. I also have the
axis.war
 file deployed on the server.

 Please, can someone help when to rectify the problem.

 Thanks in advance,

 pc



 this is the server log when I send a short code through my phone. It goes
to
 the iPX gateway who reroute it back to my application. It seems like the
 message is all getting prepared and throws up an error while about to
send.

 2008-04-23 10:31:15,769 INFO [ReceiveSMSServlet] Receive SMS Message

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] SMS
Received:1208917875769

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX
Receive ---TimeStamp
 : 20080423 04:32:44

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---Operator
:
 DiGi

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX
Receive ---MessageId
 : 1-1703551585

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---Message
:
 Store fs 009

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX
 Receive ---DestinationAddress : 32088

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX
 Receive ---OriginatorAddress : 60169063492

 2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] Local
 Context.PROVIDER_URL: java.naming.provider.url

 2008-04-23 10:31:15,779 INFO [ContentControllerBean] get content for
 requestCode = fs 009

 2008-04-23 10:31:15,779 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Content#findByKeyword]
 Executing SQL: SELECT DISTINCT t0_c.ContentId, t0_c.Keyword, t0_c.Tariff,
 t0_c.Type, t0_c.Title, t0_c.Status, t0_c.creationDate FROM content t0_c
 WHERE (t0_c.Keyword = ?)

 2008-04-23 10:31:15,789 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.Content] load
 relation SQL: SELECT content.StoreId, store.Name, store.Status,
 store.mobileNumber, store.freeRequestCount FROM content content, store
store
 WHERE (content.StoreId=store.StoreId) AND ((content.ContentId=?))

 2008-04-23 10:31:15,799 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Media#findByContent]
 Executing SQL: SELECT DISTINCT t0_m.MediaId, t0_m.fileSize, t0_m.fileName,
 t0_m.Height, t0_m.Width FROM media t0_m, content t1_m_content WHERE
 ((t1_m_content.ContentId=?) AND t0_m.ContentId=t1_m_content.ContentId)

 2008-04-23 10:31:15,809 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Store#findStore] Executing
 SQL: SELECT DISTINCT t0_s.StoreId FROM store t0_s WHERE (t0_s.StoreId = ?)

 2008-04-23 10:31:15,819 DEBUG
 [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Setting#findSetting]
 Executing SQL: SELECT t0_s.SettingId, t0_s.SmsServerPassword,
 t0_s.SmsServer, t0_s.SmsUrl, t0_s.SmsLogin, t0_s.SmsPassword,
 t0_s.SmsKeyword, t0_s.SmsShortcode

Re: org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not Implemented' message

2008-04-27 Thread Daniel Hagen

Hi Pinaki,

this looks like a HTTP issue to me where the SQUID Proxy between client 
and server does have a problem with the Chunked Transfer Encoding the 
client uses in conjunction with a HTTP POST request.


Squid's support for Chunked Transfer Encoding when communicating with 
the client is incomplete; I have seen the exact behaviour you described 
for HTTP PUT requests but was unaware that this also is the case for 
HTTP POST.


Maybe you could try to convince your webservice client not to use 
Chunked Transfer Encoding but to
- either close the HTTP connection after each request (which can be a 
performance problem when you are making many requests in a short time frame)

- or send a Content-Length along with the request

Another workaround would be to disable the use of a proxy if your 
environment allows you to connect to the Webservice server directly.


Best regards

Daniel

Pinaki Chandrasekhar schrieb:

Hello Friends,
I have been trying to figure out the problem for a few days and really need
some help.
My j2ee application integrates with IPX gateway for Short messaging service.
This is implemented as a WebService by IPX and they provided me with thge
precompiled client stub files ( compiled using axis 2.1.1.1)
I am new to web services and axis. I went through all the installation and
tutorial successfully with a helloworld ws example and the axis2userguide
example that is provided.
However I am stuck when I try integrating with my existing j2ee application.
My j2ee app is the client for the web service and I compiled it successfully
with the client stubs set on the classpath. But I keep getting this error
whenever it needs to send the message:
org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Not Implemented'

I have the server logs here for your reference.

I may be messing  things up in configuring the whole app on the server with
axis 2

I am using the Jboss-4.0.3Sp1 as the server and also have axis2 installed on
the same machine with the AXIS2_HOME set properly. I also have the axis.war
file deployed on the server.

Please, can someone help when to rectify the problem.

Thanks in advance,

pc



this is the server log when I send a short code through my phone. It goes to
the iPX gateway who reroute it back to my application. It seems like the
message is all getting prepared and throws up an error while about to send.

2008-04-23 10:31:15,769 INFO [ReceiveSMSServlet] Receive SMS Message

2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] SMS Received:1208917875769

2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---TimeStamp
: 20080423 04:32:44

2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---Operator :
DiGi

2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---MessageId
: 1-1703551585

2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX Receive ---Message :
Store fs 009

2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX
Receive ---DestinationAddress : 32088

2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] IPX
Receive ---OriginatorAddress : 60169063492

2008-04-23 10:31:15,769 DEBUG [ReceiveSMSServlet] Local
Context.PROVIDER_URL: java.naming.provider.url

2008-04-23 10:31:15,779 INFO [ContentControllerBean] get content for
requestCode = fs 009

2008-04-23 10:31:15,779 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Content#findByKeyword]
Executing SQL: SELECT DISTINCT t0_c.ContentId, t0_c.Keyword, t0_c.Tariff,
t0_c.Type, t0_c.Title, t0_c.Status, t0_c.creationDate FROM content t0_c
WHERE (t0_c.Keyword = ?)

2008-04-23 10:31:15,789 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.Content] load
relation SQL: SELECT content.StoreId, store.Name, store.Status,
store.mobileNumber, store.freeRequestCount FROM content content, store store
WHERE (content.StoreId=store.StoreId) AND ((content.ContentId=?))

2008-04-23 10:31:15,799 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Media#findByContent]
Executing SQL: SELECT DISTINCT t0_m.MediaId, t0_m.fileSize, t0_m.fileName,
t0_m.Height, t0_m.Width FROM media t0_m, content t1_m_content WHERE
((t1_m_content.ContentId=?) AND t0_m.ContentId=t1_m_content.ContentId)

2008-04-23 10:31:15,809 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Store#findStore] Executing
SQL: SELECT DISTINCT t0_s.StoreId FROM store t0_s WHERE (t0_s.StoreId = ?)

2008-04-23 10:31:15,819 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Setting#findSetting]
Executing SQL: SELECT t0_s.SettingId, t0_s.SmsServerPassword,
t0_s.SmsServer, t0_s.SmsUrl, t0_s.SmsLogin, t0_s.SmsPassword,
t0_s.SmsKeyword, t0_s.SmsShortcode, t0_s.SmsService, t0_s.wapGatewayUrl,
t0_s.freeDownload, t0_s.mTCost, t0_s.operatorPercentage, t0_s.iPXPercentage
FROM setting t0_s

2008-04-23 10:31:16,450 DEBUG [httpclient.wire.header]  POST
/api/services2/SmsUtilApiService HTTP/1.1[\r][\n]

2008-04-23 10:31:16,490 DEBUG [httpclient.wire.header]  SOAPAction:
tns:#sendWapPushSm[\r][\n]

2008-04-23 10:31:16,490 DEBUG