secure method calling

2001-10-04 Thread Oleg Timofeyev

Hello,

I am trying to setup services that will take into consideration security,
will not let just anyone call methods on the server. What is the best way to
do it? Would it be taking in username/password and sending back a cookie or
.. ? Could you please help me out with this, any articles or sample code
would be great. Thank you.

Oleg




High and Low Level Api

2001-10-04 Thread Bineet Basant



hello,
 
can anyone tell what is High level api and Low 
level api in soap.
 
regards
bineet

---
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.




Re: Java SOAP invocation API

2001-10-04 Thread Paramdeep Singh

Hi,

There is a package (freely downloadble) using which you dont have to do
anything at all to make a SOAP request (Not even write these few lines of
code). It even generates the GUI for you, which too is configurable to some
extent. The package can be downlaoded from:

http://www.sics.se/~hamfors/

I find this tool amazing. It even allows you to connect web-services.. All
you have to do is to give the wsdl location!

Otherwise to generate a proxy client, IBM WSTK can be used.

Regards
Paramdeep

- Original Message -
From: "Jean-Louis Vila" <[EMAIL PROTECTED]>
To: "Mailing SOAP apache" <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 10:03 PM
Subject: Java SOAP invocation API


> Hi,
>
> Is there, like SoapToolkit2 from Microsoft, a service invocation
> package which, just with a WSDL file, invokes a method WITHOUT a stub
class?
>
> With MS in javascript we just write these few lines,
> var client = new ActiveXObject("MSSOAP.SoapClient");
> client.mssoapinit("MyDescr.wsdl", "Person", "PersonPort", "");
> var aName=client.getName();
>
> My service "Person" is defined as Java object deployed under Apache SOAP2.
>
>
> Jean-Louis.


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




Re: XML dump

2001-10-04 Thread k young

I had the same problem but with complex return types. 
What I ended up doing was extending the
org.apache.soap.rpc.Call class and overloading the
invoke(url, actionURI) method with some code that
captures the soap payload before it was marshalled
into the target object.

Or if you are dealing with the usual supported types
(ie int, double, boolean, and string) you could do:

StringWriter sw = new StringWriter();
response.buildEnvelope().marshall(new PrintWriter(sw),
call.getSOAPMappingRegistry());
String soapBody = sw.toString();


--- Pavlovic Petar <[EMAIL PROTECTED]> wrote:
> I need a little help. I'm fairly new to Java
> and SOAP. I need
> this example for my graduate assigment.
> 
> I'm having trouble to find the right classes and
> methods
> for the job.
> 
> What  I  need  is u chunk of JAVA code (from
> Apache SOAP toolkit) that
> will display SOAP message (XML formatted). Some sort
> of debug
> information, just for purpose of demonstration.
> 
> Thanks in advance.
> Regards,
> coyote
> 


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Re: getting clients URL

2001-10-04 Thread Victor Hadianto

> Hello,
>
> Is it possible to get URL of a client that requesting a service? How?
>
this was posted by Ashutosh recently:

RE: Client specific processing
From: Ashutosh Arora <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]


  This code snippet shows how... public void getRate(Envelope reqEnv, 
SOAPContext reqCtx, SOAPContext respCtx)
  throws SOAPException{   HttpServletRequest request = 
(HttpServletRequest) reqCtx.getProperty(
      
Constants.BAG_HTTPSERVLETREQUEST );   String host = 
request.getServerName();  // servername
  int port = request.getServerPort();  // port #
  String protocol = request.getScheme();  // http/https
  String wsuri = request.getRequestURI();  // My web service 
processing...}


/ victor



getting clients URL

2001-10-04 Thread Oleg Timofeyev

Hello,

Is it possible to get URL of a client that requesting a service? How?

Sincerely,
Oleg



Apache SOAP and Weblogic6.1 EJB's

2001-10-04 Thread Eric Weidner

Hi all,

I am trying to set up Apache SOAP 2.2 to use with a simple test EJB on
Weblogic6.1.  When I try to hit the deployed SOAP service, I get the
following error...

In TemplateProvider.locate()
URI: urn:ejbTest
DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider
DD.ProviderClass: com.manu.atd.Test
Call.MethodName: doSomething
Exception caught: javax.naming.NameNotFoundException: Unable to resolve
com.manu.atd.Test Resolved: '' Unresolved:'com' ; remaining
name 'manu.atd.Test'

Here's the deployment descriptor...


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







org.apache.soap.server.DOMFaultListener


Any ideas?

Thanks

Eric
[EMAIL PROTECTED]







RE: Help with parameters in Apache SOAP client and .NET SOAP service

2001-10-04 Thread Tolsch, Ed

I'm doing a similar task(except opposite), the producer of the XML is a .NET
client and my consumer is the Apache 2.2 SOAP server. The .NET framework I
believe is basically unmarshalling a C# class into the XML. That's why the
.NET person is telling you he is expecting just value.
I needed to use a custom serializer/deserializer to convert/unconvert from
XML to a JavaBean and back out. I believe you cannot use the BeanSerialzer
with Apache if you are not sending any xsi:type information.
Hope this makes some sense.


-Original Message-
From: John Bowen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 3:10 PM
To: soap user
Subject: Help with parameters in Apache SOAP client and .NET SOAP
service



  Hi all,

  I'm pulling my hair out trying to get my Apache SOAP [v2.2] client working
with a .NET asmx service.

  When I send my SOAP request the server reads the parameters I'm passing it
as null values and rejects my requests no matter what data I fill these
parameters with.  We're arguing back and forth on whose XML is at fault, and
I need some opinions on if my client request is at least SOAPvalid or not.

  Unfortunately the SOAP server isn't in-house, it's another company and I
don't have control or can even snoop around the box.  After a few days of
headaches and searching Google I did fix one of the interoperability
problems by creating a new StringDeserializer to get around that pesky
deserializer exception thrown when the .NET service doesn't return xsi:type
information with the response.

  Here is the XML I'm sending as a request:

--
POST /userservice/userservice.asmx HTTP/1.0
Host: www.candyland.com
Content-Type: text/xml; charset=utf-8
Content-Length: 655
SOAPAction: "http://www.candyland.com/soap_MakeNewUser";


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>

http://www.candyland.com";
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
myUserName
myPassword
[EMAIL PROTECTED]



--

  The argument the .NET programmer makes is that his .NET server expects
just name, but the spec I read on w3.org tells me
there's no problem with including the xsi:type information in my parameters.

  This shouldn't be this difficult, my code is based on the few examples
I've found on the net on doing this and it seems relatively straightforward.

  Anyone with ideas or had similar problems with Apache SOAP clients and
.NET services before?

  - John



Help with parameters in Apache SOAP client and .NET SOAP service

2001-10-04 Thread John Bowen


  Hi all,

  I'm pulling my hair out trying to get my Apache SOAP [v2.2] client working
with a .NET asmx service.

  When I send my SOAP request the server reads the parameters I'm passing it
as null values and rejects my requests no matter what data I fill these
parameters with.  We're arguing back and forth on whose XML is at fault, and
I need some opinions on if my client request is at least SOAPvalid or not.

  Unfortunately the SOAP server isn't in-house, it's another company and I
don't have control or can even snoop around the box.  After a few days of
headaches and searching Google I did fix one of the interoperability
problems by creating a new StringDeserializer to get around that pesky
deserializer exception thrown when the .NET service doesn't return xsi:type
information with the response.

  Here is the XML I'm sending as a request:

--
POST /userservice/userservice.asmx HTTP/1.0
Host: www.candyland.com
Content-Type: text/xml; charset=utf-8
Content-Length: 655
SOAPAction: "http://www.candyland.com/soap_MakeNewUser";


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>

http://www.candyland.com";
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
myUserName
myPassword
[EMAIL PROTECTED]



--

  The argument the .NET programmer makes is that his .NET server expects
just name, but the spec I read on w3.org tells me
there's no problem with including the xsi:type information in my parameters.

  This shouldn't be this difficult, my code is based on the few examples
I've found on the net on doing this and it seems relatively straightforward.

  Anyone with ideas or had similar problems with Apache SOAP clients and
.NET services before?

  - John




XML dump

2001-10-04 Thread Pavlovic Petar

I need a little help. I'm fairly new to Java and SOAP. I need
this example for my graduate assigment.

I'm having trouble to find the right classes and methods
for the job.

What  I  need  is u chunk of JAVA code (from Apache SOAP toolkit) that
will display SOAP message (XML formatted). Some sort of debug
information, just for purpose of demonstration.

Thanks in advance.
Regards,
coyote




Re: FileNotFoundException

2001-10-04 Thread bo

Finally I found the answer.
On the server side, no matter what problem happened,
org.apache.soap.server.http.RPCRouterServlet will catch all the Throwable
and then set the status of HttpServletResponse to SC_INTERNAL_SERVER_ERROR,
that is, 500 server side error. This would not cause problem if you use
Apache SOAP to send and receive SOAP call because Apache SOAP use socket
communication. In my case, I use HttpURLConnection to get the response. Java
would ingore the output stream and throw a FileNotFoundException, when the
response status is a 500 error.

So I comment out the following line in RPCRouterServlet.java and then it
works very well:
  status = res.SC_INTERNAL_SERVER_ERROR;

But according to the specification of SOAP, an HTTP 500 "Internal Server
Error" MUST be issued. So we should be careful of using HttpURLConnection.
We can work around it by using socket or using Apache SOAP's HTTPUtils and
TransportMessage.

Bo


On Thu,  4 Oct 2001 01:12, you wrote:
> Hi guys,
>
> While I send a soap call to the server, it works very well if there is no
> problem with the soap call. But if I have made some mistake with it, I
will
> get a FileNotFoundException. I traced into the SOAP code and found that
> RPCRouterServlet has caught those problems and a right SOAP response with
> fault information has also been produced which I can print out on the
> server. But I still failed on the client side while using
> "URLConnection.getInputStream()" to get the response. I am very confused
> about this.
>
> Thanks!
>
> Bo




java.lang.UnsatisfiedLinkError

2001-10-04 Thread santosh . chinivar

HI ,
 I am a newbie to SOAP.   I am using the VisualAge test Environment on
WindowsNT to run Apache-SOAP.  I was able to succesfully deploy the
deployment descriptor files for the sample COM example provided in
Apache_SOAP.  I have added the COMProvider.dll as well as the applicaltion
dll in my Path environment as well as in the environment of Visual Age.
However I am getting the following error.

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

Please help,

Santosh






RE: Constructor with parameter

2001-10-04 Thread Francis Ho

No you cannot.

You can either rely upon a property file to set your parameters or set them
post-instantiation.


francis


>> -Original Message-
>> From: Laurent Vansuypeene [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, October 04, 2001 11:12 AM
>> To: [EMAIL PROTECTED]
>> Subject: Constructor with parameter
>>
>>
>>
>>  Hi all,
>>
>>
>>  Is SOAP able to instanciate a class with a specific
>> constructor (parameters
>> needed) !
>>
>>  Thanks
>>




Java SOAP invocation API

2001-10-04 Thread Jean-Louis Vila

Hi,

Is there, like SoapToolkit2 from Microsoft, a service invocation
package which, just with a WSDL file, invokes a method WITHOUT a stub class?

With MS in javascript we just write these few lines,
var client = new ActiveXObject("MSSOAP.SoapClient");
client.mssoapinit("MyDescr.wsdl", "Person", "PersonPort", "");
var aName=client.getName();

My service "Person" is defined as Java object deployed under Apache SOAP2.


Jean-Louis.




RE: Parameter Order?

2001-10-04 Thread Adam Lipscombe

AFAIK order is important.

The first param to be added to the soap call on the client side is assumed
by the server to be param 1 and passed to the target method as such. The
second client param added is passed to the target method as param 2 etc.


HTH - Adam

-Original Message-
From: Michael Svoboda [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2001 16:21
To: [EMAIL PROTECTED]
Subject: Parameter Order?


Does Apache care about the order of the parameters in the SOAP-Envelope?

How about other implementation? Do the care about the parameter name or
the parameter order?

This point isn't clear to me out of the specification.

I would appreciate your opinions and knowledge
Michael Svoboda




Can a client construct the entire SOAP document?

2001-10-04 Thread Roger L. Costello

Behind the scenes the Apache SOAP software constructs the actual SOAP
XML document that is sent to a SOAP server.   Suppose that I want to
create the entire SOAP document myself.  Does the Apache SOAP software
provide an API that allows a client to submit an already-constructed
SOAP document?  /Roger




Parameter Order?

2001-10-04 Thread Michael Svoboda

Does Apache care about the order of the parameters in the SOAP-Envelope?

How about other implementation? Do the care about the parameter name or
the parameter order?

This point isn't clear to me out of the specification.

I would appreciate your opinions and knowledge
Michael Svoboda



Constructor with parameter

2001-10-04 Thread Laurent Vansuypeene


Hi all,


Is SOAP able to instanciate a class with a specific constructor (parameters
needed) !

Thanks




unsubscribe me

2001-10-04 Thread Rajshree



 Please, unsubscribe me.
 




MS-SOAP with SSL

2001-10-04 Thread Putti Tang.

Hello,
I have set up SSL on my IIS but I can't use SOAPClient to connect to
WSDL via "https". It shows me the error about Security. Have anyone found
this problem like me?
How can I fixed it?  Thanks in advance.

Putti Tang.



Re: unsubscribe me

2001-10-04 Thread Christophe Dufaza

kenneth, don't forget to reply to the unscribe mail.
subscription/unsubscription works well, provided that you reply to the
automat mail engine.
please take care of the fact that unsubscribe may be sent to another
list that [EMAIL PROTECTED]

duf.

Kenneth Becker a écrit :
> 
> Please, unsubscribe me.



Re: Apache Server and VBClient

2001-10-04 Thread Carlos Vinueza M.



Check this sample, it's all you need:
http://marc.theaimsgroup.com/?l=soap-user&m=98683038702626&w=2
Regards
 
NagarajaRao wrote:

Hi
All, I want to use
Apache soap Server and VB Client. How should i go about? I did the other
way round ( MS Soap Server and Java Client ). Can we use the above for
Synchronous and Asynchronous calls? Please let me know. thanks
& regardsNagaraja Rao

--
Carlos Vinueza M.
Director Comercial
VIMEWorks Cia. Ltda.
Construyendo Sueños en Internet
(CEL)  (593)(9)9703-375
(OFIC) (593)(2)2237-784 / (593)(2)2903-925
 




Re: High-level vs low-level APIs in MS-Soap

2001-10-04 Thread Carlos Vinueza M.



Well , when I tried to develop an application which had to talk to an Apache
SOAP server, I had to use the low level API, 'cause with the other one
was impossible, this is not related with performance but if you want to
develop a flexible application you should use the low level one, I think
it's better in general cases.
Regards
 
Naresh Agarwal wrote:

Hi I
am developing a Client Server application using MS-Soap.I'm
using Soap just for communication between Client and Server. i.e. i donot
intend to deploy Soap service as a web-service. Now
in such a case, should i use low level APIs or high level APIs. High
level APIs uses WSDL file. So in this case, client would first download
the WSDL, creates a Soap request and then send it to the server. Also WSDL
file (in the form of DOM) would resides in client memery as long as client
makes the request. However, if use low-level APIs, client directly forms
Soap request using objects like Connector and Serializer. So
i think low-level APIs would perform better than high level APIs. If
anyone has a clue about it, please clarify Thanks, Regards,Naresh
Agarwal 

--
Carlos Vinueza M.
Director Comercial
VIMEWorks Cia. Ltda.
Construyendo Sueños en Internet
(CEL)  (593)(9)9703-375
(OFIC) (593)(2)2237-784 / (593)(2)2903-925
 




Memory Leak in Apache SOAP ??

2001-10-04 Thread VASUDEV . SUDARSANA


I am running a Tomcat instance which only offers SOAP services via
the rpcrouter servlet.
I noticed that the size of the JVM running this Tomcat keeps increasing
slowly till it hits the 512MB max that I specify for the VM and dies with
an Out of Memory exception.

Is there a memory leak in Apache SOAP ? If yes, is there a work around
to it ?

Config :: Tomcat 3.2.1, Apache-SOAP 2.2, JDK 1.2.2 on Solaris 2.6


Thanks
Vasu





unsubscribe me

2001-10-04 Thread Kenneth Becker

Please, unsubscribe me.




Apache Server and VBClient

2001-10-04 Thread NagarajaRao



Hi All,
 I want to use Apache soap Server and VB 
Client. How should i go about? I did the other way round ( MS Soap Server and 
Java Client ). Can we use the above for Synchronous and Asynchronous calls? 
Please let me know.
 
thanks & regards
Nagaraja Rao


RE: How to hook soap to a JMS server?

2001-10-04 Thread Neil Benn

Hello,

I've been looking at exactly the same thing and worked on something using
SwiftMQ JMS (although the actual JMS implementation wouldn't make any
difference).  However I eventually ended up using something to convert the
http request from SOAP into a JMS text message - outside of SOAP, this is
because I'm waiting to see JAXM does first!
If you have money and don't want to code it yourself FioranoMQ have a JMS
extension which uses SOAP messages which can be bought.

Cheers,

Neil Benn
Automation Informatics Scientist
Cambridge Antibody Technology

-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2001 11:40
To: [EMAIL PROTECTED]
Subject: Re: How to hook soap to a JMS server?




Ong Boon Pang wrote:
>
> Hi,
>
> This is the idea I have... A soap client sends a soap message requests
> to a JMS server's inQueue/Topic using standard soap object. On the server
> end, A soap service listen to the JMS server for a soap message. Process
> the request, send its reply to JMS server outQueue/Topic. Client picks up
> the reply using standard soap object.
>
> Have anyone tried to connect the apache SOAP-Message portion to
> any JMS server?

I just finished doing similar experiments, but with a free-standing
client sending a SOAP message as the content of a TextMessage. Also
did something similar with JavaSpaces. The only problem is that
(just like with a database) establishing a connection is time consuming
so for fast response you would need to keep a connection pool.


--
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2




Re: Client specific processing

2001-10-04 Thread Jonathan Chawke

As far as I know, this technique will only work if both the client and the 
server are using the Apache SOAP libraries.
[See http://marc.theaimsgroup.com/?l=soap-user&m=99674369614308&w=2]

(shout if I'm wrong!)
Jonathan.


>From: Ong Boon Pang <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Client specific processing
>Date: Wed, 03 Oct 2001 14:33:08 +0800
>
>Hi,
>
>Need to download & refer to J2EE document...
>
>import javax.servlet.http.*;
>
>HttpServletRequest req=
>(HttpServletRequest)soapCtx.getProperty(org.apache.soap.Constants.BAG_HTTPSERVLETREQUEST);
>String remIP=req.getRemoteAddr();
>
>
>Boon Pang
>At 10:43 AM 10/2/2001 +0530, you wrote:
>>Hi
>>
>>For my document style SOAP service,
>>I would like to process the SOAP message
>>depending on who has sent the message.
>>
>>How do I know from SOAPContext what the
>>remote host is ?
>>
>>thanks
>>-csk
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: How to hook soap to a JMS server?

2001-10-04 Thread William Brogden



Ong Boon Pang wrote:
> 
> Hi,
> 
> This is the idea I have... A soap client sends a soap message requests
> to a JMS server's inQueue/Topic using standard soap object. On the server
> end, A soap service listen to the JMS server for a soap message. Process
> the request, send its reply to JMS server outQueue/Topic. Client picks up
> the reply using standard soap object.
> 
> Have anyone tried to connect the apache SOAP-Message portion to
> any JMS server?

I just finished doing similar experiments, but with a free-standing
client sending a SOAP message as the content of a TextMessage. Also
did something similar with JavaSpaces. The only problem is that 
(just like with a database) establishing a connection is time consuming
so for fast response you would need to keep a connection pool.


-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2



Re: How to hook soap to a JMS server?

2001-10-04 Thread Rupal Majmudar

Hi Ong,

Yes, the idea you mention is precisely one of the scenarios we are
implementing, as a SOAP interface on our iBus//Mobile product
(http://www.softwired-inc.com/products/mobile/mobile.html).

We already have the basic prototypes running; iBus//Mobile uses a
standard JMS provider - e.g. the iBus//MessageServer, BEA Weblogic.

Using this architecture, we can integrate diverse clients (mobile
devices, Java clients, non-Java clients) with the JMS backend services
with the SOAP & .NET services. All using the JMS as the consistent,
end-to-end paradigm. 

iBus//Mobile R3.0 will be released 1Q 2002, with the above feature in
place. 

Ciao
Rupal

Ong Boon Pang wrote:
> 
> Hi,
> 
> This is the idea I have... A soap client sends a soap message requests
> to a JMS server's inQueue/Topic using standard soap object. On the server
> end, A soap service listen to the JMS server for a soap message. Process
> the request, send its reply to JMS server outQueue/Topic. Client picks up
> the reply using standard soap object.
> 
> Have anyone tried to connect the apache SOAP-Message portion to
> any JMS server?
> 
> This will complete the SOAP message portion for adapting to MOM model.
> Like the latest Message EJB standard. This is how we can get away from
> using most of the EJB features. Hence, avoiding paying handsome amount
> for a EJB Application Server like iPlanet, WebLogic in most cases.
> 
> I am still new in Apache SOAP (only 2/3 weeks), however the message part
> of soap that can talk to a smtp / pop server makes JMS not too impossible.
> 
> Please help.
> 
> cheers,
> Boon Pang
> [EMAIL PROTECTED]

-- 
Rupal Majmudar
Software Architect
[EMAIL PROTECTED]

Softwired Inc.  www.softwired-inc.com
Technoparkstrasse 1, CH-8005 Zurich, Switzerland
tel +41-1-4452370 * fax +41-1-4452372

   * e2e Java Messaging, Pure and Simple. * 

** Latest news: http://www.softwired-inc.com/news/news.html ** 

*** Go Wireless:  Shipping NOW: iBus//Mobile 2.1 ***