Re: usage of custom classes in requests

2001-06-05 Thread Trang K. Duong

Hi Ed,

I agree.  When I wrote my service using custom classes and realized that how 
clients from other galaxies could have the custom classes on hand.  I changed 
all i/o arguments to parameter: name/value.  It's long and tedious, but it's 
more versatile, and best of all, it works.

Thanks,
trang


> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> From: Ed Keen <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: usage of custom classes in requests
> Date: Tue, 5 Jun 2001 09:41:48 -0500 
> MIME-Version: 1.0
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> 
> I would like feedback on the whether or not any of you are using custom
> classes in your soap calls.  While it is definitely convenient on the Apache
> server side (with its serializers & deserializers), it places an extra
> burden on the client, because now they must have these custom classes on
> their side too.  For win32 clients, this becomes an even more difficult
> task.  Our company would probably wind up writing a DLL that would contain
> the analog of our custom classes for Windows.  So, whenever the interface
> for these classes changes (say we add a new required field), we would have
> to redistribute the client classes.  This could become a distribution
> nightmare.
> 
> I am wondering if it would be less trouble to just have the clients send all
> their data as separate parameters (which could make for a long parameter
> list, I know) to some proxy-type servlet on the server-side which would
> intercept the soap call, package that data into our custom classes, and send
> the request on its way.  It's more work on the server-side, but it would
> avoid the need to distribute these custom serailizable client classes.
> 
> Does any of that make sense?  What are the rest of you doing in regards to
> this?  Please don't tell me to use WSDL.  Been there.  Tried that.
> 
> Thanks,
> Ed
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


Trang K Duong
[EMAIL PROTECTED]


650-604-3989 (P)   650-604-2238 (F)
ELORET - Thermosciences Institute
NASA Ames Research Center
M/S 258-1
Moffett Field, CA 94035-1000
http://www.eloret.com/




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




RE: WSDL

2001-06-04 Thread Trang K. Duong

Hi there,

Here is the site where you can download java2WSDL: themindelectric.com
However, I don't like the way it generates your wsdl from your java class; i.e., 
it doesn't keep the name of your operation's arguments, instead, it give names 
like 'arg0, arg1,..'.

For example,

  




  

Hope it helps.
trang


> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> From: "Ding, Chengmin" <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: WSDL
> Date: Mon, 4 Jun 2001 18:02:00 -0400 
> MIME-Version: 1.0
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> 
> IBM WSTK 2.1 has the built-in functionality to convert .class into .wsdl
> It can be started using the command line tool: servicewizard.bat
> Then you can go through the generated .wsdl and depolyment decription file
> to find out the mappings.
> 
> HTH.
> 
> -Chengmin
> 
> -Original Message-
> From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 5:51 PM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL
> 
> 
> That is what I actually need: Java2WSDL generator.
> 
> I am confused about binding and service sections of WSDL.
> 
> 
> What should I have in  of every
> operation in BINDING?
> 
> What type of encoding should I specify in USE if I am passing primitive
> data types?
>
> How does  correspond to deployment descriptor?
> 
> What SOAP address should be used in 
> 
>   
>  ?
> 
> -Original Message-
> From: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 5:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: WSDL
> 
> 
> You might want to take a look at what the IBM WSTK or WSDE produce
> from a WSDL file to see how WSDL maps to the deployment descriptor
> and to the skeleton.
> 
> The other direction obviously has nothing to do with a deployment
> descriptor etc. as its going from a vanilla Java class to a WSDL
> file.
> 
> Sanjiva.
> 
> - Original Message - 
> From: "Daniel Kruler" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 04, 2001 5:31 PM
> Subject: RE: WSDL
> 
> 
> > I am trying to write WSDL from Java generator.
> > I am not very clear on how different parts of WSDL are mapped to
> > deployment descriptor and skeleton implementation.
> > 
> > 
> > -Original Message-
> > From: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 04, 2001 5:27 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: WSDL
> > 
> > 
> > No- methodNamespaceURI attribute of the soap:body binding element
> > is what goes in the ID of the deployment descriptor. Apache SOAP
> > currently only routes on the qualified name of the method element
> > for SOAP RPC.
> > 
> > Sanjiva.
> > 
> > - Original Message - 
> > From: "Daniel Kruler" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 04, 2001 5:18 PM
> > Subject: WSDL
> > 
> > 
> > > In WSDL does targetNamespace and name correspond to ID in deployment
> > > descriptor?
> > > 
> > >
> -
> > > 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]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


Trang K Duong
[EMAIL PROTECTED]


650-604-3989 (P)   650-604-2238 (F)
ELORET - Thermosciences Institute
NASA Ames Research Center
M/S 258-1
Moffett Field, CA 94035-1000
http://www.eloret.com/




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




RE: Set up SSL for SOAP Server

2001-05-30 Thread Trang K. Duong

Thanks to Alex and Cedric,

I also tried to install the JCE, but wasn't sure how to set the classpath, lib 
ext, and etc.., so I downloaded jdk1.3, and it works. 

thanks again.

> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> From: Cedric Bompart <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: Set up SSL for SOAP Server
> Date: Wed, 30 May 2001 10:11:59 +0100
> MIME-Version: 1.0
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> Content-Transfer-Encoding: 8bit
> X-MIME-Autoconverted: from quoted-printable to 8bit by sun556.nas.nasa.gov id 
CAA05539
> 
> just install the JCE library - http://java.sun.com/products/jce/
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 30 May 2001 02:59
> To: [EMAIL PROTECTED]; Trang K. Duong
> Subject: Re: Set up SSL for SOAP Server
> 
> 
> i got the same problem too.
>  u can try jdk1.3 to solve this problem.
> i am now just works very well.
> hope helps.
> 
> 
> IT DEP. Special Team-XML
>System Engineer
>Alex     陳照東
> Tel:+886-3-422-7151  Ext: 6024
> Mobile:+886-0939-011-336
> 
> [EMAIL PROTECTED]
> =Business to Business=
> - Original Message -
> From: "Trang K. Duong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 30, 2001 8:53 AM
> Subject: Set up SSL for SOAP Server
> 
> 
> Hi all,
> 
> I follow the recipe from
> http://xml.apache.org/soap/docs/install/FAQ_Tomcat_SOAP_SSL.html
> and at step 2a, I got the error message:
> "keytool error: KeyPairGenerator not available"
> 
> I use Sun jdk1.2 and tomcat 3.2.1.
> Any advice would be appreciated
> 
> Trang K Duong
> [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]


Trang K Duong
[EMAIL PROTECTED]


650-604-3989 (P)   650-604-2238 (F)
ELORET - Thermosciences Institute
NASA Ames Research Center
M/S 258-1
Moffett Field, CA 94035-1000
http://www.eloret.com/




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




RE: Illegal argument Exception.....

2001-05-30 Thread Trang K. Duong

Hi Barry,

We went across this problem couple days ago, and it's solved.  You might check 
back on more replies on this subject.  

Since the response result is an XML element, you need to:

call.setEncodingStyleURI(NS_URI_LITERAL_XML); 
...

params.addElement(new Parameter("acctId", java.lang.String.class,
acctId, Constants.NS_URI_SOAP_ENC));

Notes that indicate the encoding type to init the Parameter instead of 'null'

Good luck

> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> From: Barry Fortune <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: Illegal argument Exception.
> Date: Wed, 30 May 2001 14:12:43 -0700
> MIME-Version: 1.0
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> 
> We are experiencing exactly the same problem. My guess is that the encoding
> style applies to both inputs and outputs: the literal encoding style applies
> to the output (Element) but the input parameters in my case are strings, so
> the encoding does not apply. 
> 
> Can any developer please give some guidance!
> 
> -Original Message-
> From: Das, Kuntal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 25, 2001 3:22 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Illegal argument Exception.
> 
> 
> Guess what ? I tried that first time, and all it got was : 
> 
>  SOAPException caught *
> Caught SOAPException (SOAP-ENV:Client): I only know how to serialize an
> 'org.w3c
> .dom.Element'.
> 
> And my remote method does return an "Element", just like the
> AddressBook.getAllListings() method, only in my case I'm passing some
> parameters to the method. If I don't pass any parameters, then it's working
> fine as in the AddressBook example. But the moment I'm passing any
> parameters to the method it's not being able to serialize something, in this
> case the parameters. I tried all the NS_URI's listed in the Constants
> class...but none of them worked.
> 
> Thanks,
> Kuntal Das
> Charles Schwab & Co., Inc.
> Wireless Technology
> 45 Fremont, SF
> Email : [EMAIL PROTECTED]
> Phone : (415)667-4322
> Live life to the brim.
> 
> 
> 
> -Original Message-
> From: Trang K. Duong [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 25, 2001 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Illegal argument Exception.
> 
> 
> I think i know what you did wrong...at:
> 
> call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
> 
> use: Constants.NS_URI_LITERAL_XML instead beacause you get back not
> primitive 
> encoded type but the xml doc.
> 
> 
> 
> 
> 
> > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> > list-help: <mailto:[EMAIL PROTECTED]>
> > list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> > list-post: <mailto:[EMAIL PROTECTED]>
> > Delivered-To: mailing list [EMAIL PROTECTED]
> > Received-Date: Fri, 25 May 2001 18:04:57 -0400 (EDT)
> > From: "Das, Kuntal" <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Subject: RE: Illegal argument Exception.
> > Date: Fri, 25 May 2001 15:04:59 -0700
> > MIME-Version: 1.0
> > X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> > 
> > Nope, I used the Constants.String NS_URI_SOAP_ENC  as my Encoding URI,
> which
> > when I do a System.out.println, prints the sorrect URI, with the trailing
> > "/". Here's the main chunk of my codeit's very simple, but don't know
> > what I'm missing ?
> > 
> > Call call = new Call();
> > 
> > call.setTargetObjectURI("urn:sessionManagement");
> > call.setMethodName("signOn");
> > call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
> > Vector params = new Vector();
> > 
> > params.addElement(new Parameter("acctId", java.lang.String.class,
> > acctId, null));
> > params.addElement(new Parameter("wirelessId", java.lang.String.class,
> > wirelessId, null));
> > params.addElement(new Parameter("passwd", java.lang.String.class,
> > passwd, null)); 
> > params.addElement(new Parameter("software

Set up SSL for SOAP Server

2001-05-29 Thread Trang K. Duong

Hi all,

I follow the recipe from
http://xml.apache.org/soap/docs/install/FAQ_Tomcat_SOAP_SSL.html 
and at step 2a, I got the error message:
"keytool error: KeyPairGenerator not available"

I use Sun jdk1.2 and tomcat 3.2.1.  
Any advice would be appreciated

Trang K Duong
[EMAIL PROTECTED]




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




1999 XMLSchema:float v.s. 2000 XMLSchema:float

2001-05-26 Thread Trang K. Duong

Hi all,

What should I do if I received the exception message from the service server:

   FaultCode   = SOAP-ENV:Server
   FaultString = Type in message: http://www.w3.org/1999/XMLSchema:float does 
not match type in WSDL: http://www.w3.org/2000/10/XMLSchema:float

I use soap-2_1, xerces-1_2_3, and tomcat3.2.

Thank you very much

Trang K Duong
[EMAIL PROTECTED]


650-604-3989 (P)   650-604-2238 (F)
ELORET - Thermosciences Institute
NASA Ames Research Center
M/S 258-1
Moffett Field, CA 94035-1000
http://www.eloret.com/




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