Re: [axis2] TypeSystemHolder does not exist help needed - solved

2005-11-26 Thread iksrazal
In case anyone gets this same error, here is how I solved it: 

Buried in all those .xsb files, the WSDL2Java command creates a compiled 
class, like so: 

schemaorg_apache_xmlbeans/system/sA83263C4583E5B147EF2C07FFFC6DFF2/TypeSystemHolder.class

That class needs to be in the classpath used to compile the java source files 
which WSDL2Java produced. Here's how the relevant parts of my build.xml 
turned out: 

   path id=axis.classpath
  pathelement location=build/classes /
  fileset dir=${axis.home}/lib
include name=**/*.jar /
  /fileset
  fileset dir=lib
include name=*.jar/
  /fileset
  pathelement location=${build.classes} /
   /path

   target name=compile_wsdl2 depends=wsdl2
echo message=Compiling wsdl2 files/

javac
 srcdir=wise
 destdir=${build.classes}
 deprecation=true
 failonerror=true debug=true


 include name=**/*.java/
  classpath refid=axis.classpath/ 
/javac

copy todir=${build.classes} 
  fileset dir=wise 
include name=**/*.properties/
!-- any XML/XSL file --
include name=**/*.x*/
  /fileset
/copy
  /target

  !-- ./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p 
com.siemens.swa.plugins.webservices.types --
  target name=wsdl2 depends=clean,prepare
  java classname=org.apache.axis2.wsdl.WSDL2Java fork=true
  classpath refid=axis.classpath/ 
  arg value=-uri/
  arg file=wsdl/service.wsdl/
  arg value=-ss/
  arg value=-sd/
  arg value=-o/
  arg file=wise/
  arg value=-p/
  arg value=com.siemens.swa.plugins.webservices.types/
  /java

  !-- Move the schema folder to classpath--
  move todir=${build.classes}
  fileset dir=wise
  include name=**/*schema*/**/*.class/
  include name=**/*schema*/**/*.xsb/
  /fileset
  /move

  /target

iksrazal

Em Sexta 25 Novembro 2005 09:00, escreveu:
 Hi all,

 I 'm getting strange errors when trying to compile my WSDL2Java code with
 ant:

 ./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p
 com.siemens.swa.plugins.webservices.types

 [javac]
 /home/iksrazal/white3/wise/com/siemens/swa/plugins/webservices/types/databi
nding/org/xmlsoap/schemas/TimeDocument.java:19: package
 schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSyst
emHolder does not exist
 [javac] public static final org.apache.xmlbeans.SchemaType type =
 (org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sECC7940C4
012EB2293D5238A794D458D.TypeSystemHolder.typeSystem.resolveHandle(timea4a3d
octype);

 I think what I need to do is put the
 'schemaorg_apache_xml' dir generated by WSDL2Java in the classpath. After
 several attempts, however, I'm not having any luck.

 My classpath is:

   path id=axis.classpath
   pathelement location=build/classes /
   fileset dir=${axis.home}/lib
 include name=**/*.jar /
   /fileset
   fileset dir=lib
 include name=*.jar/
   /fileset
   pathelement location=wise/schemaorg_apache_xml /
/path

taskdef resource=axis-tasks.properties
   classpathref=axis.classpath /

 My target is:

 target name=compile_wsdl2 depends=clean,prepare
 echo message=Compiling wsdl2 files/

 javac
  srcdir=wise
  destdir=${build}
  deprecation=true
  failonerror=true debug=true


  include name=**/*.java/
   classpath refid=axis.classpath/
 /javac

 copy todir=${build} 
   fileset dir=wise 
 include name=**/*.properties/
 include name=**/*.x*/
   /fileset
 /copy
   /target

 Please help,
 iksrazal


Re: problem in developing .NET proxy for Axis web services

2005-11-26 Thread Anne Thomas Manes
Do you have this type defined in your WSDL:
'http://xml.apache.org/xml-soap:Element'?

I suspect not. Your DOM element should be defined a xsd:anyType, not as apachesoap:Element. 

Of course, you should avoid passing undefined types if possible. If you
know the schema of the element you'd like to exchange, then you should
define it in your WSDL.

AnneOn 11/25/05, MUHAMMAD IQBAL [EMAIL PROTECTED] wrote:

Hi Guys,I am having a problem regaring interoperablility, when i try to build a.NET proxy for my Axis web service it raises an error on Dom Element, ihave a doc/lit style web service that accepts Dom Element as a parameter
and returns Dom Element, but .NET generates an error when buildingproxy, the error message is:
d:\SpecSheetGenerator\WindowsApplication2\Web References\WebReference\Reference.map(1):
Custom tool error: Unable to import WebService/Schema. Unable to import
binding 'ProductDocumentServiceSoapBinding' from namespace 'http://192.168.30.134:8080/myService/services/MyService
'. Unable to import operation 'myMethod'. The datatype 'http://xml.apache.org/xml-soap:Element
' is missing.
can any one help me to fix this issue?Thanks in advance.Regards,Muhammad Iqbal







From:Hansen, Geir 
[EMAIL PROTECTED]Reply-To:axis-user@ws.apache.orgTo:
axis-user@ws.apache.orgSubject:RE: problem in developing .NET proxy for Axis web services
Date:Tue, 22 Nov 2005 18:16:34 +0100I think that generates an error is not spesific enough to be able to
help you.Can you describe the problem in a bit more detail?-Original Message-From: MUHAMMAD IQBAL [mailto:
[EMAIL PROTECTED]]Sent: 22. november 2005 17:28To: axis-user@ws.apache.orgSubject: problem in developing .NET proxy for Axis web services
Hi Guys,I am having a problem regaring interoperablility, when i try to build a.NET proxy for my Axis web service 
it raises an error on Dom Element, ihave a doc/lit style web service that accepts Dom Element as a parameterand returns Dom Element, but .NET generates an error when buildingproxy.can any one help me to fix this issue?
Thanks in advance.Regards,Muhammad Iqbal




Re: [axis2] Document-Literal Wrapped Dispatching

2005-11-26 Thread Anne Thomas Manes
A document/literal wrapped service does not accept an arbitrary XML
document. It requires that the XML document comply with a specific
schema. 

The Axis RPC dispatcher (used for rpc/encoded, rpc/literal,
document/wrapped, and document/unwrapped styles) always uses the QName
of the child element of the soap:Body to determine how to
dispatch the request.

In rpc/encoded, rpc/literal, and document/wrapped, the name of the
child element is always the same as the operation name. In
document/unwrapped, you must provide a mapping from the QName to the
appropriate method by specifying an operation definition in the
WSDD.

AnneOn 11/23/05, Wan Luo [EMAIL PROTECTED] wrote:
Hi Everyone,

I am wondering what the Model is for processing Document Literal
Wrapped Web Services. That is, if we consider a document literal
wrapped service simply as an arbitrary XML document over HTTP, how does
the dispatcher know which service to invoke? Does it use the name of
the wrapper? I couldn't find any of this documented on the homepage.

Also, are there any samples of deploying document-literal wrapped WS's in Axis 2 that anyone can point me to?

Thanks.





Shared Session Objects

2005-11-26 Thread Todd Orr
I am having trouble with Axis' session handling. I have two services. One deals with logging a user in to the system. The other performs some business specific logic. This user service has a login method that stores some data in the session to use as a key for subsequent isLoggedIn calls. If I call the user web service and login, it works. If I then subsequently call the user services' isLoggedIn method, it works. However, if I then call a business method on the other service that calls out to the user service object to determine if the user is logged in, it fails. What am I missing?



How is Java RMI used in Axis services?

2005-11-26 Thread Eric Rybarczyk
Can anyone offer insight into how Axis makes use of RMI?  This might be from
your own knowledge or links to documentation which explains it. I did some
searching but was not able to find this information.

I have used WSDL2Java to generate server-side skeleton code, and have then
implemented my services from there.  I noticed the code that is generated makes
reference to some RMI objects.  For example, the [ServiceName]Impl.java
implementation class defines the service operation method as throwing
java.rmi.RemoteException, and the [ServiceName]Interface extends
java.rmi.Remote.

Thanks for any insight you can offer!

Eric Rybarczyk



__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free. 
http://music.yahoo.com/unlimited/


Re: [axis2] TypeSystemHolder does not exist help needed - solved

2005-11-26 Thread Eran Chinthaka




Hi Iksrazal,

This was a known issue. I think Ajith once wrote a small ant script to
copy the generated stuff to correct places and generate a jar file.

Anyway, since this is a well know problem and a solution, can you
please open a JIRA on this and close it giving your solution. This will
be useful for tracking purposes. 

And one other thing, seems like you are using the data binding stuff a
lot. So if you can write a small article on, using Axis2 data binding,
from your experience, I'm happy to host that in Axis2 web site itself.
I think others also can help you with that. This will be useful for all
the new comers to Axis2 and its a good time for you to give something
back to the community  :-) 

Hope you don't have any intellectual property problems with the company
in doing that. ;-) 

Chinthaka

iksrazal wrote:

  In case anyone gets this same error, here is how I solved it: 

Buried in all those .xsb files, the WSDL2Java command creates a compiled 
class, like so: 

schemaorg_apache_xmlbeans/system/sA83263C4583E5B147EF2C07FFFC6DFF2/TypeSystemHolder.class

That class needs to be in the classpath used to compile the java source files 
which WSDL2Java produced. Here's how the relevant parts of my build.xml 
turned out: 

   path id="axis.classpath"
  pathelement location="build/classes" /
  fileset dir="${axis.home}/lib"
include name="**/*.jar" /
  /fileset
  fileset dir="lib"
include name="*.jar"/
  /fileset
  pathelement location="${build.classes}" /
   /path

   target name="compile_wsdl2" depends="wsdl2"
echo message="Compiling wsdl2 files"/

javac
 srcdir="wise"
 destdir="${build.classes}"
 deprecation="true"
 failonerror="true" debug="true"


 include name="**/*.java"/
  classpath refid="axis.classpath"/ 
/javac

copy todir="${build.classes}" 
  fileset dir="wise" 
include name="**/*.properties"/
!-- any XML/XSL file --
include name="**/*.x*"/
  /fileset
/copy
  /target

  !-- ./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p 
com.siemens.swa.plugins.webservices.types --
  target name="wsdl2" depends="clean,prepare"
  java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
  classpath refid="axis.classpath"/ 
  arg value="-uri"/
  arg file="wsdl/service.wsdl"/
  arg value="-ss"/
  arg value="-sd"/
  arg value="-o"/
  arg file="wise"/
  arg value="-p"/
  arg value="com.siemens.swa.plugins.webservices.types"/
  /java

  !-- Move the schema folder to classpath--
  move todir="${build.classes}"
  fileset dir="wise"
  include name="**/*schema*/**/*.class"/
  include name="**/*schema*/**/*.xsb"/
  /fileset
  /move

  /target

iksrazal

Em Sexta 25 Novembro 2005 09:00, escreveu:
  
  
Hi all,

I 'm getting strange errors when trying to compile my WSDL2Java code with
ant:

./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p
com.siemens.swa.plugins.webservices.types

[javac]
/home/iksrazal/white3/wise/com/siemens/swa/plugins/webservices/types/databi
nding/org/xmlsoap/schemas/TimeDocument.java:19: package
schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSyst
emHolder does not exist
[javac] public static final org.apache.xmlbeans.SchemaType type =
(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sECC7940C4
012EB2293D5238A794D458D.TypeSystemHolder.typeSystem.resolveHandle("timea4a3d
octype");

I think what I need to do is put the
'schemaorg_apache_xml' dir generated by WSDL2Java in the classpath. After
several attempts, however, I'm not having any luck.

My classpath is:

  path id="axis.classpath"
  pathelement location="build/classes" /
  fileset dir="${axis.home}/lib"
include name="**/*.jar" /
  /fileset
  fileset dir="lib"
include name="*.jar"/
  /fileset
  pathelement location="wise/schemaorg_apache_xml" /
   /path

   taskdef resource="axis-tasks.properties"
  classpathref="axis.classpath" /

My target is:

target name="compile_wsdl2" depends="clean,prepare"
echo message="Compiling wsdl2 files"/

javac
 srcdir="wise"
 destdir="${build}"
 deprecation="true"
 failonerror="true" debug="true"


 include name="**/*.java"/
  classpath refid="axis.classpath"/
/javac

copy todir="${build}" 
  fileset dir="wise" 
include name="**/*.properties"/
include name="**/*.x*"/
  /fileset
/copy
  /target

Please help,
iksrazal

  
  
  





Cancel Validation in Subclass

2005-11-26 Thread Eric Anderson

Quick question,

I have a class which has a validates* declaration to validate the model. 
Specifically it has a validates_presence_of declaration. In a subclass 
of that class I want to get rid of this validation. Is there a way a 
validation can be removed?


Eric



unsubscribe me

2005-11-26 Thread Manivannan Gopalan

Pls Unsubscribe me

Regards,
Mani

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


RE: unsubscribe me

2005-11-26 Thread Venu Kanaparthy
Please unsubscribe me too.
Thanks
Venu

-Original Message-
From: Manivannan Gopalan [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 26, 2005 9:30 PM
To: axis-user@ws.apache.org
Cc: axis-dev@ws.apache.org
Subject: unsubscribe me 


Pls Unsubscribe me


Regards,
Mani

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are
unlawful. This e-mail may contain viruses. Infosys has taken every
reasonable precaution to minimize this risk, but is not liable for any
damage you may sustain as a result of any virus in this e-mail. You
should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Re: Cancel Validation in Subclass

2005-11-26 Thread Eric Anderson

Eric Anderson wrote:
I have a class which has a validates* declaration to validate the model. 
Specifically it has a validates_presence_of declaration. In a subclass 
of that class I want to get rid of this validation. Is there a way a 
validation can be removed?


Ignore this. Wrong gmane group.

Eric



Dynamic invocation on document style (doc/lit) web services with complex data type

2005-11-26 Thread Xinjun Chen
How can we so dynamic invocation on document style (doc/lit) web services? The parameter is a complex type instead of a primitive type. 

As far as I know, for RPC style services, I can use org.apache.axis.client to realize dynamic invocation, but how about for document style services? The DynamicInvoker in samples.client package seems provide a solution. But how about for complex type? 

Is there any thing like Call.invoke() i can use to realize dynamic invocation on doc/lit services? 

Regards, 
Xinjun


WSDL Location Question

2005-11-26 Thread Todd Orr
I've read up on how to tell Axis to use a specific wsdl instead of auto-generating them. I still have not found any information on altering the public wsdl location. So, I moved my wsdls into a publicly accessible (outside of WEB-INF) directory. Now I can easily generate client stubs. However, I cannot submit a soap request to these locations. 
Is there a way to configure the public wsdl location, and the service's access point? Preferably, they'd be one in the same. The big part of the problem is that I find the default inadequate.Thanks,T