Sending my own object Type as SOAP message

2006-04-25 Thread rafiqy
Hi there,

Can someone please explain to me how I can send my own Java object (i.e. I
have a java class called AccidentRecord) I want to send an Array of
AccidentRecord via SOAP to my client when they invoke my service portType,
getAccidents(String numberOfAccidents, String queryNumber) ...please
advice?

Thanx

yasmin




How can I publish my web service?

2006-04-24 Thread rafiqy
Hi All,

Can someone please advice me how to publish my Web Service, I have created
WSDL file ...I have a test client program, and successully invoked my
services using the stub classes. I am doing this a final year project, I
have my presentation next week and thought it would be great if I can
demonstrate my service as registered with a UDDI and my Client program
looks for this service via UDDI 

Please advice, thanx


yasmin




Java source code from WSDL

2006-04-17 Thread rafiqy
Hi there,

I have created Java source code from WSDL, but I'm not sure how to use
this code to invoke my service, I'v attached the classes that were created
...please advice me how I can use these to interact with my Web service?

Many thanx

yasmin

AxisServletSoapBindingStub.java
Description: Binary data


KeyAccidentService_PortType.java
Description: Binary data


KeyAccidentService_Service.java
Description: Binary data


KeyAccidentService_ServiceLocator.java
Description: Binary data


Re: Java source code from WSDL

2006-04-17 Thread rafiqy
Hi Dies,

...for some reason I'm getting the following error message:
method service.getAxisServlet() is not found?

Please advice

thanx

yasmin


 Hello Yasmin,

 There are several ways.
 I recommend the following (JAX-RPC compatible, no dependencies on Axis
 so portable across JAX-RPC compatible SOAP engines).

 import javax.xml.rpc.*;

 ServiceFactory sf = ServiceFactory.newInstance();
 KeyAccidentService_Service service =
 (keyAccident2.KeyAccidentService_Service)sf.loadService(
 keyAccident2.KeyAccidentService_Service.class);
 keyAccident2.KeyAccidentService_PortType keyAccident =
 service.getAxisServlet();

 String result = keyAccident.numAccident(...);

 Regards,
 Dies

 [EMAIL PROTECTED] wrote:
 Hi there,

 I have created Java source code from WSDL, but I'm not sure how to use
 this code to invoke my service, I'v attached the classes that were
 created
 ...please advice me how I can use these to interact with my Web service?

 Many thanx

 yasmin








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






Axis - standalone application

2006-04-17 Thread rafiqy
Hi there,

I have built my client application as a standalone, but I was wondering is
it possible to use Axis with a browser_based applet?

Thanx

yasmin




Re: Axis - standalone application

2006-04-17 Thread rafiqy
me again :(

...is there any real benifit of having a standalone application?

please advice,

yasmin



 Sure it is.
 Just need to make all the libs (jars) available.


 On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi there,

 I have built my client application as a standalone, but I was wondering
 is
 it possible to use Axis with a browser_based applet?

 Thanx

 yasmin









Java2WSDL problem

2006-04-15 Thread rafiqy
Hi there,

I'm trying to create a WSDL file from Java source code, by executing the
following comand from my console:

java org.apache.axis.wsdl.Java2WSDL -o cruise.wsdl
-l http://192.168.1.10:8080/axis/servlet/AxisServlet
-n urn:cruise -S CruiseService CruiseService

but I get the following Exception:

Java.lang.NoClassDefFoundError: javax/wsdl/extensions/ExtensibilityElement

I have included the wsdl4j-1.5.1.jar file in my class path, following is
my Environment setup:

AXIS_HOME
C:\axis

AXIS_LIB
%AXIS_HOME%\lib

AXISCLASSPATH

%AXIS_LIB%\axis.jar;
%AXIS_LIB%\commons-discovery-0.2.jar;
%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\jaxrpc.jar;
%AXIS_LIB%\saaj.jar;
%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;
%AXIS_LIB%\xercesImpl.jar;
%AXIS_LIB%\wsdl4j-1.5.1;
%AXIS_LIB%\axis-ant.jar ;
%AXIS_LIB%\axis-schema.jar;
%AXIS_LIB%\log4j.properties;
%AXIS_LIB%\xml-apis.jar;

AXISROOT
C:\Tomcat5\webapps\axis\WEB-INF\lib\

Can you please advice me what I'm doing wrong, or what I need to do to fix
this exception. I will appreciate a quick response, as I dnt rly have much
time, this is part of my Final Year Project, and the due date is almost at
my door-step :(

Many thanx

yasmin