SV: SOAP between Java and C++

2001-06-06 Thread Patrik Lindefors

Hi David!

One of the nice things about SOAP is that it isn't language dependent but 
that you can write a SOAP client or service in the language of your desire. 
You would have to have an XML parser though and also one or more 
Serializers who can understand the SOAP protocol. I think Microsoft has 
some C++ implementation of SOAP (I'm not sure but...) that you could use.

Bon chance!

Anders

-Original Message-
From: David DELGRANCHE [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Date: Tuesday, June 05, 2001 7:18 AM
Subject: SOAP between Java and C++


 Hi all,

 I'm a newbie in Soap. I'm trying to find a solution to exchange
informations between a Java Client and a C++ server. Apache Soap is 
really
well done but requires Java on the server. Sure you will tell me that I 
can
do JNI on my server, but this solution doesn't satisfy us. Does anyone 
know
a solution to use SOAP between Java and C++ ?
 Thanks in advance

 David.

David DELGRANCHE
[EMAIL PROTECTED]
tel. 02.99 05.34.25
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX




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



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




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




Réf. : Re: Question about Parameters

2001-06-06 Thread manuel . paitreault




 Hi Cecile !! (just a question : aren't you french ??)
I really thank you for your help !! your proposition works 
but does it mean that we can't send a call with any types of parameter ?? I
am forced to pass only XML elements parameters ??
in fact, I think I don't understand exactly what is the goal of a
Serializer !!!
regards


Try
params.addElement (new Parameter(addedfile, Element.class,
docXML.getDocumentElement(),
org.apache.soap.Constants.NS_URI_LITERAL_XML));

Cecile Saint-Martin
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 05, 2001 2:53 PM
Subject: Question about Parameters


 Hi,

 I'd like to send a service invocation to a server with any types
parameter
  for example, I have a XML file, I want to parse it and constructs
a
 DOM tree representation ... and I'd like to send it to a SOAP server in
 order to get the content of an element ... so I tried to send a call
with
 one dom.Document parameter  here is the client program (without
catch
 etc ):





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




RE: Ref. : Soap benchmarking

2001-06-06 Thread Jean-Louis Vila

No of course ...

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 5 juin 2001 15:45
 À : [EMAIL PROTECTED]
 Objet : RE: Ref. : Soap benchmarking


 Is it re-compiling the JSP page?

  -Original Message-
  From: Jean-Louis Vila [mailto:[EMAIL PROTECTED]]
  Sent: June 5, 2001 2:43 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Ref. : Soap benchmarking
 
 
  Hi,
  I notice the same thing.
  Perhaps because of the creation of
  SOAPContext to manage SOAP object's scope ...
 
  Jean-Louis
 
   -Message d'origine-
   De : [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]
   Envoye : mardi 5 juin 2001 11:32
   A : [EMAIL PROTECTED]
   Objet : Ref. : Soap benchmarking
  
  
  
I don't think I could answer you, but I noticed something
  about SOAP :
   when you start Tomcat (or other web server...) and you want to list
   deployed services (for exemple, with the administration
  tool ...), the
   transaction  lasts several seconds ... it's the same thing if you
   inoke one
   of these services form a client just after starting Tomcat ...
   but, once Tomcat started, if it's not the first time you
  invoke a service,
   the response will become shorter  I can't explain it,
  but I noticed it
   
   Regards
  
  
  
  
   Hi everybody,
  
   going on with my work on Soap I'm trying to do some
  benchmarking to see
   how soap clients and servers behave under high load.
  
   I've found many dificulties, mainly because soap clients
  (maybe due to
   java) are very slow, so it is impossible for me to test
  real high load
   server processes. And if the tests are done unsing SSL the
  problem gets
   much worse. Some partial results are as follow.
  
  
   Running clients from 7 computers at the same time against
  one server,
   the server was able to serve 190 cleartext requests in one
  second (that
   is 3.17 req/s) but I'm sure the server can handle many more (Orion
   server). I could not run this test against Tomcat because I
  don't know
   how to set up log for every request served, I would
  appreciate any help
   about this, I only get logs of servlets and listeners starting.
  
  
   I will give you some numbers so that you get an idea of
  what I'm talking
   about and you can tell me if those times are also common for you. I
   suppose they are not the firsts requests, as these usually
  take a bit
   longer.
  
   For Tomcat on a 100Mbit LAN,
   
   Single request, cleartext: 2.27 sec
   Single request, ssl without authentication: 14.71 sec
   Single request, ssl with authentication: 16.47 sec
  
  
   Oops, the request made is the one in my examples,
  SendPabloObject, that
   sends a java object and gets it back with a few changes.
  This shouldn't
   take long time in server to be processed.
  
   I've been using Apache Soap 2.1, Xerces 1.3.0, and Orion and Tomcat
   servers under Linux.
  
  
   Any feedback, your own results or other ideas to try would
  be welcome,
   thanks,
  
  
   Pablo
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  
  
  
  
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 

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



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




Re: How can I get the the IP of client from A Soap Service program?

2001-06-06 Thread oh


I checked the archive of this mailing list, and I found nothing.

I think it' neccessary for a service bean to get the information
in the request. Is there any solution to solve it ?
Maybe I have to give up trying with Apache Soap..

Any help will be appreciate.

Huimin Wang,
Globus,Inc



- Original Message -
From: oh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 1:04 PM
Subject: Re: How can I get the the IP of client from A Soap Service program?



 - Original Message -
 From: Pae Choi [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 06, 2001 11:55 AM
 Subject: Re: How can I get the the IP of client from A Soap Service
program?


  See getRemoteAddr() of javax.servlet.ServletRequest. And its subclass,
  javax.servlet.http.HttpServletRequest. :-)

 I know this method. But How can I get the instance of HttpServletRequest
in
 my
 program? My program is not a Servlet.

 Thanks,

 Huimin Wang
 Globus,Japan



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



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




IIS and Apache SOAP Client

2001-06-06 Thread Colin Saxton

Apache SOAP client does not work on IIS.  IIS sends:
...
Content-Type:text/xml; charset=utf-8
...

Where as Apache sends

...
Content-Type: text/xml; charset=utf-8
...

Notice the extra space after Content-Type:.

An Exception is thrown in the SOAP client (GetAddress example) that states
the content type should be text/xml but it is read as ext/xml?? I think this
is because of the extra space...has anyone had this problem?

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




NullPointerException

2001-06-06 Thread manuel . paitreault

Hi,

I'm trying to create a new document from the extraction of an element of an
existing Document :

public Document Decomposer(Document docXML)
 {
  Document XMLElementary=null;
  NodeList NL= docXML.getElementsByTagName(Word);
  Node NodeEntity = NL.item(0);
  Node node = NodeEntity.cloneNode(true);
  XMLElementary.importNode(node,true);  --
here is the problem ...
  return XMLElementary;
 }

and the java executer answers :
Exception in thread main java.lang.NullPointerException:
at Interrogateur.Decomposer(Interrogateur.java:34)
at Interrogateur.Interroger(Interrogateur.java:47)
at Mediateur.construire(Mediateur.java:69)
at Mediateur.main(Mediateur.java:43)

I understand why : it is bescause I initialize XMLElementary with null ...
but I don't know how I can do otherwise : if I don't initialize my new
document XMLElementary, it refuses compiling the code 

Does anybody have a clue ??

Thanks !


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




Re: How can I get the the IP of client from A Soap Service program?

2001-06-06 Thread Doug Davis

Don't have time to go into it right now, but try adding a SOAPContext
parameter to the start of your parameters on your method - look
at the template provider to see what you can pull out of the properties.
You can get things like the ServletContext, HTTPRequest object...
-Dug


oh [EMAIL PROTECTED] on 06/06/2001 09:35:56 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: How can I get the the IP of  client from A Soap Service
  program?




I checked the archive of this mailing list, and I found nothing.

I think it' neccessary for a service bean to get the information
in the request. Is there any solution to solve it ?
Maybe I have to give up trying with Apache Soap..

Any help will be appreciate.

Huimin Wang,
Globus,Inc



- Original Message -
From: oh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 1:04 PM
Subject: Re: How can I get the the IP of client from A Soap Service
program?



 - Original Message -
 From: Pae Choi [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 06, 2001 11:55 AM
 Subject: Re: How can I get the the IP of client from A Soap Service
program?


  See getRemoteAddr() of javax.servlet.ServletRequest. And its subclass,
  javax.servlet.http.HttpServletRequest. :-)

 I know this method. But How can I get the instance of HttpServletRequest
in
 my
 program? My program is not a Servlet.

 Thanks,

 Huimin Wang
 Globus,Japan



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



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




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




Re: How can I get the the IP of client from A Soap Service program?

2001-06-06 Thread oh

Thank you for your response.

- Original Message -
From: Doug Davis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 6:26 PM
Subject: Re: How can I get the the IP of client from A Soap Service program?


 Don't have time to go into it right now, but try adding a SOAPContext
 parameter to the start of your parameters on your method - look
 at the template provider to see what you can pull out of the properties.
 You can get things like the ServletContext, HTTPRequest object...

Did you mean I should add a parameter to the method that registed as a soap
action?
In the case, how can I write the client code to match the singatue of the
method?

I just added to the Soap service program without changing the message of the
request
which sended by Perl program, but I got the following Soap Error:

?xml version='1.0' encoding='UTF-8'?
SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;
SOAP-ENV:Body
SOAP-ENV:Fault
faultcodeSOAP-ENV:Server/faultcode
faultstringcom.xxx.xmlapi.Asset.getAsset(com.xxx.xmlapi.SessionInfo,java.l
ang.String) -- no signature match/faultstring
faultactor/oh-is2/soap/servlet/rpcrouter/faultactor
/SOAP-ENV:Fault
/SOAP-ENV:Body
/SOAP-ENV:Envelope


and the here is a part of my changed program:

public AssetInfo getAsset( SOAPContext reqContext,
SessionInfo sessionInfo,
String asset_id)
{
System.out.println(Asset#getAsset start:);
System.out.println(reqContext =  + reqContext);

String memberId = sessionInfo.getMemberid();
String sessionId = sessionInfo.getTicket();
String userName = sessionInfo.getUsername();

HttpServlet servlet = (HttpServlet) reqContext.getProperty(
Constants.BAG_HTTPSERVLET );
HttpSession session = (HttpSession) reqContext.getProperty(
Constants.BAG_HTTPSESSION );

   Enumeration keys = reqContext.getPropertyNames();
while ( keys.hasMoreElements() ) {
String  key   = (String) keys.nextElement();
System.out.println( Key:  + key);
}
...



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




RE: VB to Apache SOAP

2001-06-06 Thread Ding, Chengmin

Hi,All,
I have tried Richard's VB/Apache(StringService) soap sample and it works
well. But I just found out a lot of error messages like
the following in the tomcat console. I searched the archive and haven't
found a fix for this problem. Has anyone else
seen the same errors using the StringService sample? BTW I am using Soap 2.1
on NT 4, SP5.

thanks.

-Chengmin

==



2001-06-06 12:14:54 - Ctx(/soap) : IOException in R( /soap +
/StringService.wsdl
 + null) - java.net.SocketException: Connection aborted by peer: socket
write er
ror
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at org.apache.tomcat.modules.server.Http10.doWrite(Http10.java:386)
at
org.apache.tomcat.modules.server.HttpResponse.doWrite(Http10Intercept
or.java:328)
at
org.apache.tomcat.core.OutputBuffer.realWrite(OutputBuffer.java:151)
at
org.apache.tomcat.core.OutputBuffer.flushBytes(OutputBuffer.java:427)

at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:380)
at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:368)
at org.apache.tomcat.core.Response.finish(Response.java:273)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:704
)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Http10Interceptor.java:142)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:426)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:497)
at java.lang.Thread.run(Thread.java:484)

-Original Message-
From: Hansen, Richard [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 12:51 PM
To: '[EMAIL PROTECTED]'
Subject: RE: VB to Apache SOAP


Sorry about that, here is an updated archive.

 -Original Message-
 From: Furlan Bojan RDSI [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 2:28 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: VB to Apache SOAP
 
 
 I was really glad to receive the latest VB/apache example and 
 tried to run
 the code. Java tests are running perfectly, but when trying to compile
 StringBeanSerializer, it extends
 com.westgroup.ecommerce.services.soap.SOAPSerializer which is 
 missing. Since
 I'm new to Java (and VB), I cannot help myself. Would you, 
 please help me?
 By the way, which version of MS toolkit are you using?
 
 Bojan Furlan
 
 -Original Message-
 From: Hansen, Richard [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 3:47 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: VB to Apache SOAP
 
 
 Here is an example that works. There may be another better or 
 easier way to
 get the MS high level API working with Apache, but I have not 
 seen any yet.
 Let's hope Axis improves this.
 
 Rick Hansen
 
  -Original Message-
  From: Furlan Bojan RDSI [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 18, 2001 6:58 AM
  To: '[EMAIL PROTECTED]'
  Subject: VB to Apache SOAP
  
  
  Hi all,
  
  I'm trying to run Richard Hansen's VB/Apache demo dated April 
  25th. When
  checking it using Java client, it works fine, but I'm 
  experiencing strange
  phenomenon when trying to run VB client. During 
  stringBeanInOut operation, I
  get the following message:
  
  Soap Fault:
  [Client] 
  Connector - Server returned contenttype other than text/xml
  HRESULT800a1450/HRESULT
  
  When trying to check what went wrong using TcpTunnelGui (and 
  TcpTunnelGui2),
  things get complicated. If I change last modification date od 
  wsdl file, it
  gets transefered to a client, otherwise just part (or none) 
 of it gets
  transfered, even though the Content-Length remains the same. 
  In both cases,
  no other messages are transfered to, or returned from server. To my
  supprise, I get results in VB client window. I have tried to 
  change the
  values of strings and results changed accordingly.
  Can somebody explain what is going on and help me solve the 
 problem on
  stringBeanInOut, please.
  
  Thanks
  Bojan Furlan
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


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




WSDL

2001-06-06 Thread Daniel Kruler

I am defining string array in WSDL using the following:
types
xsd:schema targetNamespace=SOAPTester
xmlns=http://www.w3.org/2000/10/XMLSchema;
complexType name=ArrayOfstring
xsd:complexContent
xsd:restriction
base=SOAP-ENC:Array
xsd:attribute
ref=SOAP-ENC:arrayType wsdl:arrayType=xsd:string[] /
/xsd:restriction
/xsd:complexContent
/complexType
/xsd:schema
/types

WSDL Reader complains that it doesn't recognize wsdl:, how do I declare
wsdl namespace in my WSDL?


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




Re: How to use EnvelopeEditors?

2001-06-06 Thread Sanjiva Weerawarana

See the docs: http://xml.apache.org/soap/docs. Click on User's Guide
and then on Using Transport Hooks!

Boy, it feels good to be able to point to the docs!!

Sanjiva.

- Original Message -
From: Michael Weir (Transform Research) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 4:12 PM
Subject: How to use EnvelopeEditors?


 I'd like to use an EnvelopeEditor to dump SOAP as it comes and goes.  It
 seems quite straightforward to create the necessary classes, but where are
 the configuration files for the RPCRouter servlet?

 Thanks.



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




Class Loading in SOAP/Tomcat

2001-06-06 Thread Javier A. Soltero


Hi All,

I have a question regarding how classes which are made available via the
soap interface are loaded by Apache Soap when soap runs inside the
Tomcat 3.2 container. Essentially, I would like to package my soap
server application as a war file which will be deployed into Tomcat. My
expectation would be that when the RPCRouter is going to instantiate a
class called via SOAP, it will be able to do so solely by looking at the
classes that were packaged in the war file. In trying to prove this,
I have found that SOAP (or perhaps Tomcat) requires any class which is
going to be loaded by it to be in the classpath which *started* tomcat.
This makes it difficult to be able to package SOAP server applications
which can just be dropped into Tomcat (or any other Servlet container)
without having to modify the classpath with which the container is
started.

Does anyone out there have any experience/knowledge about the expected
behaviour? Is this question outside the scope of SOAP and more directly
related to Tomcat's class loader?

any help or insight greatly appreciated.

-javier


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




Apache SOAP server/MS SOAP client

2001-06-06 Thread Daniel Kruler

When I try to call Apache SOAP server from MS SOAP client (using VB) I
get the following error: Application or Object error
When I look at webserver console, I see that rpcrouter servlet is
called, but my SOAP server never gets instantiated. My SOAP server is
deployed correctly and I can call it's methods from using Call object.
What could be the problem?

-Original Message-
From: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 4:23 PM
To: [EMAIL PROTECTED]
Subject: Re: How to use EnvelopeEditors?


See the docs: http://xml.apache.org/soap/docs. Click on User's Guide
and then on Using Transport Hooks!

Boy, it feels good to be able to point to the docs!!

Sanjiva.

- Original Message -
From: Michael Weir (Transform Research) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 4:12 PM
Subject: How to use EnvelopeEditors?


 I'd like to use an EnvelopeEditor to dump SOAP as it comes and goes.
It
 seems quite straightforward to create the necessary classes, but where
are
 the configuration files for the RPCRouter servlet?

 Thanks.



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


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




RE: How to use EnvelopeEditors?

2001-06-06 Thread Michael Weir (Transform Research)
Title: RE: How to use EnvelopeEditors?





I don't set out to waste your time! I'm looking at the docs! 
But, I see that you have to add a value to the configuration file for the RPCRouter, but it doesn't say where that file is. (I'm pretty new to Java, so maybe I'm missing something that I ought to know...)

Thanks.


-Original Message-
From: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 4:23 PM
To: [EMAIL PROTECTED]
Subject: Re: How to use EnvelopeEditors?



See the docs: http://xml.apache.org/soap/docs. Click on User's Guide
and then on Using Transport Hooks!


Boy, it feels good to be able to point to the docs!!


Sanjiva.


- Original Message -
From: Michael Weir (Transform Research) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 4:12 PM
Subject: How to use EnvelopeEditors?



 I'd like to use an EnvelopeEditor to dump SOAP as it comes and goes. It
 seems quite straightforward to create the necessary classes, but where are
 the configuration files for the RPCRouter servlet?

 Thanks.




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





Re: Réf. : Re: Question about Parameters

2001-06-06 Thread Saint-Martin Cecile


  Hi Cecile !! (just a question : aren't you french ??)
My english is so bad? :)

 I really thank you for your help !! your proposition works 
 but does it mean that we can't send a call with any types of parameter ??
 I am forced to pass only XML elements parameters ??
 in fact, I think I don't understand exactly what is the goal of a
 Serializer !!!
If you want to pass not a basic typed parameter but a class defined, you need a 
serializer for this class.
A serializer is needed to transform  your object parameter into a form that can be 
sent in a socket.
Basic types serializer exist already.
(If you want to learn more about serialization see
http://www.jguru.com/faq/home.jsp?topic=Serialization)
XML file is not a basic type and Apache SOAP provides a serializer for it.
If you want to pass an array for example, which is not a basic type, you have to write 
an ArraySerializer and, in your deployment
descriptor, add a map tag to inform SOAP classes to use your ArraySerializer for your 
parameter.

If  I'm not clear you can write me in french :)


Cecile Saint-Martin
[EMAIL PROTECTED]

 regards


 Try
 params.addElement (new Parameter(addedfile, Element.class,
 docXML.getDocumentElement(),
 org.apache.soap.Constants.NS_URI_LITERAL_XML));

 Cecile Saint-Martin
 [EMAIL PROTECTED]
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2001 2:53 PM
 Subject: Question about Parameters


  Hi,
 
  I'd like to send a service invocation to a server with any types
 parameter
   for example, I have a XML file, I want to parse it and constructs
 a
  DOM tree representation ... and I'd like to send it to a SOAP server in
  order to get the content of an element ... so I tried to send a call
 with
  one dom.Document parameter  here is the client program (without
 catch
  etc ):
 




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



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




Re: How to use EnvelopeEditors?

2001-06-06 Thread Sanjiva Weerawarana

Sorry, I wasn't implying that you did .. :-).

Take a look at the Server Configuration section of the docs-
that tells you that init parameters go into the web app config
file web.xml found in the WEB-INF directory. The docs could
be a bit more explicit :-). If you're deploying with the war
file, you'll have to look in the expanded war at
webapps/soap/WEB-INF/web.xml
In there you'll see the two servlets being configured ..

Sanjiva.

- Original Message -
From: Michael Weir (Transform Research) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 4:38 PM
Subject: RE: How to use EnvelopeEditors?


 I don't set out to waste your time! I'm looking at the docs!
 But, I see that you have to add a value to the configuration file for the
 RPCRouter, but it doesn't say where that file is.  (I'm pretty new to
Java,
 so maybe I'm missing something that I ought to know...)

 Thanks.

 -Original Message-
 From: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 4:23 PM
 To: [EMAIL PROTECTED]
 Subject: Re: How to use EnvelopeEditors?


 See the docs: http://xml.apache.org/soap/docs. Click on User's Guide
 and then on Using Transport Hooks!

 Boy, it feels good to be able to point to the docs!!

 Sanjiva.

 - Original Message -
 From: Michael Weir (Transform Research) [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 06, 2001 4:12 PM
 Subject: How to use EnvelopeEditors?


  I'd like to use an EnvelopeEditor to dump SOAP as it comes and goes.  It
  seems quite straightforward to create the necessary classes, but where
are
  the configuration files for the RPCRouter servlet?
 
  Thanks.
 


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



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




How to set output parameters in my server code

2001-06-06 Thread Yong Chen
Title: How to set output parameters in my server code






Hi,
I am trying to invoke a java method of a java service on server (via .../servlet/rpcrouter to deploy this service, actually just a java class containing that method). My problem is, this method will not only return a value, it will also have some output parameters. I guess on client side I can use getParams() method of Response class to get these parameters, but how do I set these output parameters in the method on server side (to send them to client)? I could not find any example usage from the samples coming together with Apache soap server.

thanks
Yong Chen





ConfigManager can not read DeployedServices.ds

2001-06-06 Thread Shinta Tjio

We have an installation where the first few 
SOAP services were deployed using JDK 1.2.2_05a 
for Solaris 2.8. Later on, the JVM on that machine 
is upgraded to JDK 1.2.2_06. I'm finding that the 
ConfigManager could not read the DeployedServices.ds. 
This is the exception thrown:

java org.apache.soap.server.ServiceManagerClient
http://brian:48080/soap/servlet/rpcrouter list

SOAP Service Manager: Unable to read 'DeployedServices.ds': assuming
fresh start
java.io.InvalidClassException:
org.apache.soap.server.DeploymentDescriptor; 
Local class not compatible: stream classdesc
serialVersionUID=2926881600043336890 
local class serialVersionUID=-1581712267782747801

Did anyone see this kind of error? Other than
reverting back to JDK 1.2.2_05a, anyone has any
suggestion on how to handle this?

thanks,
shinta

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




Re: ConfigManager can not read DeployedServices.ds

2001-06-06 Thread Mike Williams

Shinta,

The problem is with serialization.  A class that is serialized can only 
be deserialized with the same version of the JVM.  The 
DeployedServices.ds file is a serialized hash map or maps of 
DeploymentDescriptors.  This is what's causing your problem.

You should be able to simply redeploy your services using your current 
JVM and all should be well again.

Mike

Shinta Tjio wrote:

 We have an installation where the first few 
 SOAP services were deployed using JDK 1.2.2_05a 
 for Solaris 2.8. Later on, the JVM on that machine 
 is upgraded to JDK 1.2.2_06. I'm finding that the 
 ConfigManager could not read the DeployedServices.ds. 
 This is the exception thrown:
 
 java org.apache.soap.server.ServiceManagerClient
 http://brian:48080/soap/servlet/rpcrouter list
 
 SOAP Service Manager: Unable to read 'DeployedServices.ds': assuming
 fresh start
 java.io.InvalidClassException:
 org.apache.soap.server.DeploymentDescriptor; 
 Local class not compatible: stream classdesc
 serialVersionUID=2926881600043336890 
 local class serialVersionUID=-1581712267782747801
 
 Did anyone see this kind of error? Other than
 reverting back to JDK 1.2.2_05a, anyone has any
 suggestion on how to handle this?
 
 thanks,
 shinta
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-- 



Mike Williams
[EMAIL PROTECTED]
http://www.mikesbox.com

May the Source be with you!



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




MS SOAP Client / Apache SOAP server

2001-06-06 Thread Daniel Kruler

 Do I need to do something special when calling methods like:
 int getIntegerValue() in Apache SOAP server
 from MS SOAP client?
 What about getStringValue()?

 MS SOAP client reads WSDL correctly, but when it invokes the method,
 RPCRouter doesn't instantiate the SOAP server object.


 MS SOAP then displays Application-defined or object-defined error

 What am I missing?


 

winmail.dat
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]