Re: Error: The Axis engine could not find a target service to invoke ! targetservice is

2008-09-22 Thread Rupinder Singh
Hi keith,
 
Thanks for your advice. I got that problem sorted out; I guess I was using 
separate directories for server and client, without reconciling their paths. 
Also, I re-installed Axis 1.4 to tackle this problem.
 
Oh yes..I will start on Axis 2 now rather; I have seen that stuff on Axis site.
 
regards
Rupinder
 


--- On Sun, 9/21/08, keith chapman [EMAIL PROTECTED] wrote:

From: keith chapman [EMAIL PROTECTED]
Subject: Re: Error: The Axis engine could not find a target service to invoke ! 
targetservice is
To: axis-user@ws.apache.org
Date: Sunday, September 21, 2008, 8:15 PM



Hi,

If you are a beginner to Axis, why not use Axis2 instead of Axis. You can get 
details on Axis2 at  http://ws.apache.org/axis2/ (I recommend you use Axis2)

Thanks,
Keith. 


On Sun, Sep 21, 2008 at 9:33 AM, Rupinder Singh [EMAIL PROTECTED] wrote:






Hi, 
  
I am just repeating my previous question with a clearer subject line. 
  
I am a beginner with Axis. I have Axis 1.4 installed, plugged into Tomcat. I am 
trying to deploy a web service called Hello ( the name space) having a class 
HelloWorldTwo ( .java attached) using deploy.wssd (attached). That seems to be 
done as I am getting a server-config.wsdd (attached) in the working directory 
C:\WebServices\server. In an another subdirectory , C:\WebServices\client,  I 
have a client called HelloWorldClientTwo ( .java attached). 
  
However when I run HelloWorldClient class file from its directory using 
  
C:\WebServices\client java HelloWorldClientTwo –llocal:// Rupi 
  
I get the exception, 
Error: The Axis engine could not find a target service to invoke !  
targetservice is 
  
  
Could anybody help, please? 
  
Thank you. 
  
Regards 
Rupinder 
Amritsar 
India

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org



  

Re: Error: The Axis engine could not find a target service to invoke ! targetservice is

2008-09-21 Thread keith chapman
Hi,

If you are a beginner to Axis, why not use Axis2 instead of Axis. You can
get details on Axis2 at  http://ws.apache.org/axis2/ (I recommend you use
Axis2)

Thanks,
Keith.

On Sun, Sep 21, 2008 at 9:33 AM, Rupinder Singh [EMAIL PROTECTED] wrote:

 Hi,



 I am just repeating my previous question with a clearer subject line.



 I am a beginner with Axis. I have Axis 1.4 installed, plugged into Tomcat.
 I am trying to deploy a web service called Hello ( the name space) having
 a class HelloWorldTwo ( .java attached) using deploy.wssd (attached). That
 seems to be done as I am getting a server-config.wsdd (attached) in the
 working directory C:\WebServices\server. In an another subdirectory ,
 C:\WebServices\client,  I have a client called HelloWorldClientTwo ( .java
 attached).



 However when I run HelloWorldClient class file from its directory using



 C:\WebServices\client java HelloWorldClientTwo –llocal:// Rupi



 I get the exception,

 Error: The Axis engine could not find a target service to invoke !  
 targetservice
 is





 Could anybody help, please?



 Thank you.



 Regards

 Rupinder

 Amritsar

 India


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Error: The Axis engine could not find a target service to invoke ! targetservice is

2008-09-20 Thread Rupinder Singh
Hi, 
 
I am just repeating my previous question with a clearer subject line.
 
I am a beginner with Axis. I have Axis 1.4 installed, plugged into Tomcat. I am 
trying to deploy a web service called Hello ( the name space) having a class 
HelloWorldTwo ( .java attached) using deploy.wssd (attached). That seems to be 
done as I am getting a server-config.wsdd (attached) in the working directory 
C:\WebServices\server. In an another subdirectory , C:\WebServices\client,  I 
have a client called HelloWorldClientTwo ( .java attached). 
  
However when I run HelloWorldClient class file from its directory using 
  
C:\WebServices\client java HelloWorldClientTwo –llocal:// “Rupi” 
  
I get the exception, 
Error: The Axis engine could not find a target service to invoke !  
targetservice is 
  
  
Could anybody help, please? 
  
Thank you. 
  
Regards 
Rupinder 
Amritsar 
India


  

deploy.wsdd
Description: Binary data


public class HelloWorldTwo{
public static String HelloWorld(String name) {
return Hello : +name;
}
}

server-config.wsdd
Description: Binary data
import org.apache.axis.AxisFault;

import org.apache.axis.client.Call;

import org.apache.axis.client.Service;

import org.apache.axis.utils.Options;
import javax.xml.namespace.QName;

import javax.xml.rpc.ParameterMode;

public class HelloWorldClientTwo {
public static void main(String[] args) throws Exception {
Options options =new Options (args);
Service service = new Service();
Call call =(Call)service.createCall();



try{

call.setTargetEndpointAddress(new java.net.URL(options.getURL()));
args=options.getRemainingArgs();
if (args==null||args.length!=1){
System.err.println(Usage:HelloWorldClientTwoHelloWorldarg1);
return;
}

String name = new String (args[0]);
call.setOperationName(new QName(HelloWorldTwo,HelloWorld));
call.addParameter(name, org.apache.axis.encoding.XMLType.XSD_STRING, 
ParameterMode.IN);
call.setReturnType (org.apache.axis.encoding.XMLType.XSD_STRING);
String result =(String)call.invoke(new Object []{name});
System.out.println(result);


}
catch(AxisFault fault){
System.out.println(Error: +fault.toString ());
}  

  }
}-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

The AXIS engine could not find a target service to invoke! targetService is null

2006-05-09 Thread robert

Whenever I try to generated wsdl or invoke my web service I get the following

The AXIS engine could not find a target service to invoke!  targetService is
null

AdminClient list shows that the webservice has been deployed and the webservice
shows up when I access /webapp/services and the AxisServlet is run.

using Axis 1.3 with JVM 1.5.0

ns1:service name=TestEJB provider=java:RPC style=wrapped use=literal
  ns1:parameter name=allowedMethods value=*/
  ns1:parameter name=typeMappingVersion value=1.2/
  ns1:parameter name=wsdlPortType value=TestEJB/
  ns1:parameter name=className value=robert.TestEJBSoapBindingSkeleton/
  ns1:parameter name=wsdlServicePort value=TestEJB/
  ns1:parameter name=schemaQualified
value=http://robert,http://xml.apache.org/xml-soap/
  ns1:parameter name=wsdlTargetNamespace value=http://robert/
  ns1:parameter name=wsdlServiceElement value=TestEJBService/
 /ns1:service



This message was sent using IMP, the Internet Messaging Program.



target service to invoke

2006-04-17 Thread rafiqy
Hi there,

When I run my client code, I get the following error message:


The AXIS engine could not find a target service to invoke!  targetService
is null


Can you please advice me how I can fix this?

Many thanx

yasmin




target service to invoke - Please reply!

2006-04-17 Thread rafiqy
Hi there,

When I run my client code, I get the following error message:


The AXIS engine could not find a target service to invoke!  targetService
is null


Can you please advice me how I can fix this?

I have put the wsdl document in Tomcat5/webapps/axis/keyAccident2.wsdl
...not sure what I'm doing wrong :(


Many thanx

yasmin






RE: target service to invoke - Please reply!

2006-04-17 Thread subir.sasikumar

Can you verify whether the service is correctly deployed in your tomcat
server?

Type the port address URL.. some thing like
http://hostip:port/webappname/services/servicename

If you can see the some message there then the service is correctly
deployed.


Subir S
Wipro Technologies,
Survey No: 64, Madhapur,
Hyderabad-500081, AP
tel: 040-30795137

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 3:16 PM
To: axis-user@ws.apache.org
Subject: target service to invoke - Please reply!

Hi there,

When I run my client code, I get the following error message:


The AXIS engine could not find a target service to invoke!
targetService
is null


Can you please advice me how I can fix this?

I have put the wsdl document in Tomcat5/webapps/axis/keyAccident2.wsdl
...not sure what I'm doing wrong :(


Many thanx

yasmin






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com


Re: target service to invoke - Please reply!

2006-04-17 Thread Martin Gainty
Good Afternoon--

What does the service specification in your wsdl specify?

Martin--
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Monday, April 17, 2006 5:45 AM
Subject: target service to invoke - Please reply!


 Hi there,
 
 When I run my client code, I get the following error message:
 
 
 The AXIS engine could not find a target service to invoke!  targetService
 is null
 
 
 Can you please advice me how I can fix this?
 
 I have put the wsdl document in Tomcat5/webapps/axis/keyAccident2.wsdl
 ...not sure what I'm doing wrong :(
 
 
 Many thanx
 
 yasmin
 
 
 
 


Re: target service to invoke

2006-04-17 Thread Anne Thomas Manes
Per the SOAP sepcificationm Axis determines how to invoke a service based on the QName of the child element of the SOAP Body. It can also use the value of the SOAPAction as a hint. One common reason why you might get this error if you are using unwrapped document/literal and you have not specified an operation definition in the WSDD which tells Axis how to map your incoming message to a method. (See 
http://www.oio.de/axis-wsdd/operation.htm). We could help you further if you provide your WSDL and WSDD and maybe a SOAP message trace.Anne
On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi there,When I run my client code, I get the following error message:
The AXIS engine could not find a target service to invoke!targetServiceis nullCan you please advice me how I can fix this?Many thanxyasmin


Re: The AXIS engine could not find a target service to invoke!

2006-03-02 Thread jelly0961
Hi, 

Try to change your port 1000 into a one larger than
1024, and see if it works.

-Julie

--- Dionisio Fernandez
[EMAIL PROTECTED] wrote:

   Hello, I have a problem with axis. I have a .wsdl
 file and I want to build
 a server. I follow next steps:
 
   1)Deploy the wsdl:
   java org.apache.axis.wsdl.WSDL2Java --server-side
 --skeletonDeploy true
 file.wsdl
   This make some .java files and a .wsdd
   2)Compile the .java that made the previous steps
 and make a .jar with them.
   3)Copy .jar to the WEB-INF/lib directory in Axis.
   4)Run the server (i.e port 1000)
   5)Deploy the .wsdd:
   org.apache.axis.client.AdminClient
 path\deploy.wsdd -p 1000
   6)I load the web http://localhost:1000
 
   And it shows:
 
   And now... Some Services
   Service (wsdl)
   methodOne
   methodTwo
   ...
   AdminService (wsdl)
   AdminService
   Version (wsdl)
   getVersion
 
   Well, it shows all services I want, but when in
 Java I try to call one
 service (i.e closeSession):
 
   ServicePortType serv = (ServicePortType) new
 ServiceLocator().getService
 (new URL (http://localhost:1000/;));
   serv.methodOne(arg);
 
   It makes next Exception:
 
   The AXIS engine could not find a target service
 to invoke!  targetService
 is null
 
 
   Can you help me? Thanks.
 
 
 
 
 
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


The AXIS engine could not find a target service to invoke!

2006-02-28 Thread Dionisio Fernandez
Hello, I have a problem with axis. I have a .wsdl file and I want to 
build
a server. I follow next steps:

1)Deploy the wsdl:
java org.apache.axis.wsdl.WSDL2Java --server-side 
--skeletonDeploy true
file.wsdl
This make some .java files and a .wsdd
2)Compile the .java that made the previous steps and make a .jar with 
them.
3)Copy .jar to the WEB-INF/lib directory in Axis.
4)Run the server (i.e port 1000)
5)Deploy the .wsdd:
org.apache.axis.client.AdminClient path\deploy.wsdd -p 1000
6)I load the web http://localhost:1000

And it shows:

And now... Some Services
Service (wsdl)
methodOne
methodTwo
...
AdminService (wsdl)
AdminService
Version (wsdl)
getVersion

Well, it shows all services I want, but when in Java I try to call one
service (i.e closeSession):

ServicePortType serv = (ServicePortType) new ServiceLocator().getService
(new URL (http://localhost:1000/;));
serv.methodOne(arg);

It makes next Exception:

The AXIS engine could not find a target service to invoke!  
targetService
is null


Can you help me? Thanks.








Axis AdminClient not finding target service to invoke.

2005-11-08 Thread kiran kumar
HI,
When i am using axis1.1 the deployment of deploy.wsdd using AdminClient works fine. However if i use axis1.2 to deploy the same deploy.wsdd it throws an AxisFault exception.
The target url is still the same..

Exception: AxisFaultfaultCode: {http://xml.apache.org/axis/}Server.NoServicefaultSubcode:faultString: The AXIS engine could not find a target service to invoke! targetfaultActor:faultNode:faultDetail: {http://xml.apache.org/axis/}stackTrace:AxisFaultfaultCode: {http://xml.apache.org/axis/}Server.NoServicefaultSubcode:faultString: The AXIS engine could not find a target service to invoke! targetfaultActor:faultNode:faultDetail:
The AXIS engine could not find a target service to invoke! targetService is nul at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri.java:1092) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispner.java:1204) at
 org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa:257)
.
.

Can anyone help me identifying whats wrong.

Thanks
Kiran
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

RE: The AXIS engine could not find a target service to invoke! targetService is null error

2005-08-12 Thread Chen, Donald
Please ignore this question, I have figured out the reason why I got
that error.  

I accidentally introduced defects to the deploy file when I do the
cut-and-paste, so the deployment did not actually deploy well.

Don

-Original Message-
From: Chen, Donald [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 11:40 AM
To: axis-user@ws.apache.org
Subject: The AXIS engine could not find a target service to invoke!
targetService is null error

Hi, All.

I was following the instruction presented by an article written at 01
Jan 2003(is this article a bit out-of-date? Given the progress of Axis)
-- 

http://www-128.ibm.com/developerworks/webservices/library/ws-eight/#code
2

And I was trying the EightBall example presented in the article,
hoping to get a sense of deploying a web service via Axis.

Basically, the EightBall service is encapsulated in this java code:

8---
import java.util.Random;
import java.lang.Double;
import java.util.Date;

public class EightBall {
  static String answers[] = {Yes.,
   Outlook not so good.,
  // The other 17 answers were
  // removed for brevity.
   Don't count on it.};
   
  public static String getAnswer() {
return askQuestion();
  }
  
  public static String askQuestion
String question) {
java.util.Random r = new Random
  (new Date().getTime());
java.lang.Double d = new Double
  ((r.nextDouble()*20)-1);
return new String(answers[d.intValue()]);
  }
  
  public static void main(String args[]) {
System.out.println(getAnswer());
  }
}
8---

I javac this java file and copied the EightBallclass file into the
...\tomcat_direcory\webapps\axis\WEB-INF\classes.

Then I ran  java org.apache.axis.client.AdminClient
DeployEightBall.wsdd on the DeployEightBall.wsdd file (see below):

8---
deployment xmlns=
http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/
  wsdd/providers/java
  service name=urn:EightBall
  provider=java:RPC
 parameter name=className
value=EightBall/
 parameter name=allowedMethods
value=getAnswer askQuestion/
  /service
/deployment
8---

So far so good.

Then I tried to compile and then ran the EightBallClient1 code(see
below):
8---
import javax.xml.namespace.QName;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;

public class EightBallClient1 {
  public static void main(String [] args) throws Exception {
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new
java.net.URL(http://localhost:8080/axis/servlet/AxisServlet;));
call.setOperationName(new QName(urn:EightBall, getAnswer));
try {
   System.out.println(call.invoke(new Object[] { }));
} catch (java.rmi.RemoteException re) {
   System.out.println(Error -  + re);
 }
}
}
8---

This is the place where I got the error:

   The AXIS engine could not find a target service to invoke!
targetService is nul

Any idea?

I also restarted the Tomcat, and that did not help.

I use WinXP-Pro, Tomcat5.5, Axis1.2, JRE/JDK1.5.

Thanks in advance,

Don