Re: Creating a client using a client stub
I am a student learning to develop web service using Apache axis2 and i encounter some problem need some expert advice from you. The problem is that i try creating a client using a client stub. After running the program. I encounter the error as stated below. I hope that you can help me out on this issue. The attachment contain the SimpleServiceStub.java and SimpleClient.java. Thank you in advance. log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService). log4j:WARN Please initialize the log4j system properly. Exception in thread main org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) 127.0.0.1/axis2/services/ at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at com.ttdev.ss.client.SimpleServiceStub.concat(SimpleServiceStub.java:184) at com.ttdev.ss.client.SimpleClient.main(SimpleClient.java:17) Thank you and regards SQ -- Warning : Privileged/confidential information may be contained in this message. If you are not the intended addressee, you must not copy, distribute or take any action in reliance thereon. This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. If you have received this email in error, please immediately notify the sender and delete the email. Thank you.
RE: Creating a Client
Hi Doug, You just use the default constructor of the Login class to create a Login object. thanks Raghu -Original Message- From: Doug Schaible [mailto:[EMAIL PROTECTED] Sent: Mon 5/21/2007 7:03 PM To: axis-user@ws.apache.org Subject: Creating a Client Good Evening, I have created the attached stub file using wsdl2java. I have been reviewing the code that it created and I can not see how to actually use it. Can someone point me in the right direction? I beleive that I need to create a Login object and then pass it to the Login method, but Login does not have a constructor. The only way that I can to create a Login object is to call ServiceServiceSoapStub.Login.Factory.parse(), but I can't see how to call method with getting ServiceServiceSoapStub.Login( ServiceServiceSoapStub.Login) instead. Any help is greatly appericated. The WSDL is here: http://staging.brassring.com/SSOEnterprise/webservice/sso.asmx?WSDL Thanks, Doug winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a Client
When you use wsdltojava use the -t flag to generate a test case this should help you to see how to call the service. Matt - Original Message From: Doug Schaible [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, 22 May, 2007 12:03:00 PM Subject: Creating a Client Good Evening, I have created the attached stub file using wsdl2java. I have been reviewing the code that it created and I can not see how to actually use it. Can someone point me in the right direction? I beleive that I need to create a Login object and then pass it to the Login method, but Login does not have a constructor. The only way that I can to create a Login object is to call ServiceServiceSoapStub.Login.Factory.parse(), but I can't see how to call method with getting ServiceServiceSoapStub.Login(ServiceServiceSoapStub.Login) instead. Any help is greatly appericated. The WSDL is here: http://staging.brassring.com/SSOEnterprise/webservice/sso.asmx?WSDL Thanks, Doug ___ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
RE: Creating a Client
I think your issue is related to the generic XML content of your Login object. From: Matthew Hannay [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 9:31 PM To: axis-user@ws.apache.org Subject: Re: Creating a Client When you use wsdltojava use the -t flag to generate a test case this should help you to see how to call the service. Matt - Original Message From: Doug Schaible [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, 22 May, 2007 12:03:00 PM Subject: Creating a Client Good Evening, I have created the attached stub file using wsdl2java. I have been reviewing the code that it created and I can not see how to actually use it. Can someone point me in the right direction? I beleive that I need to create a Login object and then pass it to the Login method, but Login does not have a constructor. The only way that I can to create a Login object is to call ServiceServiceSoapStub.Login.Factory.parse(), but I can't see how to call method with getting ServiceServiceSoapStub.Login(ServiceServiceSoapStub.Login) instead. Any help is greatly appericated. The WSDL is here: http://staging.brassring.com/SSOEnterprise/webservice/sso.asmx?WSDL Thanks, Doug Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now http://uk.answers.yahoo.com/;_ylc=X3oDMTEzaDRkZGdlBF9TAzIxMTQ3MTcxOTAEc 2VjA01haWwEc2xrA3RhZ2xpbmVz .
Re: Creating ws client within ws server
Hi Ian, Ian Harder [EMAIL PROTECTED] wrote on 04/05/2005 10:47:25: I've been working on a project where a web service is used to perform a number of tasks, including the calling of another web service to verify a user id. When I attempt to create the web service client within the server method, the server method dies, and control jumps right to the fini method. I've tried a number of things including creating the client both statically and dynamically, etc, but no matter what, whenever the client is created the server method it dies. I don't believe this is possible today. Axis C++ can't operate in both client and server mode, or behave as multiple clients or behave have multiple servers. I have previously opened requirements AXISCPP-427 and AXISCPP-426 to help address this (see: http://issues.apache.org/jira/browse/AXISCPP-427 and http://issues.apache.org/jira/browse/AXISCPP-426). The only way I could think of to workaround this today would be to have two (or more) separate instances of Axis (different shared library names, different C++ namespace) and set one up as the server and the other as the client. This would be very painful. Regards, Tim
RE: Creating ws client within ws server
Thanks for the info Tim. I should be able to work around it, although it would be nice not to have that kind of restriction on an Axis process. Ian -Original Message- From: Tim Bartley [mailto:[EMAIL PROTECTED] Sent: May 3, 2005 8:03 PM To: Apache AXIS C User List Subject: Re: Creating ws client within ws server Hi Ian, Ian Harder [EMAIL PROTECTED] wrote on 04/05/2005 10:47:25: I've been working on a project where a web service is used to perform a number of tasks, including the calling of another web service to verify a user id. When I attempt to create the web service client within the server method, the server method dies, and control jumps right to the fini method. I've tried a number of things including creating the client both statically and dynamically, etc, but no matter what, whenever the client is created the server method it dies. I don't believe this is possible today. Axis C++ can't operate in both client and server mode, or behave as multiple clients or behave have multiple servers. I have previously opened requirements AXISCPP-427 and AXISCPP-426 to help address this (see: http://issues.apache.org/jira/browse/AXISCPP-427 and http://issues.apache.org/jira/browse/AXISCPP-426). The only way I could think of to workaround this today would be to have two (or more) separate instances of Axis (different shared library names, different C++ namespace) and set one up as the server and the other as the client. This would be very painful. Regards, Tim