RE: SOAP/Tomcat

2003-06-04 Thread Nirmal Mukhi

Return Receipt
   
Your  RE: SOAP/Tomcat  
document   
:  
   
was   Nirmal Mukhi/Watson/IBM  
received   
by:
   
at:   06/03/2003 11:59:35  
   






SOAP/Tomcat

2003-06-03 Thread Nirmal Mukhi

Return Receipt
   
Your  SOAP/Tomcat  
document   
:  
   
was   Nirmal Mukhi/Watson/IBM  
received   
by:
   
at:   06/02/2003 14:59:08  
   






RE: SOAP/Tomcat

2003-06-03 Thread Nirmal Mukhi

Return Receipt
   
Your  RE: SOAP/Tomcat  
document   
:  
   
was   Nirmal Mukhi/Watson/IBM  
received   
by:
   
at:   06/02/2003 15:39:05  
   






RE: SOAP/Tomcat

2003-06-03 Thread Nirmal Mukhi

Return Receipt
   
Your  RE: SOAP/Tomcat  
document   
:  
   
was   Nirmal Mukhi/Watson/IBM  
received   
by:
   
at:   06/02/2003 15:39:38  
   






Re: Bean-to-XML Serializer

2002-10-07 Thread Nirmal Mukhi






Hi,

You could look at JROM (http://www.alphaworks.ibm.com/tech/jrom) too. JROM
is a java representation of XML which is more convenient than DOM for many
applications, has a SOAP serializer and deserializer and a JROM-2-Bean,
Bean-2-JROM convertor. JROM2DOM and DOM2JROM are being developed too.

Nirmal.


   
   
  Scott Nichol 
   
  snicholnews@scottTo:   [EMAIL PROTECTED] 
   
  nichol.com   cc:
   
Subject:  Re: Bean-to-XML Serializer   
   
  10/07/2002 11:25 
   
  AM   
   
  Please respond to
   
  soap-user
   
   
   
   
   



There is no built-in way to go bean-to-DOM.  Right now, the literal XML
encoding has a serializer for an Element, and that is it: there are no
other literal XML serializers.  Conversely, there is no SOAP encoding
serializer for an Element.

Something like Castor might give you bean-to-XML mapping.

Scott Nichol

- Original Message -
From: carey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 07, 2002 11:01 AM
Subject: Bean-to-XML Serializer



 We will be using SOAP 2.3.  For most users we need to conver to/from
SOAP to
 java bean format.  However, for a few users, we will need to convert
from
 the java bean to either DOM or literal-XML.  Is there a way to do
this?  I
 see the beanserializer will go from SOAP to bean and back, but how do
I get
 from bean to DOM?

 Thanks,

 Lynda


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




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






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




RE: BadTargetURI error

2002-01-04 Thread Nirmal Mukhi


Hi,

You might try looking at your tomcat.bat file (usually in
jakarta-tomcat/bin) where the classpath is set. It appends things to the
CLASSPATH env variable, but you could try manually adding the directory
containing the samples directory and restarting your server. Also remember
that you will need to restart tomcat each time you update your CLASSPATH
settings or if you update any of your classes for those changes to take
effect .

Nirmal.


   

  Nishant Gupta

  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]  

  om  cc: 

   Subject:  RE: BadTargetURI error

  01/04/2002 07:06 

  AM   

  Please respond to

  soap-user

   

   




 --- Caroline Clewlow [EMAIL PROTECTED] wrote: 
That could be my only option.
 This is very frustrating - I have placed the class files
 in every possible directory I can think of and the server
 is still reporting the error.

 Where exactly does the SOAP server look to find the class
 files - can anyone tell me.

 I don't want to just give up on Tomcat - I'd rather know
 why it's not working !

 Thanks

 Caroline


 1/3/02 4:57:39 PM, Kevin Lux [EMAIL PROTECTED]
 wrote:

 Caroline,
 
 I had the same problem and got the classic fix your
 classpath answer.
 Instead I went and installed the Resin server. Dropped
 in the soap.war
 file, set my classpath to include the soap directory for
 the client, and
 everything works. It seems Tomcat is just too picky and
 no one knows how
 to make it happy.
 
 Kevin
 
 On Thu, 3 Jan 2002, Caroline Clewlow wrote:
 
  The service listing looks fine.  It has the class name
 and method name as it shoud be.
 
  The class is
 samples.stockquote.StockQuoteService
  I have put the samples folder in the common/classes
 directory. in fact I've tried it in every possible
 classes directory and with all kinds of classpath
 settings.  The server just refuses to
 find it.
  I'm convinced I'm making a very silly, very
 fundamental mistake.
 
  Caroline
 
  1/3/02 3:59:49 PM, William Brogden
 [EMAIL PROTECTED] wrote:
 
  I would suspect that BadTargetURI is related to the
 deployment
  descriptor - have you taken a close look at the
 service listing
  that the Apache SOAP Admin service shows?
  
   -Original Message-
   From: Caroline Clewlow
 [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 03, 2002 7:49 AM
   To: [EMAIL PROTECTED]
   Subject: BadTargetURI error
  
  
   If anyone has even the remotest idea of a solution
 for this
   I'd really appreciate some advice.
   I am getting the above error returned by the SOAP
 server when
   I try to use the GetQuote method in the StockQuote
 soap  sample.
   I have read a number of discussions about this and
 have tried
   to remedy it by including the soap-2_0 directory in
 the
   tomcat  classpath so that the sample classes can be
 found.
   THis was to no avail.
  
   My classpath settings are below.
   set
  

CP=%CATALINA_HOME%\common\lib\xerces.jar;%CATALINA_HOME%\bin\b
  

ootstrap.jar;%JAVA_HOME%\lib\tools.jar;e:\soap-2_0\;%CATALINA_
   HOME%\common\lib\soap.jar
   if %JSSE_HOME% ==  goto noJsse
   set
  

CP=%CP%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JS
   SE_HOME%\lib\jsse.jar
   :noJsse
   set CLASSPATH=%CP%;%CLASSPATH%
   Thanks again
   Caroline
  
  
  
  
  
  
 
 
 
 
 
 





Download Logos, Picture Messages  Ringtones for your mobile phone
Visit http://mobile.yahoo.co.in







Re: WSDL

2001-10-24 Thread Nirmal Mukhi


Hi,

You could try WSDL4J available at
http://oss.software.ibm.com/developerworks/projects/wsdl4j

Nirmal.


   
   
Ulf Reiman 
   
[EMAIL PROTECTED]   To: [EMAIL PROTECTED]   
   
icsson.se  cc:
   
Sent by:Subject: WSDL  
   
[EMAIL PROTECTED]  
   
on.se  
   
   
   
   
   
10/24/2001 03:09 AM
   
Please respond to  
   
soap-user  
   
   
   
   
   






Hello
Is someone now a java API when a can  take out some info from a wsdl
file?

e.g. from this file take out
http://services.xmethods.net:80/perl/soaplite.cgi.
Ifcan you send me some example to do that. or tell where a can find
some

Regards

Ulf Reiman


?xml version = 1.0?
definitions name = PingService targetNamespace =
http://www.xmethods.net/sd/PingService.wsdl; xmlns:tns =
http://www.xmetho
ds.net/sd/PingService.wsdl xmlns:xsd =
http://www.w3.org/1999/XMLSchema; xmlns:soap =
http://schemas.xmlsoap.org/wsdl/soap/;
xmlns = http://schemas.xmlsoap.org/wsdl/;
message name = pingHostRequest
part name = hostname type = xsd:string/
/message
message name = pingHostResponse
part name = return type = xsd:int/
/message
portType name = PingPortType
operation name = pingHost
input message = tns:pingHostRequest name =
pingHost/
output message = tns:pingHostResponse name =
pingHostResponse/
/operation
/portType
binding name = PingBinding type = tns:PingPortType
soap:binding style = rpc transport =
http://schemas.xmlsoap.org/soap/http/
operation name = pingHost
soap:operation soapAction =
urn:xmethodsSoapPing#pingHost/
input
soap:body use = encoded namespace =
urn:xmethodsSoapPing encodingStyle = http://schemas.xm
lsoap.org/soap/encoding//
/input
output
soap:body use = encoded namespace =
urn:xmethodsSoapPing encodingStyle = http://schemas.xm
lsoap.org/soap/encoding//
/output
/operation
/binding
service name = PingService
documentationPerforms a network PING of input
host/documentation
port name = PingPort binding = tns:PingBinding
soap:address location =
http://services.xmethods.net:80/perl/soaplite.cgi/
/port
/service
/definitions











Re: dynamic proxy generation

2001-09-17 Thread Nirmal Mukhi


Hi,

Yes  WSIF (Web Services Invocation Framework) can do this, see
http://www.alphaworks.ibm.com/tech/wsif

It can use Apache SOAP for invocation and also allows you to plug in your
own invokers so you can use the same API for customised bindings as well.

Nirmal.


   
   
Felix 
   
EichhornTo: [EMAIL PROTECTED]
   
[EMAIL PROTECTED]cc:   
   
 Subject: dynamic proxy generation 
   
09/17/2001 
   
09:03 AM   
   
Please respond 
   
to soap-user   
   
   
   
   
   



Hi!

Does anybody know if there are any (preferable open source) tools available
for dynamically creating a java proxy-object at runtime for accessing a web
service from a wsdl specification.
For example with the webservices-classes included in BEA WebLogic 6.1 you
can access a web service simply by using something like:

   WebServiceProxy proxy
= (WebServiceProxy)context.lookup(wsdlurl);
   SoapMethod method = proxy.getMethod(methodname);
   Object result = method.invoke(parameters);

Now I'm looking for something similiar that is able to create a proxy at
runtime and uses Apache SOAP for communication.

Thanks and regards,

Felix Eichhorn








Re: Client passes a Double, server receives a double?

2001-09-10 Thread Nirmal Mukhi


Hi,

Doubles are sent on the wire as type xsd:double which is deserialized as
the primitive double. See
http://marc.theaimsgroup.com/?l=soap-userm=99619205825314w=2 for a
similar discussion involving primitive (de)serialization.

Nirmal.


   
   
Roger L.  
   
CostelloTo: [EMAIL PROTECTED]  
   
costello@mitr   cc:   
   
e.org   Subject: Client passes a Double, server 
receives a   
  double?  
   
09/08/2001 
   
12:50 PM   
   
Please respond 
   
to soap-user   
   
   
   
   
   



Hi Folks,

I have written a very simple service to compute the square root of a
number:

  public Double getSqrt (Double num) {
  double d = num.doubleValue();
  double result = java.lang.Math.sqrt(d);
  return new Double(result);
  }

In my client I invoke this service, passing it a Double.

When I run the client I get this error message:

Fault String = Exception while handling service request:
SqrtService.getSqrt(double) -- no signature match

Apparently, SOAP is converting the Double class into a double simple
type.  Sure, enough, if I put this method in my service then it works:

  public Double getSqrt (double num) {
  double result = java.lang.Math.sqrt(num);
  return new Double(result);
  }

Note that the parameter is now of type double, rather than Double.

What is going on here?  The client passes a Double, but the server
receives a double ... why?  /Roger








Re: SV: WSDL parser?

2001-08-02 Thread Nirmal Mukhi


Hi,

You can find it at
http://oss.software.ibm.com/developerworks/projects/wsdl4j/ (accessible via
developerworks by following the link to Open Source Projects from the
main page).

Nirmal.


   
   
kim.schjefstad@t   
   
elenor.com To: [EMAIL PROTECTED]
   
   cc: 
   
08/02/2001 03:32   Subject: SV: WSDL parser?   
   
AM 
   
Please respond 
   
to soap-user   
   
   
   
   
   



I was looking for this WSDL4J project at
(http://www-106.ibm.com/developerworks/), but could not find any reference
to it. Is it part of the WSTK 2.3?

cheers,
-kims-

 -Opprinnelig melding-
 Fra: James Higginbotham [mailto:[EMAIL PROTECTED]]
 Sendt: 1. august 2001 19:51
 Til: [EMAIL PROTECTED]
 Emne: Re: WSDL parser?


 Thanks for the pointer, James! I was looking for this exact
 API and was
 surprised that I haven't run across it yet. Google,
 XMLhack.com, xml.com,
 and many other sites don't have anything pointing to it yet.
 The API looks
 very solid and exactly what I was going to have to write.

 The other links the various responses were interesting, but I
 didn't care
 for the APIs. The closest API that I liked was Graham's Glue
 API for WSDL,
 but his product is not distributable without licensing.

 Hope this helps others looking for something similiar in the future.

 James

 - Original Message -
 From: James M Snell [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 01, 2001 11:18 AM
 Subject: Re: WSDL parser?


  There is also the WSDL4J project at developerWorks, which
 will eventually
  serve as the reference implementation for the WSDL JSR.
 
  - James Snell
   Software Engineer, Emerging Technologies, IBM
   James M Snell/Fresno/IBM - [EMAIL PROTECTED]
  No, 'being created in God's image' does not mean I'll have this
  project done in seven days! - Anon.
 
  Please respond to [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  cc:
  Subject:Re: WSDL parser?
 
 
 
 
  Idoox provides WSDL API implementation as a part of  WASP
 Lite - (codename
  Stardust), that is free for commercial use (closed
 source). Stardust will
  be released on Monday.
 
  It will be available on our EAP site
http://www.idoox.com/eap/index.html.

 Cheers

 Radovan Janecek
 CTO, Idoox

 - Original Message -
 From:  James  Higginbotham
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 01, 2001 5:32  PM
 Subject: WSDL parser?

 Does anyone know who provides a WSDL parser that  is either free and
 redistributable or open source? I am looking for a nice,  clean API to
 parse WSDL files and obtain meta data about web services. I  looked at
the
 current CVS tree and couldn't locate one in the Apache SOAP  library.
 IBM's is not redistributable and thus can't be used for commercial
 purposes - the parser seems to be stable, though.

 Any help would be appreciated.

 Regards,
 James










Re: SOAP mapping of a bean with vectors

2001-07-19 Thread Nirmal Mukhi


Hi,

You will need to register serializers and deserializers for the Data1and
Data2 classes with the SOAP mapping registry; once you do that
BeanSerializer should be able to handle the MyBean class (assuming that it
has all the properties of a bean, including the required setters and
getters...)

Nirmal.


   

[EMAIL PROTECTED] 

 To: [EMAIL PROTECTED]  

07/19/2001   cc:   

08:46 AM Subject: SOAP mapping of a bean with 
vectors  
Please respond 

to soap-user   

   

   




Hello,

I´m a newbee and I´m trying to use a bean for a RPC. My bean has some
protected String values with 2 Vector classes. Each Vector holds only one
type of
Objects.
Example:
public class MyBean
{
   protected String test1;
   protected String test2;
   protected String test3;
   protected String test4;
   protected Vector collection1; //a collection of Data1
   protected Vector collection2; //a collection of Data2
}

public class Data1
{
   protected java.lang.String Link;
   protected java.lang.String LinkName;
}

public class Data2
{
   protected java.lang.String data;
   protected java.lang.String type;
}

Is it possible to serialize and deserialize the bean? I´ve read in the API,
that the VectorSerializer isn´t able to deserialize the Vector.

regards,
Darko

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 11!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a








Re: SOAP mapping of a bean with vectors

2001-07-19 Thread Nirmal Mukhi


Hi,

Are Data1 and Data2 beans as well? If not, you need to use an appropriate
serializer (maybe write a custom serializer for them) and register that
with the mapping registry. If they are beans what you have should work.

If you still have problems, could you post the error along with all the
information given by the TcpTunnelGui?

Nirmal.


   

[EMAIL PROTECTED] 

 To: [EMAIL PROTECTED]  

07/19/2001   cc:   

10:38 AM Subject: Re: SOAP mapping of a bean with 
vectors  
Please respond 

to soap-user   

   

   




Hi,

My beans have all getter and setter methods for their fields and some
further public methods for modifiying the fields.
I tried to use the SOAP mapping registry, but I cannot find my error.
I deployed the mappings to the server:
  isd:mappings
isd:map encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:x=urn:SOAPTest qname=x:MyBean
 javaType=com.ts.distributed_apps.MyBean

java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer

xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer/
isd:map encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:x=urn:SOAPTest qname=x:Data1
 javaType=com.ts.distributed_apps.Data1

java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer

xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer/
isd:map encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:x=urn:SOAPTest qname=x:Data2
 javaType=com.ts.distributed_apps.Data2

java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer

xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer/
  /isd:mappings
--
And my client:

URL url = new URL(http://localhost:8081/soap/servlet/rpcrouter;);

// Build the call.
Call call = new Call();
call.setTargetObjectURI(urn:SOAPTest);
call.setMethodName(server3);
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);

// Create the type mapping registry
SOAPMappingRegistry smr = new SOAPMappingRegistry();
BeanSerializer beanSer = new BeanSerializer();
// Map the types.
smr.mapTypes(
   Constants.NS_URI_SOAP_ENC,
   new QName urn:SOAPTest, com.ts.distributed_apps.MyBean),
   com.ts.distributed_apps.MyBean.class,
   beanSer,
   beanSer);
smr.mapTypes(
   Constants.NS_URI_SOAP_ENC,
   new QName(urn:SOAPTest, com.ts.distributed_apps.Data1),
   com.ts.distributed_apps.Data1.class,
   beanSer,
   beanSer);
smr.mapTypes(
   Constants.NS_URI_SOAP_ENC,
   new QName(urn:SOAPTest, com.ts.distributed_apps.Data2),
   com.ts.distributed_apps.Data2.class,
   beanSer,
   beanSer);
// and tell the Call object to use it..
call.setSOAPMappingRegistry(smr);

// Set the Parameters
Vector params = new Vector();
params.addElement(
   new Parameter(
 MyBean,
 com.ts.distributed_apps.MyBean.class,
 soapTest,
 null));//soapTest is my bean
call.setParams(params);

// Invoke the call.
Response resp = null;
try
{
   resp = call.invoke(url, );
}


Any suggestion, what I´m coding wrong?

regards,
Darko


 Hi,

 You will need to register serializers and deserializers for the Data1 and
 Data2 classes with the SOAP mapping registry; once you do that
 BeanSerializer should be able to handle the MyBean class (assuming that
  it
 has all the properties of a bean, including the required setters and
 getters...)

 Nirmal.







 Hello,

 I´m a newbee and I´m trying to use a bean for a RPC. My bean has so
 me
 protected String values with 2 Vector classes. Each Vector holds only o
 ne
 type of
 Objects.
 Example:
 public class MyBean
 {
protected String test1;
protected String test2;
protected String test3;
protected String test4;
protected Vector collection1; //a collection of Data1
protected Vector collection2; //a collection of Data2
 }

 public class Data1
 {
protected java.lang.String Link;
protected java.lang.String LinkName;
 }

 public class Data2
 {
protected java.lang.String data;

Re: TcpTunnelGui tool port question

2001-06-19 Thread Nirmal Mukhi


Hello Sachin,

You need to modify either the client or the server so that you can put
TcpTunnelGui between them. For example, you could leave your client as it
is but run weblogic at port 7002. Then run TcpTunnelGui with your
tunnelport as 7002 and listenport as 7001.

Nirmal.


   

sachin 

chaudhariTo: soap user list 
[EMAIL PROTECTED] 
chaudhsb2001@   cc:   

yahoo.com   Subject: TcpTunnelGui  tool port question 

   

06/19/2001 

08:39 PM   

Please respond 

to soap-user   

   

   




Hi,
I am not sure what port I mention as listenport in

java org.apache.soap.util.net.TcpTunnelGui listenport
tunnelhost tunnelport

My weblogic is running on localhost at port 7001, so
tunnelport will be 7001. My client will be sending
message to 7001 so my listenport will also be 7001 as
per listenport is the port that you want the tool to
listen on (i.e. the port which you will send your SOAP
messages to). But this won't work.

Can somebody please telll me how do see the soap
message of the sample examples.

Sachin

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/







RE: WSDL

2001-06-05 Thread Nirmal Mukhi


Hello,

Within the WSDL types section you can specify an XML schema type or an
XML element. See http://www.w3.org/XML/Schema for details on what you can
express using schema. I'm not sure of what support it has for built-in
complex types like arrays, hashtables, etc.

Nirmal.



   

Daniel

Kruler  To: [EMAIL PROTECTED]

dkruler@giant   cc:   

bear.comSubject: RE: WSDL 

   

06/05/2001 

01:16 PM   

Please respond 

to soap-user   

   

   




How do I specify arrays, vectors and hashtables in WSDL types?

-Original Message-
From: Nirmal Mukhi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: RE: WSDL



Hi,

Yes, that is the URI for a SOAP server with a SOAP service that supports
the port type that this port refers to. The location of the SOAP server
is
thus hardcoded in the port definition. But you could separate the
service
definition (which includes such port definitions) and keep it in a WSDL
separate from the one that provides the rest of the information, then
import the latter into the former. (I think tool support for import is
quite weak though).

Nirmal.




Daniel

Kruler  To:
[EMAIL PROTECTED]
dkruler@giant   cc:

bear.comSubject: RE: WSDL



06/05/2001

12:52 PM

Please respond

to soap-user








What location should be specified in  soap:address
location=http://localhost:4040/soap/servlet/rpcrouter/ in the
service?

Is the URL of the SOAP server hardcoded in WSDL?


-
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]