DOM or SAX??

2001-12-10 Thread Colin Saxton

I have had a quick look at the open-source code and have found that it relys
mainly on the DOM for the SOAP request and SOAP response...

Is there any plans to write an all singing SAX version of the libraries?

DOM works fine for small SOAP messages but once you get above 50k you will
start to see it slowdown...(especially if one of your passes strings
contains XML?!).



This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. Any views or opinions are solely those of
the author and do not necessarily represent those of Exel
Computer Systems plc. If you have received this email in error
please notify Customer Services on 0115 946 0101.




Re: DOM or SAX??

2001-12-10 Thread Paramdeep Singh

Apache AXIS implementation is using SAX APIs.

It is also an open source implementation. You can have a look at it on:

http://xml.apache.org/axis/

With Warm Regards,
Paramdeep
- Original Message -
From: Colin Saxton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 10, 2001 3:07 PM
Subject: DOM or SAX??


 I have had a quick look at the open-source code and have found that it
relys
 mainly on the DOM for the SOAP request and SOAP response...

 Is there any plans to write an all singing SAX version of the libraries?

 DOM works fine for small SOAP messages but once you get above 50k you will
 start to see it slowdown...(especially if one of your passes strings
 contains XML?!).


 
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom
 they are addressed. Any views or opinions are solely those of
 the author and do not necessarily represent those of Exel
 Computer Systems plc. If you have received this email in error
 please notify Customer Services on 0115 946 0101.
 




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: Passing Complex objects

2001-12-10 Thread Andrew Fawcett
Title: RE: Passing Complex objects





A couple of months ago, I did have some success with .NET Beta 2 (client) and Apache SOAP (server). This was using .NET's WSDL.EXE tool and the Castor XML tool to exchange data contained in complex types defined via a WSDL file. At both ends the marshalling/serialisation was handled by the respective infrastructure, leaving the developer to simply implement the appropriate method signature or call it. The solution used 'literal' encoding within the SOAP envelope. If you search the archive you should find my posts (with examples), if not let me know I can send them again.

Andy Fawcett.


-Original Message-
From: Jared Peterson [mailto:[EMAIL PROTECTED]]
Sent: 08 December 2001 07:05
To: [EMAIL PROTECTED]
Subject: Passing Complex objects



I was wondering if people could share their experiences passing complex
types back via soap. I am not so much interested in passing an object
between an apache soap server and an apache soap client. I am more
interested in being able to expose a method that returns some complex
type and ensure that most soap implementations can use it. For example
if a TCL SOAP client called a getNewFoo() on an Apache Soap service
would it be able to handle the Foo object that gets returned? I am
curious about peoples experiences here. Thanks a lot


Jared





return type: array of Strings

2001-12-10 Thread Aczel Csilla

Hi All,

I would like to write a web service with a String parameter and with
String[] return value.
I don't know how should I write wsdl documents for the service, how can I
define array in it.

My wsdl-interface docoment is:

*
?xml version=1.0 encoding=UTF-8?
definitions name=Echo_Service
  targetNamespace=http://www.echoservice.com/Echo-interface;
  xmlns=http://schemas.xmlsoap.org/wsdl/;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns:tns=http://www.echoservice.com/Echo;
  xmlns:xsd=http://www.w3.org/1999/XMLSchema;

types
  xsd:schema
  targetNamespace=http://www.echoservice.com/Echo;
xmlns=http://www.w3.org/1999/XMLSchema/;
  /xsd:schema
  /types

message
  name=InechomessageRequest
  part name=meth1_inType1
type=xsd:string/
/message

message
  name=OutechomessageResponse
  part name=meth1_outType
type=java.lang.String/* I would like to use
String[] here!
/message


portType
  name=Echo_Service
  operation name=echomessage
input
message=InechomessageRequest/
output
message=OutechomessageResponse/
  /operation
/portType



binding
name=Echo_ServiceBinding type=Echo_Service
  soap:binding
  style=rpc
  transport=http://schemas.xmlsoap.org/soap/http/
  operation
name=echomessage
soap:operation
  soapAction=urn:echo-service/
input
  soap:body
  encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  namespace=urn:echo-service
  use=encoded/
/input
output
  soap:body
  encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  namespace=urn:echo-service use=encoded/
/output
  /operation
/binding

/definitions



Any help is appreciated, thanks,
Csilla





RE:Storing response from the soap server for further processing

2001-12-10 Thread Rino Srivastava

Please Help!!!

Can someone please give me an example of a Client and Server program where
the response returned back from the soap server is stored for further
processing.

~Rino



Re: return type: array of Strings

2001-12-10 Thread Paramdeep Singh

Hi Csilla,

Array is NOT a simple type, supported by SOAP.
You need to define a types tag for it.

I am attaching a WSDL file, which takes a string as an [out] parameter, and
has an array of strings as return value.

If you want this string parameter as an in parameter, then simply copy it to
the input message.
Hope that it helps.

Feel free to ask any further queries.

with warm regards,
Paramdeep.

NOTE: I have put it as pd.xml. simply change it to pd.wsdl


- Original Message -
From: Aczel Csilla [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 10, 2001 7:52 PM
Subject: return type: array of Strings


 Hi All,

 I would like to write a web service with a String parameter and with
 String[] return value.
 I don't know how should I write wsdl documents for the service, how can I
 define array in it.

 My wsdl-interface docoment is:

 *
 ?xml version=1.0 encoding=UTF-8?
 definitions name=Echo_Service
   targetNamespace=http://www.echoservice.com/Echo-interface;
   xmlns=http://schemas.xmlsoap.org/wsdl/;
   xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
   xmlns:tns=http://www.echoservice.com/Echo;
   xmlns:xsd=http://www.w3.org/1999/XMLSchema;

 types
   xsd:schema
   targetNamespace=http://www.echoservice.com/Echo;
 xmlns=http://www.w3.org/1999/XMLSchema/;
   /xsd:schema
   /types

 message
   name=InechomessageRequest
   part name=meth1_inType1
 type=xsd:string/
 /message

 message
   name=OutechomessageResponse
   part name=meth1_outType
 type=java.lang.String/* I would like to use
 String[] here!
 /message


 portType
   name=Echo_Service
   operation name=echomessage
 input
 message=InechomessageRequest/
 output
 message=OutechomessageResponse/
   /operation
 /portType



 binding
 name=Echo_ServiceBinding type=Echo_Service
   soap:binding
   style=rpc
   transport=http://schemas.xmlsoap.org/soap/http/
   operation
 name=echomessage
 soap:operation
   soapAction=urn:echo-service/
 input
   soap:body
   encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   namespace=urn:echo-service
   use=encoded/
 /input
 output
   soap:body
   encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   namespace=urn:echo-service use=encoded/
 /output
   /operation
 /binding

 /definitions

 

 Any help is appreciated, thanks,
 Csilla




definitions name =  'myService' xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' 
xmlns:xsd='http://www.w3.org/2001/XMLSchema' 
targetNamespace='http://tempuri.org/wsdl/'
xmlns:typens='http://tempuri.org/type'
types schema targetNamespace='http://tempuri.org/type' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' elementFormDefault='qualified'/schema /typesmessage name= 'Inmeth1Request'/message
message name= 'Outmeth1Response'part name='meth1_RetValue' type='typens:ArrayOfstring'/part name='param2' type='xsd:string'//message
portType name='myService'
operation name='meth1' parameterOrder='param2 '
documentationThis is the first method. It has an array as return value, and a string as out param/documentationinput message='Inmeth1Request'/
output message='Outmeth1Response'/
/operation
/portType
binding name='myServiceBinding' type='myService'
soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/
operation name='meth1'
soap:operation soapAction='myService'/
input
soap:body use='encoded' namespace='myService '
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' /
/input
output
soap:body use='encoded' namespace='myService '
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' /
/output
/operation
/bindingservice name='myService'
documentationThis is a unit test prog.!!/documentationport name='myServicePort' binding='myServiceBinding'
soap:address location='http://localhost/server.asp'/
/port
/service
/definitions


Re: return type: array of Strings

2001-12-10 Thread Aczel Csilla

Hi Paramdeep,

Thank you for your immediate response!
I will study your wsdl file and I let you know about my result.

Thanks and best regards:
Csilla




RE:Storing response returned by the soap server

2001-12-10 Thread Rino Srivastava

Thanks, Senthil, I'm able to store the value of the response object.

Rino



Multiple concurrent requests are queuing

2001-12-10 Thread Dave Smith

I'm fairly new to the SOAP environment, Hence there may be an obvious 
fix to my problem, but the FAQ's and archives don't appear to address 
this situation.
The problem I'm having may just be a misunderstanding of how SOAP or 
more specifically the rpcrouter handles multiple concurrent requests.
The issue seems to be the queuing of SOAP requests.  I have a SOAP 
client request which takes the SOAP service about 25 seconds to process 
and return a response(it returns a big DB result set).  A second 
short/quick client request to the Server (for example the addressbook 
example) will not return before the first request is complete. It 
appears to get caught behind the first request.  Is this simply a 
configuration issue.  If not are there any suggestions for a workaround?

Thanks,
Dave




Re: Multiple concurrent requests are queuing

2001-12-10 Thread Dave Smith

Hi Jared,
Sorry, I should have mentioned that I've tried deploying the service as 
Session, Application and even Request.  Each scope type exhibits the 
same behaviour.

Thanks,
Dave

Jared Peterson wrote:

How have you set up the scope for your service?  Are you using
application scope or session scope?

Jared

-Original Message-
From: Dave Smith [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 10, 2001 1:08 PM
To: [EMAIL PROTECTED]
Subject: Multiple concurrent requests are queuing

I'm fairly new to the SOAP environment, Hence there may be an obvious 
fix to my problem, but the FAQ's and archives don't appear to address 
this situation.
The problem I'm having may just be a misunderstanding of how SOAP or 
more specifically the rpcrouter handles multiple concurrent requests.
The issue seems to be the queuing of SOAP requests.  I have a SOAP 
client request which takes the SOAP service about 25 seconds to process 
and return a response(it returns a big DB result set).  A second 
short/quick client request to the Server (for example the addressbook 
example) will not return before the first request is complete. It 
appears to get caught behind the first request.  Is this simply a 
configuration issue.  If not are there any suggestions for a workaround?

Thanks,
Dave









RE:exception while handling service request: hello.Helloserver.testCon([none]) not found

2001-12-10 Thread Rino Srivastava

Hello everyone:

I am trying to run a Client Program but, I get the following error message:

Exception while handling service request: hello.HelloServer.testCon([none])
not found.

In the above statement, testCon() is a method on the server that returns a
String.  I have deployed the service and the method exists in the deployment
descriptor.

Can somone suggest what I may be doing wrong or missing.

Thanks.
Rino





RE: Help! - addressbook example generated fault when putListings/getAllListings

2001-12-10 Thread Rino Srivastava

Lee:

Do check your classpath and make sure that DOMUtils and XMLParserUtils
classes are in your classpath.

Cheers!
Rino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 3:45 PM
To: [EMAIL PROTECTED]
Subject: Help! - addressbook example generated fault when
putListings/getAllListings


Hi,

The following happened when I ran the address book sample, seems the
AddressBook class cannot find the DOMUtils and XMLParserUtils classes.

Does anybody have a clue?



This test assumes a server URL of
http://localhost:8080/apache-soap/servlet/rpcrouter
Deploying the addressbook service...
..
Adding an XML file of listings
Generated fault:
  Fault Code   = SOAP-ENV:Server
  Fault String = Exception from service
object:org/apache/soap/util/xml/DOMUtils

Get everyone!
Generated fault:
  Fault Code   = SOAP-ENV:Server
  Fault String = Exception from service
object:org/apache/soap/util/xml/XMLParserUtils


Thanks in advance.
Lee Guan



Dynamic Service

2001-12-10 Thread Jared Peterson

I have another interesting question for the list today.  In my
experience with Apache SOAP up to this point I have been exposing a Java
class as a SOAP service.  So every time that I want to deploy a new
service I have to go the administration page and deploy the service.  My
question is what if I have a service that essentially needs to return a
uri for an object that it has created.  I do not want to return an
object to client because I want to keep the object on the server side.
This is more dynamic than going to the administration page an deploying
a new service.  Has anyone done this?

Thanks,
Jared




RE: Help! - addressbook example generated fault when putListings/getAllListings

2001-12-10 Thread Lee . Guan


Rino,

Thanks for the quick response.

Both DOMUtils and XMLParserUtils are in soap.jar. I wonder if it is
necessary to put soap.jar
in classpath in tomcat statup script.  I tried to add it to the classpath
and restarted tomcat,
but I can't even deploy the service after that, following is the error I
got,

This test assumes a server URL of
http://localhost:8080/apache-soap/servlet/rpcr
outer
Deploying the addressbook service...
Exception in thread main [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsu
pported response content type text/html, must be: text/xml. Response
was:
htmlheadtitleApache Tomcat/4.0.1 - Error report/titleSTYLE!
--H1{font-
family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY
{font-family : sans-serif,Arial,Tahoma;color : black;background-color :
white;}
B{color : white;background-color : #0086b2;} HR{color : #0086b2;}
--/STYLE /
headbodyh1Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server
Error/h1
HR size=1 noshadepbtype/b Exception report/ppbmessage/b
uIn
ternal Server Error/u/ppbdescription/b uThe server encountered
an in
ternal error (Internal Server Error) that prevented it from fulfilling this
requ
est./u/ppbexception/b prejavax.servlet.ServletException: Error
alloc
ating a servlet instance
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
a:619)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1106)
at java.lang.Thread.run(Thread.java:484)
/pre/ppbroot cause/b prejava.lang.NoClassDefFoundError:
javax/servle
t/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:989)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:989)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa

RE: Help! - addressbook example generated fault when putListings/ getAllListings

2001-12-10 Thread Hashimoto, Mike

Lee,

If you're using Tomcat 4 (Catalina), and it looks that way below, then my
experience is the following:

1.  Modify TWO places in the 'bin/catalina.bat' (assuming Win else,
catalina.sh).  The first is near the top where CLASSPATH is defined.  Mine
looks like:

rem - Save Environment Variables That May Change
--

set _CATALINA_BASE=%CATALINA_BASE%
set _CATALINA_HOME=%CATALINA_HOME%
set _CLASSPATH=%CLASSPATH%
set
CLASSPATH=c:\Tools\xerces-1_4_3\xerces.jar;c:\Tools\soap-2_2\lib\soap.jar;c:
\Tools\soap-2_2;c:\Tools\javamail-1.2\mail.jar;c:\Tools\jaf-1.0.1\activation
.jar;c:\Tools\oracle\classes12.zip;c:\Projects\RootDirectoryForMyClasses\;%C
LASSPATH%;%cp%
set _CP=%CP%

Around ~line 75 there is another section that has to change:

rem - Set Up The Runtime Classpath


set CP=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
if %JSSE_HOME% ==  goto noJsse
set
CP=%CP%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\j
sse.jar
:noJsse
rem set CLASSPATH=%CP%
set CLASSPATH=%WSTK_CP%;%CP%;%CLASSPATH%

So you can see from above this puts your server's application in the
CLASSPATH, as well as the Soap samples.

SECONDLY, Catalina's class loader operates different that Tomcat 3, so you
need to put soap.jar in the WEB-INF of the application's directory under a
'lib' sub-dir.  For rpcrouter put soap.jar in:

/Tools/jakarta-tomcat-4.0.1/webapps/soap/WEB-INF/lib/soap.jar

and you're good to go.

If there is a more generic place for this, please advise.  I'd like to know
if so.  But this worked for me.

Btw, this is after I had things working on Tomcat 3.2.3.  If there's
anything I left out due to that configuration, I will advise.  But if you're
'upgrading' your changes could follow the above.

Good luck,

  mh


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 2:50 PM
To: [EMAIL PROTECTED]
Subject: RE: Help! - addressbook example generated fault when
putListings/ getAllListings



Rino,

Thanks for the quick response.

Both DOMUtils and XMLParserUtils are in soap.jar. I wonder if it is
necessary to put soap.jar
in classpath in tomcat statup script.  I tried to add it to the classpath
and restarted tomcat,
but I can't even deploy the service after that, following is the error I
got,

This test assumes a server URL of
http://localhost:8080/apache-soap/servlet/rpcr
outer
Deploying the addressbook service...
Exception in thread main [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsu
pported response content type text/html, must be: text/xml. Response
was:
htmlheadtitleApache Tomcat/4.0.1 - Error report/titleSTYLE!
--H1{font-
family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY
{font-family : sans-serif,Arial,Tahoma;color : black;background-color :
white;}
B{color : white;background-color : #0086b2;} HR{color : #0086b2;}
--/STYLE /
headbodyh1Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server
Error/h1
HR size=1 noshadepbtype/b Exception report/ppbmessage/b
uIn
ternal Server Error/u/ppbdescription/b uThe server encountered
an in
ternal error (Internal Server Error) that prevented it from fulfilling this
requ
est./u/ppbexception/b prejavax.servlet.ServletException: Error
alloc
ating a servlet instance
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
a:619)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at

RE: Passing Complex objects

2001-12-10 Thread Chopra, Jitender
Title: RE: Passing Complex objects



Could 
you send thoseposts (with 
examples) again 
.

Thanks

  
  
  -Original 
  Message-From: Andrew Fawcett 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 10, 2001 
  5:11 AMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Passing Complex objects
  A couple of months ago, I did have some success with .NET Beta 
  2 (client) and Apache SOAP (server). This was using .NET's WSDL.EXE tool and 
  the Castor XML tool to exchange data contained in complex types defined via a 
  WSDL file. At both ends the marshalling/serialisation was handled by the 
  respective infrastructure, leaving the developer to simply implement the 
  appropriate method signature or call it. The solution used 'literal' encoding 
  within the SOAP envelope. If you search the archive you should find my posts 
  (with examples), if not let me know I can send them again.
  Andy Fawcett. 
  -Original Message- From: Jared 
  Peterson [mailto:[EMAIL PROTECTED]] 
  Sent: 08 December 2001 07:05 To: 
  [EMAIL PROTECTED] Subject: Passing Complex 
  objects 
  I was wondering if people could share their experiences 
  passing complex types back via soap. I am not so 
  much interested in passing an object between an apache 
  soap server and an apache soap client. I am more interested in being able to expose a method that returns some 
  complex type and ensure that most soap implementations 
  can use it. For example if a TCL SOAP client 
  called a getNewFoo() on an Apache Soap service would 
  it be able to handle the Foo object that gets returned? I am 
  curious about peoples experiences here. Thanks a 
  lot 
  Jared 


Help needed in trouble shooting the error Exception in thread main java.lang.AbstractMethodError at org.apache.soap.util.xml.QName.init(QName.java:80)

2001-12-10 Thread Muralikrishnan_s

Hi,
  I'm using Bea Weblogic 6.0 server. I followed the instructions
of installation for the soap.I did the following
Copy the /path-to-apache-soap/webapps/soap to your applications
directory For example: To install into the mydomain plug the directory
into: 
c:/bea/wlserver6.0/config/mydomain/application/soap 
Put the soap.jar into the web app's classpath
1. Make a directory
c:/bea/wlserver6.0/mydomain/application/soap/WEB-INF/lib 
2. Copy soap.jar to that lib directory 
Access the soap web app
You should be able to deploy services by pointing a browser to
http://hostname:port/soap
where hostname is the host on which WebLogic is running and port
is the port. See the User's Guide for details on the administration
tool. The SOAP end-point for invoking services on this server is:
http://hostname:port/soap/servlet/rpcrouter

I was able to get the message
SOAP (RPC|Message) Router
Sorry, I don't speak via HTTP GET- you have to use HTTP POST to
talk to me.
Problem:
When I tried to run the java program
java org.apache.soap.server.ServiceManagerClient rpc-router-url
list 
I'm getting the error
C:\bea\wlserver6.0sp1\config\mydomainjava
org.apache.soap.server.ServiceManage
Client http://localhost:7001/soap/servlet/rpcrouter list
Exception in thread main java.lang.AbstractMethodError
at org.apache.soap.util.xml.QName.init(QName.java:80)
at
org.apache.soap.util.xml.QName.matches(QName.java:146)
at
org.apache.soap.Envelope.unmarshall(Envelope.java:237)
at org.apache.soap.rpc.Call.invoke(Call.java:230)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceMana
erClient.java:129)
at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClien
.java:151)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClien
.java:237)
I'm having parser.jar and jaxp.jar in my classpath along with
soap.jar,mail.jar etc.
Environment Classpath Setting(for running the java program java
org.apache.soap.server.ServiceManager)
set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HO
ME%\lib\weblogic.jar;%WL_HOME%\lib\soap.jar;%WL_HOME%\lib\mail.jar;%WL_H
OME%\lib\activation.jar;%WL_HOME%\lib\parser.jar;%WL_HOME%\lib\jaxp.jar;
%WL_HOME%\samples\eval\cloudscape\lib\cloudscape.jar;%CLIENT_CLASSES%;%S
ERVER_CLASSES%;%EX_WEBAPP_CLASSES%;C:\bea
Server Classpath Setting:
set
CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;\lib\soap.jar;.\lib
\activation.jar;.\lib\mail.jar;.\lib\parser.jar; .\lib\jaxp.jar
I have checked for having more than one xml parser library (jar)
in my classpath as suggested in the answer to the FAQ. I'm having only
one copy of the jar files.
I don't have xml.jar or xerces.jar. I would be glad if you could
provide me the hint to trouble shoot the above error/problem mentioned.

Regards,
Muralikrishnan.S




JAXM, JBoss - Tomcat

2001-12-10 Thread Le Ngoc Lam

I always get errors when I used JAXM with JBoss-Tomcat. May be, JBoss-Tomcat
doesn't allow use Http POST method from EJB?
Anyone suggest,
Thank in advance.
Lam