You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by 卢杨 <ly...@hotmail.com> on 2010/05/02 07:50:50 UTC

Client problem

Dear all,

I create a client project using eclipse and use the wsdl file from axis2c. I can successfully run the Tomcat and can open the jsp files which generate automatically. And in the output tab it shows me:
IWAB0135E An unexpected error has occurred.
java.net.ConnectException
Connection refused: connect
 

My axis2c web service run on apache 2.2 and the client run on Tomcat. Can they run in different server? How can I put axis2c service into Tomcat? In the manual it can only be put into Apache 2.2 without Tomcat.

Yours sincerely,
Jason

Re: Client problem

Posted by 卢杨 <ly...@hotmail.com>.
Dear Chinatana,

This is my request:

- <soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:q0="http://ws.apache.org/axis2/services/Calculator/types" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <q0:add>
  <param_1>2</param_1>
  <param_2>3</param_2>
  </q0:add>
  </soapenv:Body>
  </soapenv:Envelope>

This is the sample code "Calculator" from axis2c.

Yours sincerely,
Jason

--------------------------------------------------
From: "Chintana Wilamuna" <ch...@gmail.com>
Sent: Monday, May 03, 2010 10:09 AM
To: "Apache AXIS C User List" <c-...@axis.apache.org>
Subject: Re: Client problem

> 2010/5/2 卢杨 <ly...@hotmail.com>
>
>> Can the service and client be put in different server?
>
> Yes.
>
>> And I encounter a new problem. I have already put axis2c into Apache 2.2 
>> by the manual in your website. And when I launch the client. It shows me:
>> IWAB0135E An unexpected error has occurred.
>> java.net.ConnectException
>> Connection refused: connect
>> And I start the axis2_http_server.exe the simple server. It got to run 
>> but show this:
>>
>> - <soapenv:Envelope 
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>> - <soapenv:Body>
>> - <soapenv:Fault>
>>   <faultcode>soapenv:Sender</faultcode>
>>   <faultstring>Invalid XML format in request</faultstring>
>>   </soapenv:Fault>
>>   </soapenv:Body>
>>   </soapenv:Envelope>
>>
>> The service side shows me:
>> Calculator service ERROR: invalid XML in request.
>
> Could you please post the request that your client is sending to the 
> service?
>
> You can use TCPMon (http://ws.apache.org/commons/tcpmon/) to catch this.
>
> Bye,
>
>    -Chintana
>
> --
> blog: http://engwar.com/
> photos: http://flickr.com/photos/chintana
> linkedin: http://www.linkedin.com/in/engwar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Re: Client problem

Posted by Chintana Wilamuna <ch...@gmail.com>.
2010/5/2 卢杨 <ly...@hotmail.com>

> Can the service and client be put in different server?

Yes.

> And I encounter a new problem. I have already put axis2c into Apache 2.2 by the manual in your website. And when I launch the client. It shows me:
> IWAB0135E An unexpected error has occurred.
> java.net.ConnectException
> Connection refused: connect
> And I start the axis2_http_server.exe the simple server. It got to run but show this:
>
> - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> - <soapenv:Body>
> - <soapenv:Fault>
>   <faultcode>soapenv:Sender</faultcode>
>   <faultstring>Invalid XML format in request</faultstring>
>   </soapenv:Fault>
>   </soapenv:Body>
>   </soapenv:Envelope>
>
> The service side shows me:
> Calculator service ERROR: invalid XML in request.

Could you please post the request that your client is sending to the service?

You can use TCPMon (http://ws.apache.org/commons/tcpmon/) to catch this.

Bye,

    -Chintana

--
blog: http://engwar.com/
photos: http://flickr.com/photos/chintana
linkedin: http://www.linkedin.com/in/engwar

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Re: Client problem

Posted by 卢杨 <ly...@hotmail.com>.
Dear Nandika,

Can the service and client be put in different server?
And I encounter a new problem. I have already put axis2c into Apache 2.2 by the manual in your website. And when I launch the client. It shows me:
IWAB0135E An unexpected error has occurred.
java.net.ConnectException
Connection refused: connect

And I start the axis2_http_server.exe the simple server. It got to run but show this:

- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
- <soapenv:Body>
- <soapenv:Fault>
  <faultcode>soapenv:Sender</faultcode> 
  <faultstring>Invalid XML format in request</faultstring> 
  </soapenv:Fault>
  </soapenv:Body>
  </soapenv:Envelope>

The service side shows me:
Calculator service ERROR: invalid XML in request.

Yours sincerely,
Jason


From: Nandika Jayawardana 
Sent: Sunday, May 02, 2010 7:59 PM
To: Apache AXIS C User List 
Subject: Re: Client problem


You should be able to deploy the service in Apache2.2 with axis2_module and access from the java client deployed in tomcat.  However, you cannot deploy the c service in tomcat.


Regards
Nandika


2010/5/2 卢杨 <ly...@hotmail.com>

  Dear all,

  I create a client project using eclipse and use the wsdl file from axis2c. I can successfully run the Tomcat and can open the jsp files which generate automatically. And in the output tab it shows me:
IWAB0135E An unexpected error has occurred.
java.net.ConnectException
Connection refused: connect
 

  My axis2c web service run on apache 2.2 and the client run on Tomcat. Can they run in different server? How can I put axis2c service into Tomcat? In the manual it can only be put into Apache 2.2 without Tomcat.

  Yours sincerely,
  Jason



-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com

Re: Client problem

Posted by Nandika Jayawardana <ja...@gmail.com>.
You should be able to deploy the service in Apache2.2 with axis2_module and
access from the java client deployed in tomcat.  However, you cannot deploy
the c service in tomcat.

Regards
Nandika

2010/5/2 卢杨 <ly...@hotmail.com>

>  Dear all,
>
> I create a client project using eclipse and use the wsdl file from axis2c.
> I can successfully run the Tomcat and can open the jsp files which generate
> automatically. And in the output tab it shows me:
>
> IWAB0135E An unexpected error has occurred.
> java.net.ConnectException
> Connection refused: connect
>
> My axis2c web service run on apache 2.2 and the client run on Tomcat. Can
> they run in different server? How can I put axis2c service into Tomcat? In
> the manual it can only be put into Apache 2.2 without Tomcat.
>
> Yours sincerely,
> Jason
>



-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com