Validating a document using WSDL?

2005-02-11 Thread Carsten Ziegeler
I'm searching for an easy way of validating an XML document against a 
WSDL file. This is in order to test if the document is a valid request 
for the service.

Does Axis provide some classes/functionalitity I could use? Or is there 
something else I can do?

I read somewhere that Axis currently doesn't valid ws against the wsdl 
if document style is used. Is this true?

Thanks
Carsten
--
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/


Newbie Doubts on Custom Types

2005-02-11 Thread babloosony
Hi All,

I have few doubts on custom types transferring between java/.net using
axis 1.2 rc2 document style web services.

Say I have below structure of my classes

class a
{
public boolean a1=true;
}
class b extends a 
{
public boolean b1=false;
}

class c
{
public boolean c1=true;
}
class d extends c
{
public boolean d1=false;
}



now say I have an POJO or EJB method with below signature:

public d sayHello(B b);


Now if I transfer b object between .NET as Client and Java as Server
then can I read  d.d1 and d.c1 on client side and b.b1 and b.a1 on the
server side. In this case, how can the schemas that need to be 
included inside WSDL for this POJO/EJB web service for these objects
looks like. Will it include all schema definitions  for all a, b, c, d
objects ?


Can anyone please clarify my doubts ?



Thanks  Regards,
Kumar.


Need info on Axis and Custom (De)Serializers

2005-02-11 Thread babloosony
Hi,

Are there any good tutorials,links,blogs etc. on writing custom
(de)serializers with axis. Any information on at what  phases of soap
request/response cycle in axis, these (de)serializers will be called
and with hands-on  examples will be very helpful.  Please suggest ?


Thanks  Regards,
Kumar.


Not able to access through anoncvs.

2005-02-11 Thread Sai
Hi !
   I'm not able to access cvs.apache.org through username: anoncvs and
password:anoncvs either through pserver (as i'm behind a firewall) nor
through SSH connection. Please let me know if anybody has a solution
or Is there a way i can have Non-Commit username and password for
accessing??


Thanks in advance,
Sai


Newbie doubts on XML Signature

2005-02-11 Thread babloosony
Hi All,

There is a third party web service which exposed its wsdl to clients
and I used AXIS 1.2 RC2 to create stubs and have  written a web
service client program to access the web service. However may the
server is expecting a  signed xml signature in the soap message to
verify them I am not able to successfully get a soap response from the
wsdl and instead I get below exception.


Exception from server

 [java] AxisFault
 [java]  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 [java]  faultSubcode:
 [java]  faultString: System.Web.Services.Protocols.SoapException:
Server was unable to process request. --- System.Exception: Signature
Verification Failed.
 [java]  faultActor:
 [java]  faultNode:
 [java]  faultDetail:
 [java] {http://xml.apache.org/axis/}stackTrace: AxisFault
 [java]  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 [java]  faultSubcode:
 [java]  faultString: System.Web.Services.Protocols.SoapException:
Server was unable to process request. --- System.Exception: Signature
Verification Failed.
 [java]  faultActor:
 [java]  faultNode:
 [java]  faultDetail:

 [java] System.Web.Services.Protocols.SoapException: Server was
unable to process request. --- System.Exception: Signature
Verification Failed.
 [java] at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
 [java] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
 [java] at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
 [java] at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
 [java] at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
 [java] at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
 [java] at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
 [java] at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
 [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
 [java] at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
 [java] at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
 [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
 [java] at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
 [java] at org.apache.axis.client.Call.invoke(Call.java:2553)
 [java] at org.apache.axis.client.Call.invoke(Call.java:2248)
 [java] at org.apache.axis.client.Call.invoke(Call.java:2171)
 [java] at org.apache.axis.client.Call.invoke(Call.java:1691)
 [java] at
www.americanexpress.com.schemas.serviceportal.demands.v10.webservices.DOC_CardsOwnedWSSoapStub.getCardsOwned(DOC_CardsOwnedWSSoapStub.java:154)
 [java] at
serviceportal.demands.DOC_CardsOwnedWS.query(DOC_CardsOwnedWS.java:46)
 [java] at
serviceportal.demands.DOC_CardsOwnedWS.main(DOC_CardsOwnedWS.java:62)


 [java] System.Web.Services.Protocols.SoapException: Server was
unable to process request. --- System.Exception: Signature
Verification Failed.
 [java] at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
 [java] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
 [java] at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
 [java] at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
 [java] at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
 [java] at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
 [java] at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
 [java] at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
 [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
 [java] at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
 [java] at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
 [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
 [java] at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
 [java] at 

Re: calling MessageService sample with .NET client

2005-02-11 Thread Praveen Peddi
Our requirement is to use raw XML. Its not like calling a method with 
arguments. We get SOAP request in a specific schema that cannot be mapped to 
wrapped style. For example, we get list of elements in the body where each 
element has some attributes. So I thought its easy to deal with raw xml. 
Moreover, there are quite a bit of interoperability problems with wrapped 
style (especially with arrays of complex types). Not sure when this will be 
fixed in Axis (and probably .NET). I am still struggling to make my app work 
with wrapped style webservices. I could not make de-serialization of array 
of complex bean work on .NET side. There were lot of threads and some people 
have suggested Eric Chijoke's fix but I can't use patches. It would be great 
if this problem is fixed in Axis.

Praveen
- Original Message - 
From: Anne Thomas Manes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 4:03 PM
Subject: Re: calling MessageService sample with .NET client


For easiest interoperability with .NET, I suggest you use the wrapped 
style.
.NET does allow you to send raw XML, but to do so you have to use a
low-level API. In other words, you can't invoke the service using a
WebReference. To do that you should use wrapped style.

-Anne
On Thu, 10 Feb 2005 13:12:43 -0500, Praveen Peddi
[EMAIL PROTECTED] wrote:
I just deployed the sample MessageService that came with Axis and tried 
to
access it from .NET client.

My service name is GoogleAccessConnector. But for now I only have the 
method
that was provided by message sample of Axis. Here is the WSDL anyway. It 
is
generated by Axis. I am new Message style services. So you can assume I 
am
dumb and the approach may be wrong :)
?xml version=1.0 encoding=UTF-8?

wsdl:definitions
targetNamespace=http://localhost:7001/axis/services/GoogleAccessConnector;
xmlns:apachesoap=http://xml.apache.org/xml-soap;
xmlns:impl=http://localhost:7001/axis/services/GoogleAccessConnector;
xmlns:intf=http://localhost:7001/axis/services/GoogleAccessConnector;
xmlns:tns1=http://soap.session.ip.contextmedia.com;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
!--WSDL created by Apache Axis version: 1.2RC2
Built on Feb 08, 2005 (12:11:21 PST)--
wsdl:types
schema targetNamespace=http://soap.session.ip.contextmedia.com;
xmlns=http://www.w3.org/2001/XMLSchema;
element name=echoElements type=xsd:anyType/
/schema
schema
targetNamespace=http://localhost:7001/axis/services/GoogleAccessConnector;
xmlns=http://www.w3.org/2001/XMLSchema;
element name=echoElementsReturn type=xsd:anyType/
/schema
/wsdl:types
wsdl:message name=echoElementsResponse
wsdl:part element=impl:echoElementsReturn name=echoElementsReturn/
/wsdl:message
wsdl:message name=echoElementsRequest
wsdl:part element=tns1:echoElements name=part/
/wsdl:message
wsdl:portType name=GoogleAccessConnector
wsdl:operation name=echoElements
wsdl:input message=impl:echoElementsRequest 
name=echoElementsRequest/

wsdl:output message=impl:echoElementsResponse
name=echoElementsResponse/
/wsdl:operation
/wsdl:portType
wsdl:binding name=GoogleAccessConnectorSoapBinding
type=impl:GoogleAccessConnector
wsdlsoap:binding style=document
transport=http://schemas.xmlsoap.org/soap/http/
wsdl:operation name=echoElements
wsdlsoap:operation soapAction=/
wsdl:input name=echoElementsRequest
wsdlsoap:body use=literal/
/wsdl:input
wsdl:output name=echoElementsResponse
wsdlsoap:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
wsdl:service name=GoogleAccessConnectorService
wsdl:port binding=impl:GoogleAccessConnectorSoapBinding
name=GoogleAccessConnector
wsdlsoap:address
location=http://localhost:7001/axis/services/GoogleAccessConnector/
/wsdl:port
/wsdl:service
/wsdl:definitions
- Original Message -
From: Paul Callahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 12:16 PM
Subject: Re: calling MessageService sample with .NET client
 Praveen,

 This really depends on how you have structured your wsdl for the
 service.  If you are using message style services, then in most cases,
 you are providing your own XML Schema to define the types that are
 passed via the method you expose as a message-based service.

 Whether you use JAXB, Castor, or some manual dom/sax code on your end
 of the Java web service, you must publish the manner in which .NET can
 (de)serialize your objects.

 Whats your wsdl look like?

 -pc


 On Thu, 10 Feb 2005 11:58:05 -0500, Praveen Peddi
 [EMAIL PROTECTED] wrote:

 I have looked at the MessageService sample (both server and the 
 client).
 It
 passes Element[] as the argument and also returns the same. This is 
 fine
 for
 java based clients. But if I want to invoke it using non java clients
 like
 .NET, how does it work? Are Axis's message-style services 
 interoperable
 with .NET?

 In short, I want to send raw xml in soap-body and be able to call the
 method
 by java and 

RE: Newbie doubts on XML Signature

2005-02-11 Thread Anderson Jonathan
You are going to need to get in touch with the owners of that Web Service so
that you can determine *exactly* what it is expecting.

A) Exactly what type of XML Signature does it expect?  OASIS WS-Security
2004?  Microsoft WS-Security 2002?  An enveloped signature inside the SOAP
envelope (which is not normally recommended)?
B) If the owners have gone to the trouble of requiring signatures, they
probably do this so that they can authorize access to the service based upon
an authenticated message signature.  They might require some sort of
out-of-band service level agreement (calling them, signing some papers,
getting your certificate placed on their trusted list, etc) prior to
invoking their service.

Regards,
Jonathan Anderson
Booz Allen Hamilton

-Original Message-
From: babloosony [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 8:10 AM
To: [EMAIL PROTECTED]
Subject: Newbie doubts on XML Signature

Hi All,

There is a third party web service which exposed its wsdl to clients and I
used AXIS 1.2 RC2 to create stubs and have  written a web service client
program to access the web service. However may the server is expecting a
signed xml signature in the soap message to verify them I am not able to
successfully get a soap response from the wsdl and instead I get below
exception.


Exception from server

 [java] AxisFault
 [java]  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 [java]  faultSubcode:
 [java]  faultString: System.Web.Services.Protocols.SoapException:
Server was unable to process request. --- System.Exception: Signature
Verification Failed.
 [java]  faultActor:
 [java]  faultNode:
 [java]  faultDetail:
 [java] {http://xml.apache.org/axis/}stackTrace: AxisFault
 [java]  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 [java]  faultSubcode:
 [java]  faultString: System.Web.Services.Protocols.SoapException:
Server was unable to process request. --- System.Exception: Signature
Verification Failed.
 [java]  faultActor:
 [java]  faultNode:
 [java]  faultDetail:

 [java] System.Web.Services.Protocols.SoapException: Server was unable
to process request. --- System.Exception: Signature Verification Failed.
 [java] at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
60)
 [java] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
9)
 [java] at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:1015)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
 [java] at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
 [java] at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
 [java] at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
 [java] at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
 [java] at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
 [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
 [java] at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:242)
 [java] at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
 [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
 [java] at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
 [java] at org.apache.axis.client.Call.invoke(Call.java:2553)
 [java] at org.apache.axis.client.Call.invoke(Call.java:2248)
 [java] at org.apache.axis.client.Call.invoke(Call.java:2171)
 [java] at org.apache.axis.client.Call.invoke(Call.java:1691)
 [java] at
www.americanexpress.com.schemas.serviceportal.demands.v10.webservices.DOC_Ca
rdsOwnedWSSoapStub.getCardsOwned(DOC_CardsOwnedWSSoapStub.java:154)
 [java] at
serviceportal.demands.DOC_CardsOwnedWS.query(DOC_CardsOwnedWS.java:46)
 [java] at
serviceportal.demands.DOC_CardsOwnedWS.main(DOC_CardsOwnedWS.java:62)


 [java] System.Web.Services.Protocols.SoapException: Server was unable
to process request. --- System.Exception: Signature Verification Failed.
 [java] at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
60)
 [java] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
9)
 [java] at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:1015)
 [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
 [java] at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)

Observable observer pattern for Webservices

2005-02-11 Thread swetha Ranganathan

Hi

Has anyone implemented Observable observer pattern between two web services ?

Regards
Swetha
RegardsSwetha

Yahoo! India Matrimony: Find your life partner
online.

Threads under axis

2005-02-11 Thread Ian Wootten
Hi there,
I was wondering if somebody could help me out with a simple thread 
problem I'm facing when my class is deployed. My class (a simple log4j 
app) logs the environment variables to one file and issues a memory 
monitoring thread in the background. I'm finding that the memory thread 
doesn't seem to be running at all when deployed, but works fine when run 
as a standalone program. Even if I run a Thread.sleep(1) command in 
the main body of my code, it returns the string returned by my main 
service method immediately...

Am I missing something, are the threads run differently under axis?
Thanks,
Ian


RE: Axis workflow based services

2005-02-11 Thread Brown, Mike
The Delegate is a commonly used design pattern, see
http://www.c2.com/cgi/wiki?BusinessDelegate

Basically the delegate protects its clients from needing to know the
semantics of how the functionality is provided (ejb, web-service, database,
etc.). The reason I recommend using a delegate is to provide a class that
knows how to perform the business logic (or how to get the class that does)
but is separate from the impl class that Axis generates (I use this because
I overwrite my impl everytime I make changes to my service).

I haven't really touched on maintaining state between calls to a webservice.
I know that Axis supports sessions, but I don't know how that would be
handled on the client end.

One thing I'd recommend is having a Singleton that stores a map of your
service delegates. With the key being an identifier that you provide the
client after he/she logs in the first time. (One of your web service
operations would need to be login of course). Everytime the client makes a
call, he has to provide that key (either in the header or as a parameter).
Your impl would call the Singleton to get the delegate associated with that
key and call the appropriate function on the delegate.

Like I said, I'm not certain if there is a standard way to maintain state
between calls to a webservice, but if there isn't, that is definitely one
route to consider. 

Hope that helps,
Michael

-Original Message-
From: Abdullah Jibaly [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 10:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Axis  workflow based services

Thanks Mike,

Are there any recommended approaches for this 'delegate' you mention... it
seems to be basically a request processor right? I want it to be able to
have some sort of state, such as whether the user is logged in for example.

Thanks,
Abdullah

--- Brown, Mike [EMAIL PROTECTED] wrote:

 Abdullah,
What precisely is your business layer? You have a few options...One 
 you can use a delegate between your impl class and the business layer 
 that knows how to access the business layer and make the appropriate 
 calls. Two, you can have the impl access the business layer directly 
 (I prefer to separate the code myself, but the choice is yours).
 
 So basically, web layer makes call to Axis, Axis uses delegate to 
 access the business layer, business layer performs its magic and 
 returns to delegate who returns to axis who returns to web layer.
 
 Hope that helps,
 
 Michael
 
 -Original Message-
 From: Abdullah Jibaly [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 10, 2005 1:49 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Axis  workflow based services
 
 Bill,
 
 Thanks for the input. However, my presentation layer is going to be 
 Laszlo, and I want to communicate with the business layer using axis. 
 That's why I can't get to struts, axis will be processing the request 
 first.
 
 Thanks,
 Abdullah
 
 --- Bill Keese [EMAIL PROTECTED] wrote:
 
  Abdullah Jibaly wrote:
  
  I want my view layer to communicate with the
 business layer using web
  services ... I can't use a standard MVC framework
 like struts
  since
  the request is sent to AxisServlet, right?

  
  As far as I understand, people usually talk about
 separating the
  presentation layer and the business layer,
 rather than separating
  the view layer from the business layer. So, it
 sounds like you
  should write the presentation layer (model, view,
 and controller) in
  struts, but the struts Actions should call the
 business layer via
  web services.  IE, the parts relating to
 displaying web pages and to
  web page flow should be in struts, and the
 Business layer contains
  support
  functions like addEmployee().
  
  What do you think?
  
  Bill
  
 
 


RE: Threads under axis

2005-02-11 Thread Brown, Mike
This isn't an axis problem. The servlet spec does not support threads being
spawned by code running in the container. It also does not support opening
ports or several other no-nos. 

-Original Message-
From: Ian Wootten [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 8:28 AM
To: [EMAIL PROTECTED]
Subject: Threads under axis

Hi there,

I was wondering if somebody could help me out with a simple thread problem
I'm facing when my class is deployed. My class (a simple log4j
app) logs the environment variables to one file and issues a memory
monitoring thread in the background. I'm finding that the memory thread
doesn't seem to be running at all when deployed, but works fine when run as
a standalone program. Even if I run a Thread.sleep(1) command in the
main body of my code, it returns the string returned by my main service
method immediately...

Am I missing something, are the threads run differently under axis?

Thanks,

Ian


RE: Threads under axis

2005-02-11 Thread Parley, Thunder Jon
H

Ian, what I have done and works...

1. Create a ContextListener for your application (example, I use Tomcat
4.1.x).
2. In the public void contextInitialized(ServletContextEvent e) {
method, initialize your Thread.
3. Still in this method, start your Thread (optional).
4. Now add the Thread as a context attribute.
5. Your application, can then if needed, access the thread by grabbing
the context attribute. If not, the thread at least has an active
reference and will run as long as the application is deployed.

HTH or inspires,

Thunder

-Original Message-
From: Brown, Mike [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Threads under axis

This isn't an axis problem. The servlet spec does not support threads
being
spawned by code running in the container. It also does not support
opening
ports or several other no-nos. 

-Original Message-
From: Ian Wootten [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 8:28 AM
To: [EMAIL PROTECTED]
Subject: Threads under axis

Hi there,

I was wondering if somebody could help me out with a simple thread
problem
I'm facing when my class is deployed. My class (a simple log4j
app) logs the environment variables to one file and issues a memory
monitoring thread in the background. I'm finding that the memory thread
doesn't seem to be running at all when deployed, but works fine when run
as
a standalone program. Even if I run a Thread.sleep(1) command in the
main body of my code, it returns the string returned by my main service
method immediately...

Am I missing something, are the threads run differently under axis?

Thanks,

Ian


WebService error calling JNI methods

2005-02-11 Thread Dave Hoffer
I get the following error when I call my web service methods: 

An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
system.web.services.dll
Additional information: java.lang.reflect.InvocationTargetException

I have 1 public method in my java code which calls the same method in a
C library...
package com.xrite.lzb;
public class LZB {
  public static boolean Measure(String szIPAddress, int iPortNumber) {
return LZBJNI.Measure(szIPAddress, iPortNumber); } 
}
class LZBJNI {
  static {
try {
System.loadLibrary(LZB); } 
catch (UnsatisfiedLinkError e) {  System.exit(1); } }

  public final static native boolean Measure(String jarg1, int jarg2); 
}

The C library has 1 exported method like...
JNIEXPORT jboolean JNICALL Java_com_xrite_lzb_LZBJNI_Measure(JNIEnv
*jenv, jclass jcls, jstring jarg1, jint jarg2);

The compiled java code is located in the axis classes folder like...
WEB-INF\classes\com\xrite\lzb\LZB.class  LZBJNI.class

I have found that a real problem is where to put the C library.  For now
I have found that in the path of java works so right now they are at
C:\j2sdk1.4.2_06\bin.

I had this working (with the kludge of where to put the C library)
before I added the package name (com.xrite.lzb) to the java code so I
think the error is related to the package name change.  I added the
package name because we could not get the client web service method call
to work without it (we are calling the method from some JavaScript in
Firefox browser).  In addition, I can call the above code with a local
java client calling the methods directly without using the web service. 

I notice in the wsdl generated by axis that the namespace is reversed,
shown below, why is this?
wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
namespace=http://lzb.xrite.com; use=encoded/

What is going on?  Why do I get this error?  Where should the java
classes  C libraries go?  How should I use namespaces in my java code?
Do I need to remove the java package name and specify namespaces in my
wsdd somehow?

Thanks for any assistance you can provide!

-dh



Re: [News] ANNOUNCEMENT : Axis C++ 1.5 alpha final Released

2005-02-11 Thread Toshiyuki Kimura
To: 皆様

 木村です。

 リリースノート部も日本語化して、サイトに掲載しました。
誤字脱字・誤訳などがあれば、ご連絡お願いします。
http://ws.apache.org/axis/ja/cpp/index.html

宜しくお願いします。
---
Toshi [EMAIL PROTECTED]

On Thu, 10 Feb 2005, Toshiyuki Kimura wrote:

 To: 皆様

  木村です。

  Axis C++ 1.5 Alphaの提供案内を日本語サイトからも
 [EMAIL PROTECTED][EMAIL PROTECTED](B

 On Wed, 9 Feb 2005, Toshiyuki Kimura wrote:

  Axis C++実装のver 1.5 alphaの提供が案内されました。
 http://ws.apache.org/axis/cpp/index.html
 
 [EMAIL PROTECTED]"1Q8l%5%$%H$K$7$+pJs$,$"$j$^$;$s$N$G!"[EMAIL PROTECTED]|$K
 でも日本語サイトの情報をアップデートしたい、と考えて
 います。

 宜しくお願いします。
 ---
 Toshi [EMAIL PROTECTED]

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



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

How to automate the build process of writing web service clients

2005-02-11 Thread babloosony
Hi All,

I have one interesting doubt! Say there are lot of WSDL's exposed by
some third party web service providers.  I am using Apache AXIS 1.2
RC2 on client side. Are there any tools out there that can write java
client programs  automatically that used stubs generated by AXIS 1.2
RC2. Since the wsdl's may describe a method that takes or returns 
some java bean to complex types which themselves again contain complex
types, I want to automate the process  of constructing such java
beans/complex types that are required to call a operation on the web
service.


I am automating the build process of above and constructing web
service client program that can readily be  used by others and only
problem is I am not able to automate the process of writing client
programs that can be used  for testing the web serivce endpoint.

Hope I am clear on my illustration. Please suggest 


Thanks  Regards,
Kumar.