Re: Unable to deploy to SOAP 2.2

2001-07-16 Thread Rares Portan

I've got the same problem!
java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter

IS OK, but with

java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter  list

I got:

Ouch, the call failed:
  Fault Code   = SOAP-ENV:Server.Exception:
  Fault String = java.lang.NoSuchMethodError

Sri Sankaran wrote:

> Can you please point out the error in the following?
>
> I am trying to deploy a test application to Apache SOAP 2.2 installed under Tomcat 
>3.2.2.
>
> Following is the deployment descriptor
>
> http://xml.apache.org/xml-soap/deployment"; id="urn:Hello">
>
>   
>
> 
>
> I'm using the command line option to deploy using the following command:
>
> java org.apache.soap.server.ServiceManagerClient 
>http://localhost:8080/soap/servlet/rpcrouter deploy dd.xml
>
> where dd.xml is the file containing the above deployment descriptor.
>
> The response I get is:
>
> Ouch, the call failed:
>   Fault Code   = SOAP-ENV:Server.Exception:
>   Fault String = java.lang.NoSuchMethodError
>
> Yes, I have all the necessary packages in my classpath.
>
> Sri

--
--
rares portan
software.developer

caatoosee srl
str. cluj nr.13
romania, 1900 timisoara

Ph  +40 (0) 56.295 215
Fx  +40 (0) 56.295 216

mailto:[EMAIL PROTECTED]
http://www.caatoosee.com
--
>get what you want





Re: Unable to deploy to SOAP 2.2

2001-07-16 Thread Brajendra . Singh


You check with HelloServer class file. bcos it is not able to get class
file to be deployed as web-service.

Brajendra Singh




Re: SOAP Install

2001-07-16 Thread Brajendra . Singh


You can use command line utilities like -

To Deploy -

java  org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter  deploy
deploymentdescriptor.xml

To Un-deploy -

java  org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter  undeploy Web-ServiceID

To Query about Web-Service DeploymentDescriptor -

java  org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter  query Web-ServiceID

To list web-sercvices-

java  org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter  list


Brajendra Singh




simple-soap attachment question

2001-07-16 Thread SBC

Hi,

I am trying send a SOAP attachment as a MimeBodyPart.
On the soap(v2.2) server, I want to know the filename
& file format of the attachment. In the soap client I
did
MimeBodyPart bp = new MimeBodyPart();
bp.setDataHandler(dh);
bp.setFileName("test1");

On server
  name = dh.getName();
where dh is the datahandler. But it returns null.

Any idea how do I get the file name & file format.

Thanks
SAM

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Frequent encountered deployment problem

2001-07-16 Thread Liaw, Wan-Bih
Title: 



As that's in the followings. Can someone 
tell me how that can be fixed? 
TIA.C:\soap-2_2>samples\messaging\testitThis test assumes 
server URLs of http://localhost:80/soap/servlet/rpcrouterand 
http://localhost:80/soap/servlet/messagerouterDeploying 
the messaging service...Exception in thread "main" 
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response 
content type "text/html; charset=iso-8859-1", must be: "text/xml". Response 
was:]    at 
java.lang.Throwable.(Throwable.java:96)    
at 
java.lang.Exception.(Exception.java:44)    
at 
org.apache.soap.SOAPException.(SOAPException.java:71)    
at 
org.apache.soap.rpc.Call.getEnvelopeString(Call.java:175)    
at 
org.apache.soap.rpc.Call.invoke(Call.java:212)    
at 
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:129)    
at 
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:142)    
at 
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:230).Verify 
that it's there 


Re: help! running the COM sample please.

2001-07-16 Thread Rick Rineholt

Did you remember to run the rundemo deploy, in the server directory?
Before starting the webserver did you add to your path environment variable
the directory where COMProvider.dll is? (usually in the lib directory)

>Hello
>I have followed the instructions for installing the SOAP com sample, but
it
>does not seem to be working and is v.hard to debug. The response I get is:
>C:\soap-2_2\samples\com\client>java samples.com.client.Addit 3 4
>Ouch, the call failed:
>Fault Code   = SOAP-ENV:Server.Exception:
>Fault String = initlog
>I have the other address book samples working, but not this one.
>Any help appreciated.
>Cheers
>Neil


Rick Rineholt
"The truth is out there...  All you need is a better search engine!"

[EMAIL PROTECTED]




Problem instantiating bean

2001-07-16 Thread VIJAY BALASUBRAMANIAN

Question.

My test client is pretty similar to the addressbook2 example. But I get
an error.
 
Any help will be appreciated. 

addressbook2 sample works for me. I'm using Apache 2.2 version.

Thanks,
Vijay 

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=Problem instantiating bean: com.sun.PortalSyncServer.Conflict;
targetException=java.lang.IllegalArgumentException: Problem
instantiating bean: com.sun.PortalSyncServer.Conflict]
 at org.apache.soap.rpc.Call.invoke(Call.java:246)

atcom.sun.PortalSyncServer.SyncPersistenceProxy.getConflictChangesList(
SyncPersistenceProxy.java:112)
 at com.sun.PortalSyncServer.Main.doit(Main.java:18)
 at com.sun.PortalSyncServer.Main.main(Main.java:42)



Re: SOAP for non Java Client

2001-07-16 Thread greyson . smith


Someone sent me a sample of Soap -> VB if you'd like a copy of it, I'd be
happy to forward it on.



   
  
sramasu@sears  
  
.com To: [EMAIL PROTECTED]  
  
 cc:   
  
16-07-01 Subject: SOAP for non Java Client 
  
01:07 PM   
  
Please 
  
respond to 
  
soap-user  
  
   
  
   
  





Hi,

How to make use of Apache SOAP, if my client is a non Java client. All the
SOAP samples contain a Java client which makes use SOAP "Call" obejct to
communicate to the SOAP server(RPCRouterServlet).

What if, I don't have access to any SOAP API at my client side, since it is
a non Java client. How do I communicate to SOAP server without using "Call"
object.

Thanks.
Sekar.




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.





RE: Unable to deploy to SOAP 2.2

2001-07-16 Thread Juan Gargiulo

Hi there,

I'm having the same problem under Weblogic 5.1 with the weblogic_ejb
example. I'm getting that same error message when I try to deploy the sample
app, but it is also showing the same error message if I do a simple "list"
like this:

java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter list


Does anybody knows what this means or how to get more debugging
information??

Thanks,

juan

> -Original Message-
> From: Daryl Beattie [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 1:21 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Unable to deploy to SOAP 2.2
>
>
> This may be a silly question, but do you have a method named foo() in
> your hello.HelloServer class? If not, the method would "not be found".
>
> > -Original Message-
> > From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 16, 2001 4:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: Unable to deploy to SOAP 2.2
> >
> >
> > Can you please point out the error in the following?
> >
> > I am trying to deploy a test application to Apache SOAP 2.2
> > installed under Tomcat 3.2.2.
> >
> > Following is the deployment descriptor
> >
> >  > xmlns:isd="http://xml.apache.org/xml-soap/deployment"; id="urn:Hello">
> >
> >   
> >
> > 
> >
> > I'm using the command line option to deploy using the
> > following command:
> >
> > java org.apache.soap.server.ServiceManagerClient
> http://localhost:8080/soap/servlet/rpcrouter deploy dd.xml
>
> where dd.xml is the file containing the above deployment descriptor.
>
> The response I get is:
>
> Ouch, the call failed:
>   Fault Code   = SOAP-ENV:Server.Exception:
>   Fault String = java.lang.NoSuchMethodError
>
>
> Yes, I have all the necessary packages in my classpath.
>
> Sri
>




getting samples to work over ssl

2001-07-16 Thread Rich Catlett

Is there anybody out there running soap over ssl.  I am using tomcat 4,
and when I goto https://localhost:445/soap/servlet/rpcrouter I go through
accepting the certificate and then I get the appropriate message, I can
also get to the admin client.  When I try to deploy the addressbook sample
with 
java -cp ../../soap-2_2/lib/soap.jar:$CLASSPATH
org.apache.soap.server.ServiceManagerClient
https://localhost:445/soap/servlet/rpcrouter deploy
DeploymentDescriptor.xml

I get a java.net.MalformedURLException: unknown protocol https

I don't know if this is java question or a soap question, but I thought
maybe someone might have experience with this.

-
Rich Catlett[EMAIL PROTECTED] |  Confuscious say "Man who stand |
Programmer|   on toilet, high on pot!"  |
  | |
-




RE: When to use SOAP?

2001-07-16 Thread Liaw, Wan-Bih

Thanks!  Now that worked. I thought that I had followed
soap-2_2\docs\install\websphere.html exactly but I missed the line of words
about editing WebSphere\AppServer\bin\admin.config.

-Original Message-
From: Tom Myers [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:30 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: When to use SOAP?


At 12:09 PM 7/16/2001 -0600, Liaw, Wan-Bih wrote:

>SOAP works fine, but something it calls on isn't there.
>(a) what's your server setup? Tomcat, WebLogic, Jrun, &c&c&c?
>
>
>WebSphere 3.5 AE with Fixpack 3.5.3
>IBM HTTP Server 3.12.1


aha, WebSphere. In the docs, you'll find

   soap-2_2\docs\install\websphere.html which says, among other things

>IMPORTANT: WebSphere comes with an XML parser
(WebSphere\AppServer\lib\xml4j.jar) which uses DOM level 1 interfaces. Even
if you put the Xerces 1.1.2's (or later) xerces.jar in your classpath, the
wrong interfaces are found by any Java code running in WebSphere because
WebSphere puts the user's classpath at the end. So, you must edit
WebSphere\AppServer\bin\admin.config file and put xerces.jar at the
BEGINNING of the com.ibm.ejs.sm.adminserver.classpath= variable 

It says other things which you've presumably got to read, but I
think the problem here is that you are running a DOM 1 parser
underneath SOAP. Hope this helps...

Tom Myers


>(b) what happens when you look at
http://localhost:80/soap/rpcrouter ?
>(for me, that's
http://localhost:8080/soap/ser
vlet/rpcrouter and it says
>"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to
me."
>which is the right thing for it to say)
>
>This works -- I got the same result.
>
>
>   (c) what's your client classpath? It looks like things are blowing up as
you run
> >java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/ser
vlet/rpcrouter deploy DeploymentDescriptor.xml
>(that's the line within testit that seems to be blowing up for you)
>so that's using your default system classpath, and of course it also
>uses your JAVA_HOME /jre/lib/ext
>
>Classpath for both client and server:
D:\WebSphere\AppServer\lib\xerces.jar;D:\WebSphere\AppServer\jdk\jre\lib\rt.
jar;D:\WebSphere\AppServer\lib\ejs.jar;D:\WebSphere\AppServer\lib\ujc.jar;D:
\WebSphere\AppServer\lib\servlet.jar;C:\soap-2_2\lib\soap.jar;C:\RhinoTools\
jstools.jar;C:\j2sdkee1.3\lib\j2ee.jar;.
>  
>JAVA_HOME:
>D:\WebSphere\AppServer
>
>
>   (d) what's your server classpath?
>
>Please see (c)
>
>
>   (e) what jars are in your JAVA_HOME /jre/lib/ext and especially which of
>them contain the uncompressed string
>org/xml/sax/helpers/AttributesImpl
>(use grep, or ^F for windows)
>
>It has to be D:\WebSphere\AppServer\jdk\jre\lib, in Websphere.
>
>D:\WebSphere\AppServer\jdk\jre\lib>dir/w *.jar
>  Volume in drive D has no label.
>  Volume Serial Number is 6CE0-69FD
>
>  Directory of D:\WebSphere\AppServer\jdk\jre\lib
>
>i18n.jar   jaws.jar   rt.jar
>3 File(s) 15,174,893 bytes
>   1,085,247,488 bytes free
>
>
>-Original Message-
>From: Tom Myers
[mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 16, 2001 11:01 AM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: RE: When to use SOAP?
>
>
>At 09:56 AM 7/16/2001 -0600, Liaw, Wan-Bih wrote:
>
> >I have made sure I following eth instructions in
<http://xml.apache.org/
soap/faq/faq_chawke.html#Q1_4>http://xml.apache.org/soap/faq/faq_chawke.html
#Q1_4 and still got the following error when I run it:
> >
> >C:\soap-2_2\samples\addressbook>testit
> >This test assumes a server URL of
<http://localhost:80/soap/rpcrouter>http
://localhost:80/soap/rpcrouter
> >Deploying the addressbook service...
> >Ouch, the call failed:
> >   Fault Code   = SOAP-ENV:Server.Exception:
> >   Fault String = org.xml.sax.helpers.AttributesImpl: method
getQName(I)Ljava/lan
> >g/String; not found
> >.
> >
> >Does Apache Soap really work???
>
>SOAP works fine, but something it calls on isn't there.
>(a) what's your server setup? Tomcat, WebLogic, Jrun, &c&c&c?
>(b) what happens when you look at
http://localhost:80/soap/rpcrouter ?
>(for me, that's
http://localhost:8080/soap/ser
vlet/rpcrouter and it says
>"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to
me."
>which is the right thing for it to say)
>   (c) what's your client classpath? It looks like things are blowing up as
you run
> >java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/ser
vlet/rpcrouter deploy DeploymentDescriptor.xml
>(that's the line within testit that seems to be blowing up for you)
>so that'

RE: Unable to deploy to SOAP 2.2

2001-07-16 Thread Daryl Beattie

This may be a silly question, but do you have a method named foo() in
your hello.HelloServer class? If not, the method would "not be found".

> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 4:09 PM
> To: [EMAIL PROTECTED]
> Subject: Unable to deploy to SOAP 2.2
> 
> 
> Can you please point out the error in the following?
> 
> I am trying to deploy a test application to Apache SOAP 2.2 
> installed under Tomcat 3.2.2.
> 
> Following is the deployment descriptor
> 
>  xmlns:isd="http://xml.apache.org/xml-soap/deployment"; id="urn:Hello">
>
>   
>
> 
> 
> I'm using the command line option to deploy using the 
> following command:
> 
> java org.apache.soap.server.ServiceManagerClient 
http://localhost:8080/soap/servlet/rpcrouter deploy dd.xml

where dd.xml is the file containing the above deployment descriptor.

The response I get is:

Ouch, the call failed:
  Fault Code   = SOAP-ENV:Server.Exception:
  Fault String = java.lang.NoSuchMethodError


Yes, I have all the necessary packages in my classpath.

Sri



help! running the COM sample please.

2001-07-16 Thread Blue, Neil

Hello

I have followed the instructions for installing the SOAP com sample, but it
does not seem to be working and is v.hard to debug. The response I get is:

C:\soap-2_2\samples\com\client>java samples.com.client.Addit 3 4
Ouch, the call failed:
  Fault Code   = SOAP-ENV:Server.Exception:
  Fault String = initlog

I have the other address book samples working, but not this one.

Any help appreciated.

Cheers
Neil



Unable to deploy to SOAP 2.2

2001-07-16 Thread Sri Sankaran

Can you please point out the error in the following?

I am trying to deploy a test application to Apache SOAP 2.2 installed under Tomcat 
3.2.2.

Following is the deployment descriptor

http://xml.apache.org/xml-soap/deployment"; id="urn:Hello">
   
  
   


I'm using the command line option to deploy using the following command:

java org.apache.soap.server.ServiceManagerClient 
http://localhost:8080/soap/servlet/rpcrouter deploy dd.xml

where dd.xml is the file containing the above deployment descriptor.

The response I get is:

Ouch, the call failed:
  Fault Code   = SOAP-ENV:Server.Exception:
  Fault String = java.lang.NoSuchMethodError


Yes, I have all the necessary packages in my classpath.

Sri



Re: How to block the Admin client ?

2001-07-16 Thread Rich Catlett

If you are running tomcat with the security manager, you can add an entry
for the soap webapp in the .policy file located in the conf directory, and
then from there you can control access from there.  You can control which
ip addresses the webapp will accept connections from.

-
Rich Catlett[EMAIL PROTECTED] |  Confuscious say "Man who stand |
Programmer|   on toilet, high on pot!"  |
  | |
-

On Mon, 16 Jul 2001, Tapan Nanawati wrote:

> How can i block my admin client or add a passowrd to
> it?
> http://servername:8080/soap/admin
> 
> As of now any body on the internet can go and
> *undeploy* my service. How can I make it read only
> atleast or best to block it with a password.
> cheers
> Tapan
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 




Error deserilasing stateful EJB Handle in deserialize method of statefulEJB provider

2001-07-16 Thread Ramani Krishnan

Hi folks,
When I try to access a stateful bean a second time under Orion, I
get 

com.evermind.server.rmi.OrionRemoteException: Error looking up EJBHome at
location 'StatefulAuthorManager'; nested exception is: 
javax.naming.NamingException: Disconnected: Protocol error: invalid
domain for this connection: soaptest
 
- where 'soaptest' is the name of the SOAP servlet application
 
It happens at deserialise method in statefulEJBprovider at the line
return ejbHandle.getEJBObject();
  
( I use Apache Soap 2.2 and Orion 1.3.8)
Anybody had similar problems during deserialisation or has anybody
successfully tested stateful EJB under Orion/SOAP? 

Thanx for your help
Ramani



Re: SOAP for non Java Client

2001-07-16 Thread Tom Myers

At 02:07 PM 7/16/2001 -0500, [EMAIL PROTECTED] wrote:
>How to make use of Apache SOAP, if my client is a non Java client. 

Maybe you can use something like the approach at
   http://www.architag.com/events/GetFile.html?show=getWeather.htm

One way or another, you have to piece together an HTTP POST with
some XML text underneath. There are lots of samples around; you
say "non Java", but that just rules out one of many.

Tom Myers




SOAP for non Java Client

2001-07-16 Thread sramasu


Hi,

How to make use of Apache SOAP, if my client is a non Java client. All the
SOAP samples contain a Java client which makes use SOAP "Call" obejct to
communicate to the SOAP server(RPCRouterServlet).

What if, I don't have access to any SOAP API at my client side, since it is
a non Java client. How do I communicate to SOAP server without using "Call"
object.

Thanks.
Sekar.




RE: How to block the Admin client ?

2001-07-16 Thread Uzay Takaoglu

Check this URL: http://soap.manilasites.com/stories/storyReader$13

> > > > 
Uzay Takaoglu
Sr. Software Engineer 

Simplexis 
> > eCommerce for the Business of Education 
www.simplexis.com 
640 2nd Street 
San Francisco, CA 94107 
Direct:415.354.2061 
Cell:415.845.7831 
Fax:415.354.2099 



-Original Message-
From: Tapan Nanawati [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:53 AM
To: [EMAIL PROTECTED]
Subject: How to block the Admin client ?


How can i block my admin client or add a passowrd to
it?
http://servername:8080/soap/admin

As of now any body on the internet can go and
*undeploy* my service. How can I make it read only
atleast or best to block it with a password.
cheers
Tapan

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: How to block the Admin client ?

2001-07-16 Thread Wilkins, Craig

I was just thinking about this.  

Some firewalls will filter out by URL.  I am thinking about just disabling
this URL from everyone including the SOAP admin because once your service is
deployed, you never need to modify it and it doesn't run as a process.

But what about the ServiceManagerClient.  All you need to do is be able to
hit the rpcrouter to deploy and undeploy the SOAP services.  I don't think
that a firewall could block this out because you need to provide access to
your rpcrouter in order to provide SOAP services.  

I have also come to the conclusion that deploying services just writes to a
file somewhere because if you copy your SOAP directory from one server to
another, the services are already deployed on that second server.  If this
is true, you may be able to use some OS level security on those files to
prevent people from undeploying your services.






-Original Message-
From: Tapan Nanawati [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 2:53 PM
To: [EMAIL PROTECTED]
Subject: How to block the Admin client ?


How can i block my admin client or add a passowrd to
it?
http://servername:8080/soap/admin

As of now any body on the internet can go and
*undeploy* my service. How can I make it read only
atleast or best to block it with a password.
cheers
Tapan

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: SOAP-ENV:Server.BadTargetObjectURI Error

2001-07-16 Thread Daryl Beattie

Dear Tom,

Hi, thanks for your reply. It turned out that you were kinda right.
I already had the code in the jar, but my deployment descriptor was wrong.
It said ce.ready2ware.authentication instead of
com.screamingmedia.ce.ready2ware.authentication -- darn those typos!
Once that was fixed, however, it did not allieviate the problem.
There was still a classpath issue; I added the jar of the service to the
JBoss/Tomcat classpath directly, as you kinda hinted at, and that did the
trick.
Thanks for your help!

Sincerely,

Daryl.

> -Original Message-
> From: Tom Myers [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 6:47 PM
> To: [EMAIL PROTECTED]
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: SOAP-ENV:Server.BadTargetObjectURI Error
> 
> 
> At 04:47 PM 7/13/2001 -0400, Daryl Beattie wrote:
> 
> > I seem to be having a little problem with SOAP. I 
> checked the
> >archives for any mention of this problem, and whenever it 
> came up it seemed
> >to disappear by people fiddling with their classpaths. But 
> still, I have
> >been fiddling with my classpath for over a day, and still no 
> luck. :(  I
> >would really like to know what the root of my problem is, so 
> that I might
> >better provide a solution for it.
> 
> ...
> >Generated fault:
> >   Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
> >   Fault String = Unable to resolve target object:
> >ce.ready2ware.authentication.AuthenticationService
> >done
> >
> > I have a feeling this is a server-side problem, 
> since I can run the
> >client on another machine accessing my machine, and it 
> shoots back the same
> >error from there. Does anybody have any idea why this would 
> happen? Thanks
> >for you help. :)
> 
> I'd agree it's server-side, in fact that message should only 
> be able to 
> come from ServerHTTPUtils.java, and it's almost certainly 
> happening in the
> ClassNotFoundException raised by ctxt.loadClass() where ctxt 
> is a SOAPContext 
> object, so you look at SOAPContext.java for loadClass() or 
> you just figure
> that you've got a classpath problem :-). One item puzzles me; 
> you're deploying
> in a jvm whose classpath you show, and your client is running 
> in a jvm whose
> classpath you show, but you didn't actually show the server 
> classpath. I
> would at this point try 
> (a) make sure the 
>ce.ready2ware.authentication.AuthenticationService 
> class is in a jar (I presume that's your Authentication.jar?) 
> and actually
> check for 
>ce/ready2ware/authentication/AuthenticationService 
> as a string in that jar just in case you accidentally jarred 
> it from the
> wrong directory, and then
> (b) drop that jar into your JAVA_HOME's jre/lib/ext 
> directory, which makes
> it about as visible as it can be. (But it can make other 
> programs invisible
> to it; this is a question of hierarchy-of-class-loaders. sigh.)
> 
> If you already tried that, um, I dunno.
> 
> Tom Myers
> 



How to block the Admin client ?

2001-07-16 Thread Tapan Nanawati

How can i block my admin client or add a passowrd to
it?
http://servername:8080/soap/admin

As of now any body on the internet can go and
*undeploy* my service. How can I make it read only
atleast or best to block it with a password.
cheers
Tapan

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: When to use SOAP?

2001-07-16 Thread Tom Myers

At 12:09 PM 7/16/2001 -0600, Liaw, Wan-Bih wrote:

>SOAP works fine, but something it calls on isn't there.
>(a) what's your server setup? Tomcat, WebLogic, Jrun, &c&c&c?
>
>
>WebSphere 3.5 AE with Fixpack 3.5.3
>IBM HTTP Server 3.12.1


aha, WebSphere. In the docs, you'll find

   soap-2_2\docs\install\websphere.html which says, among other things

>IMPORTANT: WebSphere comes with an XML parser (WebSphere\AppServer\lib\xml4j.jar) 
>which uses DOM level 1 interfaces. Even if you put the Xerces 1.1.2's (or later) 
>xerces.jar in your classpath, the wrong interfaces are found by any Java code running 
>in WebSphere because WebSphere puts the user's classpath at the end. So, you must 
>edit WebSphere\AppServer\bin\admin.config file and put xerces.jar at the BEGINNING of 
>the com.ibm.ejs.sm.adminserver.classpath= variable 

It says other things which you've presumably got to read, but I
think the problem here is that you are running a DOM 1 parser
underneath SOAP. Hope this helps...

Tom Myers


>(b) what happens when you look at 
>http://localhost:80/soap/rpcrouter ?
>(for me, that's 
>http://localhost:8080/soap/servlet/rpcrouter
> and it says
>"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me."
>which is the right thing for it to say)
>
>This works -- I got the same result.
>
>
>   (c) what's your client classpath? It looks like things are blowing up as you run
> >java org.apache.soap.server.ServiceManagerClient 
>http://localhost:8080/soap/servlet/rpcrouter
> deploy DeploymentDescriptor.xml
>(that's the line within testit that seems to be blowing up for you)
>so that's using your default system classpath, and of course it also
>uses your JAVA_HOME /jre/lib/ext
>
>Classpath for both client and server: 
>D:\WebSphere\AppServer\lib\xerces.jar;D:\WebSphere\AppServer\jdk\jre\lib\rt.jar;D:\WebSphere\AppServer\lib\ejs.jar;D:\WebSphere\AppServer\lib\ujc.jar;D:\WebSphere\AppServer\lib\servlet.jar;C:\soap-2_2\lib\soap.jar;C:\RhinoTools\jstools.jar;C:\j2sdkee1.3\lib\j2ee.jar;.
>  
>JAVA_HOME:
>D:\WebSphere\AppServer
>
>
>   (d) what's your server classpath?
>
>Please see (c)
>
>
>   (e) what jars are in your JAVA_HOME /jre/lib/ext and especially which of
>them contain the uncompressed string
>org/xml/sax/helpers/AttributesImpl
>(use grep, or ^F for windows)
>
>It has to be D:\WebSphere\AppServer\jdk\jre\lib, in Websphere.
>
>D:\WebSphere\AppServer\jdk\jre\lib>dir/w *.jar
>  Volume in drive D has no label.
>  Volume Serial Number is 6CE0-69FD
>
>  Directory of D:\WebSphere\AppServer\jdk\jre\lib
>
>i18n.jar   jaws.jar   rt.jar
>3 File(s) 15,174,893 bytes
>   1,085,247,488 bytes free
>
>
>-Original Message-
>From: Tom Myers [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 16, 2001 11:01 AM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: RE: When to use SOAP?
>
>
>At 09:56 AM 7/16/2001 -0600, Liaw, Wan-Bih wrote:
>
> >I have made sure I following eth instructions in  
><http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4>http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4
> and still got the following error when I run it:
> >
> >C:\soap-2_2\samples\addressbook>testit
> >This test assumes a server URL of 
><http://localhost:80/soap/rpcrouter>http://localhost:80/soap/rpcrouter
> >Deploying the addressbook service...
> >Ouch, the call failed:
> >   Fault Code   = SOAP-ENV:Server.Exception:
> >   Fault String = org.xml.sax.helpers.AttributesImpl: method getQName(I)Ljava/lan
> >g/String; not found
> >.
> >
> >Does Apache Soap really work???
>
>SOAP works fine, but something it calls on isn't there.
>(a) what's your server setup? Tomcat, WebLogic, Jrun, &c&c&c?
>(b) what happens when you look at 
>http://localhost:80/soap/rpcrouter ?
>(for me, that's 
>http://localhost:8080/soap/servlet/rpcrouter
> and it says
>"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me."
>which is the right thing for it to say)
>   (c) what's your client classpath? It looks like things are blowing up as you run
> >java org.apache.soap.server.ServiceManagerClient 
>http://localhost:8080/soap/servlet/rpcrouter
> deploy DeploymentDescriptor.xml
>(that's the line within testit that seems to be blowing up for you)
>so that's using your default system classpath, and of course it also
>uses your JAVA_HOME /jre/lib/ext
>   (d) what's your server classpath?
>   (e) what jars are in your JAVA_HOME /jre/lib/ext and especially which of
>them contain the uncompressed string
>org/xml/sax/helpers/AttributesImpl
>(use grep, or ^F for windows)
>
>Tom Myers
>
>
>
> 

RE: When to use SOAP?

2001-07-16 Thread Liaw, Wan-Bih
Title: 



SOAP works fine, but something it calls on isn't 
there.   (a) what's your server setup? Tomcat, WebLogic, Jrun, 
&c&c&c?
   WebSphere 3.5 AE with 
Fixpack 3.5.3   IBM HTTP Server 3.12.1   
(b) what happens when you look at http://localhost:80/soap/rpcrouter 
?(for me, that's http://localhost:8080/soap/servlet/rpcrouter 
and it says"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to 
talk to me."which is the right thing for it to say)
This works -- I got the same 
result.
  (c) what's your client classpath? It looks like things are blowing 
up as you run>java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
deploy DeploymentDescriptor.xml(that's the line within testit that seems to 
be blowing up for you)so that's using your default system classpath, and of 
course it alsouses your JAVA_HOME /jre/lib/ext
Classpath for both client and server: 
D:\WebSphere\AppServer\lib\xerces.jar;D:\WebSphere\AppServer\jdk\jre\lib\rt.jar;D:\WebSphere\AppServer\lib\ejs.jar;D:\WebSphere\AppServer\lib\ujc.jar;D:\WebSphere\AppServer\lib\servlet.jar;C:\soap-2_2\lib\soap.jar;C:\RhinoTools\jstools.jar;C:\j2sdkee1.3\lib\j2ee.jar;.
 
JAVA_HOME:
D:\WebSphere\AppServer
  (d) what's your server classpath?
Please see (c)
  (e) what jars are in your JAVA_HOME /jre/lib/ext and especially 
which ofthem contain the uncompressed string   
org/xml/sax/helpers/AttributesImpl(use grep, or ^F for windows)
It has to be 
D:\WebSphere\AppServer\jdk\jre\lib, in Websphere.
D:\WebSphere\AppServer\jdk\jre\lib>dir/w *.jar Volume 
in drive D has no label. Volume Serial Number is 6CE0-69FD
 Directory of 
D:\WebSphere\AppServer\jdk\jre\lib
i18n.jar   jaws.jar   
rt.jar   
3 File(s) 15,174,893 
bytes  
1,085,247,488 bytes free-Original Message-From: 
Tom Myers [mailto:[EMAIL PROTECTED]]Sent: 
Monday, July 16, 2001 11:01 AMTo: [EMAIL PROTECTED]Cc: 
[EMAIL PROTECTED]Subject: RE: When to use SOAP?At 09:56 
AM 7/16/2001 -0600, Liaw, Wan-Bih wrote:>I have made sure I following 
eth instructions in  http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4 
and still got the following error when I run 
it:>>C:\soap-2_2\samples\addressbook>testit>This test 
assumes a server URL of http://localhost:80/soap/rpcrouter>Deploying 
the addressbook service...>Ouch, the call failed:>   
Fault Code   = SOAP-ENV:Server.Exception:>   Fault 
String = org.xml.sax.helpers.AttributesImpl: method 
getQName(I)Ljava/lan>g/String; not found>.>>Does 
Apache Soap really work???SOAP works fine, but something it calls on 
isn't there.   (a) what's your server setup? Tomcat, WebLogic, 
Jrun, &c&c&c?   (b) what happens when you look at http://localhost:80/soap/rpcrouter 
?(for me, that's http://localhost:8080/soap/servlet/rpcrouter 
and it says"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to 
talk to me."which is the right thing for it to say)  (c) what's 
your client classpath? It looks like things are blowing up as you 
run>java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter 
deploy DeploymentDescriptor.xml(that's the line within testit that seems to 
be blowing up for you)so that's using your default system classpath, and of 
course it alsouses your JAVA_HOME /jre/lib/ext  (d) what's your 
server classpath?  (e) what jars are in your JAVA_HOME /jre/lib/ext and 
especially which ofthem contain the uncompressed string   
org/xml/sax/helpers/AttributesImpl(use grep, or ^F for windows)Tom 
Myers>-Original Message->From: Tom Myers 
[mailto:[EMAIL PROTECTED]]>Sent: 
Friday, July 13, 2001 6:31 PM>To: [EMAIL PROTECTED]>Cc: 
[EMAIL PROTECTED]>Subject: RE: When to use 
SOAP?>>>At 02:51 PM 7/13/2001 -0600, Liaw, Wan-Bih 
wrote:>> >Ok, I just tested the first sample in soap-2_2, and 
got the following error. Anyone can help me?   Thanks!> 
>> >C:\soap-2_2\samples\addressbook>testit> >This test 
assumes a server URL of <http://localhost:80/soap/rpcrouter>http://localhost:80/soap/rpcrouter> 
>Deploying the addressbook service...> >Ouch, the call 
failed:> >   Fault Code   = 
SOAP-ENV:Server.Exception:> >   Fault String = 
org.xml.sax.helpers.AttributesImpl: method getQName(I)Ljava/lang/String; not 
found>>I'd expect this to be a variant 
on>    http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4  
or of course #Q1_5>'cos it certainly sounds like an out-of-date parser 
has gotten hold of this;>getQName in that package was once called 
getRawName>(see http://www.megginson.com/SAX/Java/changes.html 
)>Or then again, it might be something totally Other.>>Tom 
Myers


RE: When to use SOAP?

2001-07-16 Thread Tom Myers

At 09:56 AM 7/16/2001 -0600, Liaw, Wan-Bih wrote:

>I have made sure I following eth instructions in  
>http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4
> and still got the following error when I run it:
>
>C:\soap-2_2\samples\addressbook>testit
>This test assumes a server URL of 
>http://localhost:80/soap/rpcrouter
>Deploying the addressbook service...
>Ouch, the call failed:
>   Fault Code   = SOAP-ENV:Server.Exception:
>   Fault String = org.xml.sax.helpers.AttributesImpl: method getQName(I)Ljava/lan
>g/String; not found
>.
>
>Does Apache Soap really work???

SOAP works fine, but something it calls on isn't there. 
   (a) what's your server setup? Tomcat, WebLogic, Jrun, &c&c&c?
   (b) what happens when you look at http://localhost:80/soap/rpcrouter ?
(for me, that's http://localhost:8080/soap/servlet/rpcrouter and it says
"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me."
which is the right thing for it to say)
  (c) what's your client classpath? It looks like things are blowing up as you run
>java org.apache.soap.server.ServiceManagerClient 
>http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
(that's the line within testit that seems to be blowing up for you) 
so that's using your default system classpath, and of course it also
uses your JAVA_HOME /jre/lib/ext
  (d) what's your server classpath?
  (e) what jars are in your JAVA_HOME /jre/lib/ext and especially which of
them contain the uncompressed string
   org/xml/sax/helpers/AttributesImpl
(use grep, or ^F for windows) 

Tom Myers



>-Original Message-
>From: Tom Myers [mailto:[EMAIL PROTECTED]]
>Sent: Friday, July 13, 2001 6:31 PM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: RE: When to use SOAP?
>
>
>At 02:51 PM 7/13/2001 -0600, Liaw, Wan-Bih wrote:
>
> >Ok, I just tested the first sample in soap-2_2, and got the following error. Anyone 
>can help me?   Thanks!
> >
> >C:\soap-2_2\samples\addressbook>testit
> >This test assumes a server URL of 
><http://localhost:80/soap/rpcrouter>http://localhost:80/soap/rpcrouter
> >Deploying the addressbook service...
> >Ouch, the call failed:
> >   Fault Code   = SOAP-ENV:Server.Exception:
> >   Fault String = org.xml.sax.helpers.AttributesImpl: method 
>getQName(I)Ljava/lang/String; not found
>
>I'd expect this to be a variant on
>
>http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4
>  or of course #Q1_5
>'cos it certainly sounds like an out-of-date parser has gotten hold of this;
>getQName in that package was once called getRawName
>(see 
>http://www.megginson.com/SAX/Java/changes.html
> )
>Or then again, it might be something totally Other.
>
>Tom Myers




SOAP over JMS

2001-07-16 Thread HariNam Singh

Hi,

I put some proof of concept together for sending SOAP over JMS. It's not
nice, but it implements a simple JMS SOAP transport and bridge to the SOAP
http server on the service side. It's similar to the Apache e-mail
implementation.

As said above, it's just a proof of concept, little comments and bad code.
Though, I thought maybe someone is interested anyway.

Put the source code into appropriate directories (see packages) in SOAP
source distribution, and compile.


HariNam


 JMSConstants.java
 JMSTestClient.java
 JMSUtil.java
 SOAPJMSConnection.java
 JMS2HTTPBridge.java


getting started

2001-07-16 Thread Blue, Neil

Hello,

I am trying to get started with apache soap. I have made a service that
prints and error string to System.err, and a client that calls it. But I am
having trouble getting the service class return a string that the client can
read. This is really simple I think but I can't get it to work. Please could
someone give me some sample code for this or point me in the right
direction.

Cheers
Neil



RE: When to use SOAP?

2001-07-16 Thread Liaw, Wan-Bih
Title: 



I have made sure I following eth 
instructions in  http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4 and still got the following error when I run 
it:C:\soap-2_2\samples\addressbook>testitThis test assumes a 
server URL of http://localhost:80/soap/rpcrouterDeploying the addressbook service...Ouch, the call 
failed:  Fault Code   = SOAP-ENV:Server.Exception:  
Fault String = org.xml.sax.helpers.AttributesImpl: method 
getQName(I)Ljava/lang/String; not found.Does Apache Soap really 
work???-Original Message-From: Tom Myers [mailto:[EMAIL PROTECTED]]Sent: 
Friday, July 13, 2001 6:31 PMTo: [EMAIL PROTECTED]Cc: 
[EMAIL PROTECTED]Subject: RE: When to use SOAP?At 02:51 
PM 7/13/2001 -0600, Liaw, Wan-Bih wrote:>Ok, I just tested the first 
sample in soap-2_2, and got the following error. Anyone can help me?   
Thanks!>>C:\soap-2_2\samples\addressbook>testit>This 
test assumes a server URL of http://localhost:80/soap/rpcrouter>Deploying 
the addressbook service...>Ouch, the call failed:>   
Fault Code   = SOAP-ENV:Server.Exception:>   Fault 
String = org.xml.sax.helpers.AttributesImpl: method 
getQName(I)Ljava/lang/String; not foundI'd expect this to be a variant 
on   http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4  
or of course #Q1_5'cos it certainly sounds like an out-of-date parser has 
gotten hold of this;getQName in that package was once called 
getRawName(see http://www.megginson.com/SAX/Java/changes.html 
)Or then again, it might be something totally Other.Tom 
Myers


RE: When to use SOAP?

2001-07-16 Thread Liaw, Wan-Bih
Title: 



Thanks, Tom. But, the two URLS you listed are not available, as 
I got this error:"The page cannot be displayedThe page 
you are looking for is currently unavailable. "  It will be great if you can simply paste the contents in the 
reply.
 
TIA,
Wan-Bih Liaw
-Original Message-From: Tom Myers [mailto:[EMAIL PROTECTED]]Sent: 
Friday, July 13, 2001 6:31 PMTo: [EMAIL PROTECTED]Cc: 
[EMAIL PROTECTED]Subject: RE: When to use SOAP?At 02:51 
PM 7/13/2001 -0600, Liaw, Wan-Bih wrote:>Ok, I just tested the first 
sample in soap-2_2, and got the following error. Anyone can help me?   
Thanks!>>C:\soap-2_2\samples\addressbook>testit>This 
test assumes a server URL of http://localhost:80/soap/rpcrouter>Deploying 
the addressbook service...>Ouch, the call failed:>   
Fault Code   = SOAP-ENV:Server.Exception:>   Fault 
String = org.xml.sax.helpers.AttributesImpl: method 
getQName(I)Ljava/lang/String; not foundI'd expect this to be a variant 
on   http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4  
or of course #Q1_5'cos it certainly sounds like an out-of-date parser has 
gotten hold of this;getQName in that package was once called 
getRawName(see http://www.megginson.com/SAX/Java/changes.html 
)Or then again, it might be something totally Other.Tom 
Myers


RE: When to use SOAP?

2001-07-16 Thread Liaw, Wan-Bih


Please ignored my previous email, as the proxy server seems down here. I'll
try again later.

Thanks!

-Original Message-
From: Tom Myers [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 6:31 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: When to use SOAP?


At 02:51 PM 7/13/2001 -0600, Liaw, Wan-Bih wrote:

>Ok, I just tested the first sample in soap-2_2, and got the following
error. Anyone can help me?   Thanks!
>
>C:\soap-2_2\samples\addressbook>testit
>This test assumes a server URL of
http://localhost:80/soap/rpcrouter
>Deploying the addressbook service...
>Ouch, the call failed:
>   Fault Code   = SOAP-ENV:Server.Exception:
>   Fault String = org.xml.sax.helpers.AttributesImpl: method
getQName(I)Ljava/lang/String; not found

I'd expect this to be a variant on
   http://xml.apache.org/soap/faq/faq_chawke.html#Q1_4  or of course #Q1_5
'cos it certainly sounds like an out-of-date parser has gotten hold of this;
getQName in that package was once called getRawName 
(see http://www.megginson.com/SAX/Java/changes.html )
Or then again, it might be something totally Other.

Tom Myers



RE: Mime samples problem, please Help!

2001-07-16 Thread Eduardo Yánez

Here the network administrator installed Resin as the servlet engine...

Any other have had problems with Resin and this mime samples??.

I´m tracking the problem inside the SOAP code and ask the administrator to
track the problem inside Resin to see where is the problem.

Thanks any way! :-)

-Original Message-
From: William A. Nagy [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 12 de Julio de 2001 02:27 p.m.
To: [EMAIL PROTECTED]
Subject: Re: Mime samples problem, please Help!


>Hi!
>Do any of you have had problems with the samples at soap-2_2/samples/mime?
>I have had problems with the:
>java samples.mime.MimeTestClient %URL% loopFile fields.gif
>This command line is in the >testit.cmd< file.
>Could any of you test this sample (plase).
>
>Regards,
>E.Y.

Both the 2.2 release and the nightly build work fine for me as far as
the MIME samples are concerned.

-Bill





when to use SOAP?

2001-07-16 Thread Craig Green

Sorry for the same posting.. maybe this time my Subject won't be hijacked.
;-)

Hello,
I have a web server running a web application (Java), currently it
interacts with JSPs using Beans. I'm looking at SOAP so that I can create a
stand alone MS application which interacts with my web app (Essentially it
will be replacing Beans in a ASP.NET or MS client). I will be passing back
fairly complex data objects. They will contain references to many other
complex user defined type, in addition to Vectors, Hashtables, etc... My
Question: "Is SOAP the right way to go?!?!"
I can't see any problem going from Java server to Java client. But I
assume that I will have to write a de/serializer on the client side (I'd be
using COM), this seems quite labour intensive for the number of different
object that I have. 

Is COM<->Java interoperability far enough along to make this project
feasible yet?

Thanks for your input.
Craig



This email message is confidential and subject to copyright. 
Any unauthorized use or disclosure is prohibited. 
 
 



Help : can't interpret the error !!!

2001-07-16 Thread Elhadi barkat

Hi,
I'm having errors for several days now and I can't find a solution!!
I'm using SOAP v2.2 and Orion 1.5.2
SOAP application is deployed with the soap.war file
my services(a java app) is located in my $ORION-HOME/lib/soapservices.jar
- the SOAP RPC Servlet is working fine
- the services object is found correctly
- a simple method that simply return a String works well too
The problem is that everytime I want to use an EJB(Session Bean here) in
another service method
I get the following error:

"
Fault Code : SOAP-ENV:Server
Fault String : Exception from service object:
com/shockfish/spotme/person/ejbmanager/PersonAgentHome
Fault Actor : /soap/servlet/rpcrouter/
"
where com/shockfish/spotme/person/ejbmanager/PersonAgentHome is the path to
my bean's home interface

I can't guess what this error is??

I would appreciate any push on this error?$
Hadi




Re: AW: WSDL generators

2001-07-16 Thread Radovan Janecek



Hi all,
 
Idoox provides quite rich set of web services 
tools. WSDL generators from Java code are included in all our web services 
products. 
 
http://www.idoox.com/products/index.html
 
We also provide IDE for Web Services (NetBeans 
modules):
http://www.idoox.com/products/tools/netbeans/index.html
 
Enjoy!
 
 
Radovan Janecek
http://www.idoox.com
 
-Original Message-From: Florian Lackerbauer 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, July 12, 2001 3:15 
AMTo: '[EMAIL PROTECTED]'Subject: 
AW: WSDL generatorsHi all,I´ve the same question like 
Brett:Are there any tools available to design WSDL files,or generating 
WSDL files from Java classes 
?regards,florian.-Ursprüngliche Nachricht-Von: 
Brett McLaughlin [mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 11. Juli 
2001 21:10An: [EMAIL PROTECTED]Betreff: 
WSDL generatorsI know this has been asked, several times, but the 
mailing archives are alldown :( What generators are there for WSDL from Java 
classes, preferablyother than the IBM WSTK... It craps out trying to 
generate WSDL from amessage service. Any help is greatly 
appreciated.
 


Deploy-JSP Question

2001-07-16 Thread Oliver Tamine

Why is in deploy.jsp QName set to null, if Namespace URI is empty ?

Code from deploy.jsp:

QName elementType = (nsuri.equals ("") || localPart.equals ("")) 
 ? null : new QName (nsuri, localPart);

This leads to an error in class DeploymentDescriptor (Method toXML):

pw.print ("


RE: How to map Element Object?

2001-07-16 Thread Dinh Viet Hung
Title: RE: How to map Element Object?






Hi,


I've just done something similar to this, post here in case you haven't got solution.

Matthew's explanation in Apache FAQs, section "RPC response encoding styles" will help if you look thru it.


Anyway, what I have done is:

1. Set Encoding style to tell you Provider that you want to return literal as follow:

---> call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML);


2. add parameter as you want to, such as String, double, ... Vector , etc. just remember to use NS_URI_SOAP_ENC

---> params.addElement(new Parameter("myVector", java.util.Vector, myVector, Constants.NS_URI_SOAP_ENC));



that is, everything else is the same as usual, you don't need to tell anything to SOAPMappingRegistry (if input parameters serializer are supported by Apache SOAP ), it is done by default thru encoding style.


hope that it helps,


cheers,

Hung




-Original Message-

From: Danh Hoai [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, July 10, 2001 12:23 AM

To: [EMAIL PROTECTED]

Subject: Re: How to map Element Object?



Thanks Adam,


The problem I am having is that I try to send a Vector to the server instead of Element.  But I expect an Element sending back from the server.  I did try to use the NS_URI_Literal_XML but the Client said something like 'I can only talk with Element'.

So, you meant if I pass an Element to the server, then I don't have to create my own Serializer/Deserializer and map them for both Client and Server??

Thanks again


Danh Hoai


- Original Message - 

From: Adam.Leggett 

To: '[EMAIL PROTECTED]' 

Sent: Monday, July 09, 2001 11:46 AM

Subject: RE: How to map Element Object?



If you are just wanting to send XML Element type then why not use literal xml in the soap envelope body


ie:


Parameter inputArg = 

  new Parameter(

   "inputXML", 

   Element.class, 

   element, 

   Constants.NS_URI_LITERAL_XML); 

 

 Call call = null;

 

 call = 

  this.buildCall(targetURI, "createXML", this.setParams(inputArg));


 call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML);

  

 this.outputResult(call.invoke(url, ""),"createXML");


Hope this helps,


Adam

-Original Message-

From: Danh Hoai [mailto:[EMAIL PROTECTED]]

Sent: Monday, July 09, 2001 4:11 PM

To: [EMAIL PROTECTED]

Cc: [EMAIL PROTECTED]

Subject: RE: How to map Element Object?




Thanks Kanq,


I tried to use BeanSerializer as you said.  But now I have different message as following:

   SOAPException : SOAP-ENV:Client  Unable to instantiate 'org.w3c.dom.Element': org/w3c/dom/Element


At the client side I try to map as following:


   SOAPMappingRegistry smr = new SOAPMappingRegistry();

    BeanSerializer beanSer = new BeanSerializer();


    // Map the types.

    smr.mapTypes(Constants.NS_URI_SOAP_ENC,

 new QName("urn:xml-soap-address-demo", "address"),

 Element.class, beanSer, beanSer);


  Call call = new Call();

  call.setSOAPMappingRegistry(smr);

  call.setTargetObjectURI(urn);

  call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);

  call.setMethodName("createXML");


  Vector parameters = new Vector();

  Vector data = new Vector();

...

...


At the server end point to pass back to the client an Element document.


Anyone has any ideas, please help me.  


Thank you for your help.


Danh Hoai


>I think you are supposed to use the Message object from the client.  If

>you really want to serialize a Message object I would use the BeanSerializer

>class (if Message is a java bean) or write your own.


>You might want to look at the GetAddress.java example in samples.addressbook

>package for how to use the BeanSerializer class.





SOAP Install

2001-07-16 Thread Rares Portan

Hi !

I've installed soap.war  in  tomcat3.2/webapps .
When testing at the localhost:8080/soap/admin  the list, deploy,
un-deploy links I got an error.
Can anybody tell me way?

Service Listing
Error: 500
Location: /soap/admin/list.jsp
Internal Servlet Error:

javax.servlet.ServletException:
javax/management/InstanceNotFoundException
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

 at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError:
javax/management/InstanceNotFoundException
 at
org.apache.soap.server.ServiceManager.readConfigFile(ServiceManager.java:212)

 at org.apache.soap.server.ServiceManager.(ServiceManager.java:91)
 at
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerHTTPUtils.java:103)

 at
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerHTTPUtils.java:118)

 at
admin._0002fadmin_0002flist_0002ejsplist_jsp_0._jspService(_0002fadmin_0002flist_0002ejsplist_jsp_0.java:65)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)

 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

 at java.lang.Thread.run(Thread.java:484)





--
--
rares portan
software.developer

caatoosee srl
str. cluj nr.13
romania, 1900 timisoara

Ph  +40 (0) 56.295 215
Fx  +40 (0) 56.295 216

mailto:[EMAIL PROTECTED]
http://www.caatoosee.com
--
>get what you want