Re: Disable wsdl url

2009-10-08 Thread Amila Suriarachchi
hi,

if you have deployed axis2 as a web app, try to put a servlet filter or
define some url pattern in the web.xml

thanks,
Amila


On Wed, Oct 7, 2009 at 3:50 PM, Darshana ® srdarsh...@gmail.com wrote:

 Hello,

 I want to disable people accessing the wsdl. Currently any one can access
 wsdl of the my axis2 project through
 home_url:9002/web/services/Axis2WS?wsdl.

 I just want to restrict people accessing the wsdl, simply I want to disable
 the wsdl url.

 But I couldnt find a way to do this, it'll be a great help if any body can
 give me a solution for this.

 Thanks





-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: HELP! Axis to .NET - RPC/Encoded style.

2009-10-08 Thread Joey Baghodoughnuts
Since I couldn't get any replies to my original post, I am going to post the 
URL where I finally found the solution: 
http://www.codeproject.com/KB/webservices/DOTNET_with_WS_APACHEAXIS.aspx

Lots of manual work with serialization and using a generic Soap Client.


-Joe





From: Joey Baghodoughnuts thisisafakeemaila...@yahoo.com
To: axis-user@ws.apache.org
Sent: Mon, October 5, 2009 5:03:20 PM
Subject: HELP! Axis to .NET - RPC/Encoded style.



Does anyone know whether or not there is a way to get the apache soap schema so 
I can build a .Net client for an axis service that uses the 
http://xml.apache.org/xml-soap:Document object?  I don't even know if this is 
possible, but I'm sure if there's a way, someone on this list should know.  

Further background:
-I cannot modify the wsdl contract / WS, it's a third party app.
-All types (req and response) are of the type 
http://xml.apache.org/xml-soap:Document
-The style is rpc/encoded(i think) (not natively supported in .NET).

Any help would be appreciated.

Thanks!

-Joe 



  

Re: Disable wsdl url

2009-10-08 Thread Darshana ®
Thanks amila, I'll try it and see.

On Thu, Oct 8, 2009 at 11:53 AM, Amila Suriarachchi 
amilasuriarach...@gmail.com wrote:

 hi,

 if you have deployed axis2 as a web app, try to put a servlet filter or
 define some url pattern in the web.xml

 thanks,
 Amila



 On Wed, Oct 7, 2009 at 3:50 PM, Darshana ® srdarsh...@gmail.com wrote:

 Hello,

 I want to disable people accessing the wsdl. Currently any one can access
 wsdl of the my axis2 project through
 home_url:9002/web/services/Axis2WS?wsdl.

 I just want to restrict people accessing the wsdl, simply I want to
 disable the wsdl url.

 But I couldnt find a way to do this, it'll be a great help if any body can
 give me a solution for this.

 Thanks





 --
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/



Cannot load SchemaTypeSystem

2009-10-08 Thread Schalk
Hi there,

I finally got Axis2 to generate the appropriate stubs etc for me, finally
having to use the command line tool, and I chose XMLBeans as my data binding
solution as I have worked with it before and found it real easy to use.

After having to hunt around for some jar files I can finally run a servlet
to test out the generated code.

I start of the servlet with the following:
GetPointsByRadiusDocumentImpl pointsByRadius = new
GetPointsByRadiusDocumentImpl(GetPointsByRadiusDocument.type);

However, when running the servlet I get the exception mentioned above i.e.

java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load
class with name
schemaorg_apache_xmlbeans.system.sEFB7B44E94FC7E3BBFB970E23CA0512F.TypeSyste
mHolder. Make sure the generated binary files are on the classpath.

Any help will be much appreciated.

Thanks!
Schalk

AfriGIS e-mail facility may not be used for the distribution of chain letters 
or offensive email. AfriGIS hereby distances itself from and accepts no 
liability for the unauthorized use of its e-mail facility or the sending of 
e-mail communications for other than strictly business purposes. AfriGIS 
furthermore disclaims liability for any unauthorized instruction for which 
permission was not granted. Required as per Sec 50 Companies Act 61 of 1973 
Afrigis Pty LTD Reg No 1997/0067/1607.



Re: Disable wsdl url

2009-10-08 Thread Suresh

Hi,
Instead of disabling wsdl it is to put an empty wsdl. In the  
configuration file you can mention ur empty wsdl and then this wsdl  
will be displayed when users try to access wsdl from URL


Thanks,
Suresh Metla

On Oct 8, 2009, at 5:09 AM, Darshana ® srdarsh...@gmail.com wrote:


Thanks amila, I'll try it and see.

On Thu, Oct 8, 2009 at 11:53 AM, Amila Suriarachchi amilasuriarach...@gmail.com 
 wrote:

hi,

if you have deployed axis2 as a web app, try to put a servlet filter  
or define some url pattern in the web.xml


thanks,
Amila



On Wed, Oct 7, 2009 at 3:50 PM, Darshana ® srdarsh...@gmail.com wr 
ote:

Hello,

I want to disable people accessing the wsdl. Currently any one can  
access wsdl of the my axis2 project through home_url:9002/web/ 
services/Axis2WS?wsdl.


I just want to restrict people accessing the wsdl, simply I want to  
disable the wsdl url.


But I couldnt find a way to do this, it'll be a great help if any  
body can give me a solution for this.


Thanks





--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/



RE: Cannot load SchemaTypeSystem

2009-10-08 Thread Christian Gosch
XMLbeans does not only generate classes, but lots of additional 
binaries, which must be presesnt on the classpath.

Look through your output folder, and you will find an additional folder 
with this stuff.

Add it to your runtime classpath, and you may be done :-)

--cg

 -Original Message-
 From: sch...@afrigis.co.za [mailto:sch...@afrigis.co.za]
 Sent: Thursday, October 08, 2009 12:29 PM
 To: axis-user@ws.apache.org
 Subject: Cannot load SchemaTypeSystem
 
 Hi there,
 
 I finally got Axis2 to generate the appropriate stubs etc for me, 
finally
 having to use the command line tool, and I chose XMLBeans as my data
 binding
 solution as I have worked with it before and found it real easy to 
use.
 
 After having to hunt around for some jar files I can finally run a 
servlet
 to test out the generated code.
 
 I start of the servlet with the following:
 GetPointsByRadiusDocumentImpl pointsByRadius = new
 GetPointsByRadiusDocumentImpl(GetPointsByRadiusDocument.type);
 
 However, when running the servlet I get the exception mentioned above 
i.e.
 
 java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to 
load
 class with name
 
schemaorg_apache_xmlbeans.system.sEFB7B44E94FC7E3BBFB970E23CA0512F.TypeS
ys
 te
 mHolder. Make sure the generated binary files are on the classpath.
 
 Any help will be much appreciated.
 
 Thanks!
 Schalk
 
 AfriGIS e-mail facility may not be used for the distribution of chain
 letters or offensive email. AfriGIS hereby distances itself from and
 accepts no liability for the unauthorized use of its e-mail facility 
or
 the sending of e-mail communications for other than strictly business
 purposes. AfriGIS furthermore disclaims liability for any unauthorized
 instruction for which permission was not granted. Required as per Sec 
50
 Companies Act 61 of 1973 Afrigis Pty LTD Reg No 1997/0067/1607.
 
 
 !DSPAM:4acdbf1b326661199011006!
 
 




RE: Cannot load SchemaTypeSystem

2009-10-08 Thread Schalk
Hi there Christian,

I did find the resource folder with stacks of .xsb files on. I added this to
the sources in the build path in Eclipse as well as to the Output... tab.
However, I still get the problem, any ideas as to where else I need to set
something? Maybe something to do with Tomcat? Thanks for your help.

--
Kind Regards
Schalk Neethling

-Original Message-
From: Christian Gosch [mailto:christian.go...@inovex.de] 
Sent: 08 October 2009 02:13 PM
To: axis-user
Subject: RE: Cannot load SchemaTypeSystem

XMLbeans does not only generate classes, but lots of additional 
binaries, which must be presesnt on the classpath.

Look through your output folder, and you will find an additional folder 
with this stuff.

Add it to your runtime classpath, and you may be done :-)

--cg

 -Original Message-
 From: sch...@afrigis.co.za [mailto:sch...@afrigis.co.za]
 Sent: Thursday, October 08, 2009 12:29 PM
 To: axis-user@ws.apache.org
 Subject: Cannot load SchemaTypeSystem
 
 Hi there,
 
 I finally got Axis2 to generate the appropriate stubs etc for me, 
finally
 having to use the command line tool, and I chose XMLBeans as my data
 binding
 solution as I have worked with it before and found it real easy to 
use.
 
 After having to hunt around for some jar files I can finally run a 
servlet
 to test out the generated code.
 
 I start of the servlet with the following:
 GetPointsByRadiusDocumentImpl pointsByRadius = new
 GetPointsByRadiusDocumentImpl(GetPointsByRadiusDocument.type);
 
 However, when running the servlet I get the exception mentioned above 
i.e.
 
 java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to 
load
 class with name
 
schemaorg_apache_xmlbeans.system.sEFB7B44E94FC7E3BBFB970E23CA0512F.TypeS
ys
 te
 mHolder. Make sure the generated binary files are on the classpath.
 
 Any help will be much appreciated.
 
 Thanks!
 Schalk
 
 AfriGIS e-mail facility may not be used for the distribution of chain
 letters or offensive email. AfriGIS hereby distances itself from and
 accepts no liability for the unauthorized use of its e-mail facility 
or
 the sending of e-mail communications for other than strictly business
 purposes. AfriGIS furthermore disclaims liability for any unauthorized
 instruction for which permission was not granted. Required as per Sec 
50
 Companies Act 61 of 1973 Afrigis Pty LTD Reg No 1997/0067/1607.
 
 
 !DSPAM:4acdbf1b326661199011006!
 
 


AfriGIS e-mail facility may not be used for the distribution of chain
letters or offensive email. AfriGIS hereby distances itself from and accepts
no liability for the unauthorized use of its e-mail facility or the sending
of e-mail communications for other than strictly business purposes. AfriGIS
furthermore disclaims liability for any unauthorized instruction for which
permission was not granted. Required as per Sec 50 Companies Act 61 of 1973
Afrigis Pty LTD Reg No 1997/0067/1607.

AfriGIS e-mail facility may not be used for the distribution of chain letters 
or offensive email. AfriGIS hereby distances itself from and accepts no 
liability for the unauthorized use of its e-mail facility or the sending of 
e-mail communications for other than strictly business purposes. AfriGIS 
furthermore disclaims liability for any unauthorized instruction for which 
permission was not granted. Required as per Sec 50 Companies Act 61 of 1973 
Afrigis Pty LTD Reg No 1997/0067/1607.



Out of memory exception

2009-10-08 Thread Xessa

I'm trying to get an xml response as a client and i generally get an out of
memory exception while trying to get the xml data.

at
org.apache.axis.message.SAX2EventRecorder$objArrayVector.add(SAX2EventRecorder.java:254)
at
org.apache.axis.message.SAX2EventRecorder.characters(SAX2EventRecorder.java:91)
at
org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:963)

Are there any people who faced this problem?

What is the solution to this problem?

Axis 1.3
-- 
View this message in context: 
http://www.nabble.com/Out-of-memory-exception-tp25803000p25803000.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: Out of memory exception

2009-10-08 Thread Mary Hu
The message payload might be too large. You have to think of a way to break 
down the message from the source side

-Original Message-
From: Xessa [mailto:gkhn...@gmail.com] 
Sent: Thursday, October 08, 2009 9:56 AM
To: axis-user@ws.apache.org
Subject: Out of memory exception


I'm trying to get an xml response as a client and i generally get an out of
memory exception while trying to get the xml data.

at
org.apache.axis.message.SAX2EventRecorder$objArrayVector.add(SAX2EventRecorder.java:254)
at
org.apache.axis.message.SAX2EventRecorder.characters(SAX2EventRecorder.java:91)
at
org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:963)

Are there any people who faced this problem?

What is the solution to this problem?

Axis 1.3
-- 
View this message in context: 
http://www.nabble.com/Out-of-memory-exception-tp25803000p25803000.html
Sent from the Axis - User mailing list archive at Nabble.com.

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.


Re: Cannot load SchemaTypeSystem

2009-10-08 Thread FRYARS, Michael
In among all those .xsb files you'll find a single .class file, and this 
.class must be available at runtime.  [Note: XMLBeans generates the 
.class directly, it doesn't generate a .java and then have it compiled]


I saw the problem you describe when running JUnit tests which used an 
axis2-generated SOAP client. The AAR deployed in the axis2 WAR was fine. 
But the (eclipse) project that held the tests didn't have this XMLBeans 
.class file in the 'bin' directory. It was present in the 'resource' 
directory, which was the target directory for XMLBeans generated source, 
but it wasn't copied to the bin directory and so wasn't available to the 
test client at runtime. Simply copying it across to the bin directory 
solved the problem.


Regards,


Michael


sch...@afrigis.co.za a écrit :

Hi there Christian,

I did find the resource folder with stacks of .xsb files on. I added this to
the sources in the build path in Eclipse as well as to the Output... tab.
However, I still get the problem, any ideas as to where else I need to set
something? Maybe something to do with Tomcat? Thanks for your help.

--
Kind Regards
Schalk Neethling

-Original Message-
From: Christian Gosch [mailto:christian.go...@inovex.de] 
Sent: 08 October 2009 02:13 PM

To: axis-user
Subject: RE: Cannot load SchemaTypeSystem

XMLbeans does not only generate classes, but lots of additional 
binaries, which must be presesnt on the classpath.


Look through your output folder, and you will find an additional folder 
with this stuff.


Add it to your runtime classpath, and you may be done :-)

--cg

  

-Original Message-
From: sch...@afrigis.co.za [mailto:sch...@afrigis.co.za]
Sent: Thursday, October 08, 2009 12:29 PM
To: axis-user@ws.apache.org
Subject: Cannot load SchemaTypeSystem

Hi there,

I finally got Axis2 to generate the appropriate stubs etc for me, 


finally
  

having to use the command line tool, and I chose XMLBeans as my data
binding
solution as I have worked with it before and found it real easy to 


use.
  
After having to hunt around for some jar files I can finally run a 


servlet
  

to test out the generated code.

I start of the servlet with the following:
GetPointsByRadiusDocumentImpl pointsByRadius = new
GetPointsByRadiusDocumentImpl(GetPointsByRadiusDocument.type);

However, when running the servlet I get the exception mentioned above 


i.e.
  
java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to 


load
  

class with name



schemaorg_apache_xmlbeans.system.sEFB7B44E94FC7E3BBFB970E23CA0512F.TypeS
ys
  

te
mHolder. Make sure the generated binary files are on the classpath.

Any help will be much appreciated.

Thanks!
Schalk

AfriGIS e-mail facility may not be used for the distribution of chain
letters or offensive email. AfriGIS hereby distances itself from and
accepts no liability for the unauthorized use of its e-mail facility 


or
  

the sending of e-mail communications for other than strictly business
purposes. AfriGIS furthermore disclaims liability for any unauthorized
instruction for which permission was not granted. Required as per Sec 


50
  

Companies Act 61 of 1973 Afrigis Pty LTD Reg No 1997/0067/1607.


!DSPAM:4acdbf1b326661199011006!






AfriGIS e-mail facility may not be used for the distribution of chain
letters or offensive email. AfriGIS hereby distances itself from and accepts
no liability for the unauthorized use of its e-mail facility or the sending
of e-mail communications for other than strictly business purposes. AfriGIS
furthermore disclaims liability for any unauthorized instruction for which
permission was not granted. Required as per Sec 50 Companies Act 61 of 1973
Afrigis Pty LTD Reg No 1997/0067/1607.

AfriGIS e-mail facility may not be used for the distribution of chain letters 
or offensive email. AfriGIS hereby distances itself from and accepts no 
liability for the unauthorized use of its e-mail facility or the sending of 
e-mail communications for other than strictly business purposes. AfriGIS 
furthermore disclaims liability for any unauthorized instruction for which 
permission was not granted. Required as per Sec 50 Companies Act 61 of 1973 
Afrigis Pty LTD Reg No 1997/0067/1607.

  


Axis 1 (1.4) - Simple proof of concept client not working - SAXParserException: Content is not allowed in prolog

2009-10-08 Thread mule_user

I am new to Axis. I am using Axis 1 (not Axis2). I am trying to make a simple
app work. I created a web project called Axis1 which has two modles namely
Axis1(which only has META-INF\application.xml) and Axis1Web. Axis1Web has
the source code.

  

Axis1Web
|
---META-INF
   |
   application.xml 

?xml version=1.0 encoding=UTF-8?
application id=Application_ID version=1.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd;
display-name
Axis1/display-name
module id=WebModule_1255025189235
web
web-uriAxis1Web.war/web-uri
context-rootAxis1Web/context-root
/web
/module
/application


  
Axis1Web
|
src
 |
  -org.ncc.server 
 |  |
 |   Calculator
 |  |
 |   SimpleCalculator
 |
 -org.ncc.client (contains code geberated by WSDL2Java)
   |
   Axis1WebSoapBindingStub
   |
   Calculator
   |
   CalculatorService
   |
   CalculatorServiceLocator
   |
   CalcCleint (written by me, not generated by WSDl2Java)


Axis1Web project's WEB-INF\lib contains all the jar files from lib directory
of Axis 1 (version 1.4). That is why wsdl2Java generated classes comiple
successfully.

Axis1Web\WebContent\WEB-INF\web.xml
 

?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
display-name
Axis1Web/display-name
/web-app
/

Interface in server package:
/
package org.ncc.server;

public interface Calculator {
int add (int x, int y);
}
/

Implementation in server package:
  
package org.ncc.server;

public class SimpleCalculator {
 public int add(int a, int b) {  
 return a + b;   
}   
}
/
I copied Calculator.class to C:\Axis. Then I ran the following to generate
Java2WSDL. 


C:\Axisset
CLASSPATH=%AXIS_CLASSPATH%;C:\workspace-7.5\Axis1Web\WebContent\WEB-
INF\classes

C:\Axisjava -classpath %CLASSPATH% org.apache.axis.wsdl.Java2WSDL -o
calculator
.wsdl -n urn:org.ncc.calculator -l http://localhost:9081/Axis1Web
org.ncc.server
.Calculator


Generated C:\Axis\claculator.wsdl is:
/
?xml version=1.0 encoding=UTF-8?
wsdl:definitions targetNamespace=urn:org.ncc.calculator
xmlns:apachesoap=http://xml.apache.org/xml-soap;
xmlns:impl=urn:org.ncc.calculator xmlns:intf=urn:org.ncc.calculator
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
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.4
Built on Apr 22, 2006 (06:55:48 PDT)--

   wsdl:message name=addResponse

  wsdl:part name=addReturn type=xsd:int/

   /wsdl:message

   wsdl:message name=addRequest

  wsdl:part name=in0 type=xsd:int/

  wsdl:part name=in1 type=xsd:int/

   /wsdl:message

   wsdl:portType name=Calculator

  wsdl:operation name=add parameterOrder=in0 in1

 wsdl:input message=impl:addRequest name=addRequest/

 wsdl:output message=impl:addResponse name=addResponse/

  /wsdl:operation

   /wsdl:portType

   wsdl:binding name=Axis1WebSoapBinding type=impl:Calculator

  wsdlsoap:binding style=rpc
transport=http://schemas.xmlsoap.org/soap/http/

  wsdl:operation name=add

 wsdlsoap:operation soapAction=/

 wsdl:input name=addRequest

wsdlsoap:body
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
namespace=urn:org.ncc.calculator use=encoded/

 /wsdl:input

 wsdl:output name=addResponse

wsdlsoap:body
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
namespace=urn:org.ncc.calculator use=encoded/

 /wsdl:output

  /wsdl:operation

   /wsdl:binding

   wsdl:service name=CalculatorService

  wsdl:port binding=impl:Axis1WebSoapBinding name=Axis1Web

 wsdlsoap:address location=http://localhost:9081/Axis1Web/

  /wsdl:port

   /wsdl:service

/wsdl:definitions
/

Next, I ran WSDL2Java

C:\Axisjava org.apache.axis.wsdl.WSDL2Java  calculator.wsdl


This generated 4 classes in C:\Axis. I copy these 4 classes to
org.ncc.client package, changed package name inside the classes, compiled
these 4 classes. Classes in client package after successful compiling are
shown below:

/
package 

Re: Axis 1 (1.4) - Simple proof of concept client not working - SAXParserException: Content is not allowed in prolog

2009-10-08 Thread mule_user



mule_user wrote:
 
 I am new to Axis. I am using Axis 1 (not Axis2). I am trying to make a
 simple app work. I created a web project called Axis1 which has two modles
 namely Axis1(which only has META-INF\application.xml) and Axis1Web.
 Axis1Web has the source code.
 
   
 
 Axis1Web
 |
 ---META-INF
|
application.xml 
 
 ?xml version=1.0 encoding=UTF-8?
 application id=Application_ID version=1.4
 xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/application_1_4.xsd;
   display-name
   Axis1/display-name
   module id=WebModule_1255025189235
   web
   web-uriAxis1Web.war/web-uri
   context-rootAxis1Web/context-root
   /web
   /module
 /application
 
 
   
 Axis1Web
 |
 src
  |
   -org.ncc.server 
  |  |
  |   Calculator
  |  |
  |   SimpleCalculator
  |
  -org.ncc.client (contains code geberated by WSDL2Java)
|
Axis1WebSoapBindingStub
|
Calculator
|
CalculatorService
|
CalculatorServiceLocator
|
CalcCleint (written by me, not generated by WSDl2Java)
 
 
 Axis1Web project's WEB-INF\lib contains all the jar files from lib
 directory of Axis 1 (version 1.4). That is why wsdl2Java generated classes
 comiple successfully.
 
 Axis1Web\WebContent\WEB-INF\web.xml
  
 
 ?xml version=1.0 encoding=UTF-8?
 web-app id=WebApp_ID version=2.4
 xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   display-name
   Axis1Web/display-name
 /web-app
 /
 
 Interface in server package:
 /
 package org.ncc.server;
 
 public interface Calculator {
   int add (int x, int y);
 }
 /
 
 Implementation in server package:
   
 package org.ncc.server;
 
 public class SimpleCalculator {
public int add(int a, int b) {  
return a + b;   
   }   
 }
 /
 I copied Calculator.class to C:\Axis. Then I ran the following to generate
 Java2WSDL. 
 
 
 C:\Axisset
 CLASSPATH=%AXIS_CLASSPATH%;C:\workspace-7.5\Axis1Web\WebContent\WEB-
 INF\classes
 
 C:\Axisjava -classpath %CLASSPATH% org.apache.axis.wsdl.Java2WSDL -o
 calculator
 .wsdl -n urn:org.ncc.calculator -l http://localhost:9081/Axis1Web
 org.ncc.server
 .Calculator
 
 
 Generated C:\Axis\claculator.wsdl is:
 /
 ?xml version=1.0 encoding=UTF-8?
 wsdl:definitions targetNamespace=urn:org.ncc.calculator
 xmlns:apachesoap=http://xml.apache.org/xml-soap;
 xmlns:impl=urn:org.ncc.calculator xmlns:intf=urn:org.ncc.calculator
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
 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.4
 Built on Apr 22, 2006 (06:55:48 PDT)--
 
wsdl:message name=addResponse
 
   wsdl:part name=addReturn type=xsd:int/
 
/wsdl:message
 
wsdl:message name=addRequest
 
   wsdl:part name=in0 type=xsd:int/
 
   wsdl:part name=in1 type=xsd:int/
 
/wsdl:message
 
wsdl:portType name=Calculator
 
   wsdl:operation name=add parameterOrder=in0 in1
 
  wsdl:input message=impl:addRequest name=addRequest/
 
  wsdl:output message=impl:addResponse name=addResponse/
 
   /wsdl:operation
 
/wsdl:portType
 
wsdl:binding name=Axis1WebSoapBinding type=impl:Calculator
 
   wsdlsoap:binding style=rpc
 transport=http://schemas.xmlsoap.org/soap/http/
 
   wsdl:operation name=add
 
  wsdlsoap:operation soapAction=/
 
  wsdl:input name=addRequest
 
 wsdlsoap:body
 encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 namespace=urn:org.ncc.calculator use=encoded/
 
  /wsdl:input
 
  wsdl:output name=addResponse
 
 wsdlsoap:body
 encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 namespace=urn:org.ncc.calculator use=encoded/
 
  /wsdl:output
 
   /wsdl:operation
 
/wsdl:binding
 
wsdl:service name=CalculatorService
 
   wsdl:port binding=impl:Axis1WebSoapBinding name=Axis1Web
 
  wsdlsoap:address location=http://localhost:9081/Axis1Web/
 
   /wsdl:port
 
/wsdl:service
 
 /wsdl:definitions
 /
 
 Next, I ran WSDL2Java
 
 C:\Axisjava org.apache.axis.wsdl.WSDL2Java  calculator.wsdl
 
 
 This generated 4 classes in C:\Axis. I copy these 4 classes to
 org.ncc.client 

unsubscribe

2009-10-08 Thread Gudikoti, Rajesh
 



Please help Logica to respect the environment by not printing this email  / 
Pour contribuer comme Logica au respect de l'environnement, merci de ne pas 
imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie 
so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a 
respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.



RE: Cannot load SchemaTypeSystem

2009-10-08 Thread Schalk
Awesome Michael,

That did the job, in my case I had to copy it to the build directory as it
is a web app but it worked perfectly. Now though I encountered a lovely
surprise, a NullPointerException thrown by one of the generated stubs,
specifically this line:

_messageContext.getTransportOut().getSender().cleanup(_messageContext);

I will add some log statements in here but I am guessing it is
_messageContext. I now the stub had various constructors and for some of
these if you only provide the end point it sets the other, which I believe
is this _messageContext to null, not sure why those constructors exist then
if you should not really be using them, or am I missing something?

--
Kind Regards
Schalk Neethling

-Original Message-
From: FRYARS, Michael [mailto:fryar...@gmail.com] 
Sent: 08 October 2009 10:06 PM
To: axis-user@ws.apache.org
Subject: Re: Cannot load SchemaTypeSystem

In among all those .xsb files you'll find a single .class file, and this 
.class must be available at runtime.  [Note: XMLBeans generates the 
.class directly, it doesn't generate a .java and then have it compiled]

I saw the problem you describe when running JUnit tests which used an 
axis2-generated SOAP client. The AAR deployed in the axis2 WAR was fine. 
But the (eclipse) project that held the tests didn't have this XMLBeans 
.class file in the 'bin' directory. It was present in the 'resource' 
directory, which was the target directory for XMLBeans generated source, 
but it wasn't copied to the bin directory and so wasn't available to the 
test client at runtime. Simply copying it across to the bin directory 
solved the problem.

Regards,


Michael


sch...@afrigis.co.za a écrit :
 Hi there Christian,

 I did find the resource folder with stacks of .xsb files on. I added this
to
 the sources in the build path in Eclipse as well as to the Output... tab.
 However, I still get the problem, any ideas as to where else I need to set
 something? Maybe something to do with Tomcat? Thanks for your help.

 --
 Kind Regards
 Schalk Neethling

 -Original Message-
 From: Christian Gosch [mailto:christian.go...@inovex.de] 
 Sent: 08 October 2009 02:13 PM
 To: axis-user
 Subject: RE: Cannot load SchemaTypeSystem

 XMLbeans does not only generate classes, but lots of additional 
 binaries, which must be presesnt on the classpath.

 Look through your output folder, and you will find an additional folder 
 with this stuff.

 Add it to your runtime classpath, and you may be done :-)

 --cg

   
 -Original Message-
 From: sch...@afrigis.co.za [mailto:sch...@afrigis.co.za]
 Sent: Thursday, October 08, 2009 12:29 PM
 To: axis-user@ws.apache.org
 Subject: Cannot load SchemaTypeSystem

 Hi there,

 I finally got Axis2 to generate the appropriate stubs etc for me, 
 
 finally
   
 having to use the command line tool, and I chose XMLBeans as my data
 binding
 solution as I have worked with it before and found it real easy to 
 
 use.
   
 After having to hunt around for some jar files I can finally run a 
 
 servlet
   
 to test out the generated code.

 I start of the servlet with the following:
 GetPointsByRadiusDocumentImpl pointsByRadius = new
 GetPointsByRadiusDocumentImpl(GetPointsByRadiusDocument.type);

 However, when running the servlet I get the exception mentioned above 
 
 i.e.
   
 java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to 
 
 load
   
 class with name

 
 schemaorg_apache_xmlbeans.system.sEFB7B44E94FC7E3BBFB970E23CA0512F.TypeS
 ys
   
 te
 mHolder. Make sure the generated binary files are on the classpath.

 Any help will be much appreciated.

 Thanks!
 Schalk

 AfriGIS e-mail facility may not be used for the distribution of chain
 letters or offensive email. AfriGIS hereby distances itself from and
 accepts no liability for the unauthorized use of its e-mail facility 
 
 or
   
 the sending of e-mail communications for other than strictly business
 purposes. AfriGIS furthermore disclaims liability for any unauthorized
 instruction for which permission was not granted. Required as per Sec 
 
 50
   
 Companies Act 61 of 1973 Afrigis Pty LTD Reg No 1997/0067/1607.


 !DSPAM:4acdbf1b326661199011006!


 


 AfriGIS e-mail facility may not be used for the distribution of chain
 letters or offensive email. AfriGIS hereby distances itself from and
accepts
 no liability for the unauthorized use of its e-mail facility or the
sending
 of e-mail communications for other than strictly business purposes.
AfriGIS
 furthermore disclaims liability for any unauthorized instruction for which
 permission was not granted. Required as per Sec 50 Companies Act 61 of
1973
 Afrigis Pty LTD Reg No 1997/0067/1607.

 AfriGIS e-mail facility may not be used for the distribution of chain
letters or offensive email. AfriGIS hereby distances itself from and accepts
no liability for the unauthorized use of its e-mail facility or the sending
of e-mail communications for other than