RE: ant task to deploy Apache SOAP service

2001-08-02 Thread HariNam Singh

See
http://jakarta.apache.org/ant

It's a build tool. Compared to make, it's more platform independant, and
java friendly. It's a very cool tool, and easy to use.

-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 2:03 PM
To: [EMAIL PROTECTED]
Subject: Re: ant task to deploy Apache SOAP service



Ok hmm  what's an ant task?  I'm lower then basic, i don't even know
what it is. ;-)

Steeve...




HariNam Singh <[EMAIL PROTECTED]> on 02/08/2001 03:18:09 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  ant task to deploy Apache SOAP service


Hi,

did anyone write an ant task to deploy SOAP service to Apache SOAP server.

Some ant task, where I can speciry the RPC Router URL and descriptor file
would be nice. Then I could deploy the SOAP services as part of the build.

It's pretty simple to write. Though, it seems also so basic that it should
be written already.


Thanks,
hns








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 2.2. doesn't return the float and double values correctl y

2001-08-02 Thread Steeve Gilbert


I've checked your code but I never did JavaScript before so can't really
tell what's going wrong.  Did you try to put a TcpTunnel between your
browser and the soap service?  Maybe if you see the soap request that they
are exchanging that could give you some clue.

Good luck!

Steeve...





"Liaw, Wan-Bih" <[EMAIL PROTECTED]> on 02/08/2001 11:52:47 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: SOAP 2.2. doesn't return the float and double values correctl
   y



Steve,  Hi, haven't heard back about your comments/solutions about my codes
in the  following in my *previous* mail, hence I re-post it.

Also,  one more question for everyone.  What do we need to do, in order  to
access to an Apache web service accessible from outside the  firewalls?



-Original Message-
From: Liaw, Wan-Bih  [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 1:34  PM
To: [EMAIL PROTECTED]
Subject: RE: SOAP 2.2.  doesn't return the float and double values correctl



Sure. They are basically as the followings.  The  method 'theMethod' of the
class 'WhateverService' was deployed. They are done  in typical ways.
Please let me know if you see something missing?   Thanks.



server code:

package ...
import  ...
...
public class WhateverService implements iCCWhatever

...

public float theMethod(float c1, float c2, float  from_amount)
{
   return  c3*c1/c2;
}
...
}




Client Code:


test ...   












     Test Whatever  ...





    
  
 
 r1   
 
  


    
  
 
 r2   
 
  




    
  
 
 r3   
 
  

   
    
     
     
    
    












-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent:  Monday, July 30, 2001 12:53 PM
To: [EMAIL PROTECTED]
Subject: RE:  SOAP 2.2. doesn't return the float and double values
correctl



Can you post the code of your service and client  here.

Steeve...




"Liaw, Wan-Bih"  <[EMAIL PROTECTED]> on 30/07/2001 02:45:07 PM

Please  respond to [EMAIL PROTECTED]

To:    [EMAIL PROTECTED]
cc:    (bcc: Steeve  Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: SOAP 2.2. doesn't  return the float and double values
correctl



Well, I displayed the returned value of computation in a soap  request, and
it was always 0.0, no matter what.
The same program works  correctly in a Java application. Please let me know
how you think it  working?
Thanks!

-Original Message-
From: Steeve Gilbert  mailto:[EMAIL PROTECTED]]
Sent:  Monday, July 30, 2001 12:37 PM
To: [EMAIL PROTECTED]
Subject: Re:  SOAP 2.2. doesn't return the float and double  values
correctly



Hello!

It's ain't supposed to work  that way and this ain't a bug.  I've already
made a dump method that  add 2 double value and return a double.

If you post more info we'll  maybe be able to help you. ;-)

Steeve...




"Liaw,  Wan-Bih" <[EMAIL PROTECTED]> on 30/07/2001 02:26:40  PM

Please respond to [EMAIL PROTECTED]

To:    [EMAIL PROTECTED]
cc:    (bcc: Steeve  Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  SOAP 2.2. doesn't  return the  float and double values correctly



It's   always 0.0 in the response of a computation that involves float  or
dou

RE: ant task to deploy Apache SOAP service

2001-08-02 Thread Daryl Beattie

This is what I use:




http://localhost:8080/soap/servlet/rpcrouter"/>












You could modify it to make the URL and descriptor.xml variables


> -Original Message-
> From: HariNam Singh [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 02, 2001 5:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: ant task to deploy Apache SOAP service
> 
> 
> See
> http://jakarta.apache.org/ant
> 
> It's a build tool. Compared to make, it's more platform 
> independant, and
> java friendly. It's a very cool tool, and easy to use.
> 
> -Original Message-
> From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 02, 2001 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: ant task to deploy Apache SOAP service
> 
> 
> 
> Ok hmm  what's an ant task?  I'm lower then basic, i 
> don't even know
> what it is. ;-)
> 
> Steeve...
> 
> 
> 
> 
> HariNam Singh <[EMAIL PROTECTED]> on 02/08/2001 03:18:09 PM
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)
> 
> Subject:  ant task to deploy Apache SOAP service
> 
> 
> Hi,
> 
> did anyone write an ant task to deploy SOAP service to Apache 
> SOAP server.
> 
> Some ant task, where I can speciry the RPC Router URL and 
> descriptor file
> would be nice. Then I could deploy the SOAP services as part 
> of the build.
> 
> It's pretty simple to write. Though, it seems also so basic 
> that it should
> be written already.
> 
> 
> Thanks,
> hns
> 
> 
> 
> 
> 



Re: Xerces XML parsing SOAP response problem

2001-08-02 Thread Steeve Gilbert


Using this code I've reach the last node.

Good luck.

Steeve...

parser = new DOMParser();
String xmlString = "" +
   "http://schemas.xmlsoap.org/soap/envelope/\"; " +
   "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; " +
   "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\";>" +
   "http://telemetrytech.net/VnocngWebService\";>" +
   "15" +
   "";

try {
  parser.parse(new InputSource(new StringReader(xmlString)));

} catch (SAXException se) {
se.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
}

Document document = parser.getDocument();

//Document Info
System.out.println(document.getChildNodes().getLength());

//Result Info
Node result = document.getFirstChild();
System.out.print((result.getChildNodes().getLength()) + " in ");
System.out.println(result.getNodeName());

//Accessing Essaie
Node essaie = result.getFirstChild();
System.out.print(essaie.getChildNodes().getLength() + " in ");
System.out.println(essaie.getNodeName());

//Accessing Vnoc
Node vnoc = essaie.getFirstChild();
System.out.print(vnoc.getChildNodes().getLength() + " in ");
System.out.println(vnoc.getNodeName());

//Accessing Vnoc
Node numb = vnoc.getFirstChild();
System.out.print(numb.getChildNodes().getLength() + " in ");
System.out.println(numb.getNodeName());





Pete Roth <[EMAIL PROTECTED]> on 01/08/2001 04:36:23 PM

Please respond to [EMAIL PROTECTED]

To:   "Soap-dev List (E-mail)" <[EMAIL PROTECTED]>, "Soap-user list
  (E-mail)" <[EMAIL PROTECTED]>
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  Xerces XML parsing SOAP response problem


I am using the XML returned from a soap call with a DOMParser to read the
information returned.  I have a SOAP method that returns a lot of data
(hence why I'm doing it this way) but right now I am trying to get it to
work with a simple SOAP method that returns one element of data.  The XML
returned that is passed to the Parser is listed below along with my client
snippet that attempts to navigate the XML tree and print out the result.
For some reason when I try and get the child of the "SOAP:Body" node, I get
a null pointer.  If I call hasChildNodes() on the body node, I get false
returned.  There is, if you look at the XML being parsed below, more data
in
the Body.

Does anyone know why this is happening?  What I could do to fix this?  Any
help would be greatly appreciated.

Thanks.

Pete


*
XML that I am trying to parse




http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XM
LSchema">
  
http://telemetrytech.net/VnocngWebService";>
  15

  








*
Client Snip



//XML data is in the String "xmlString" at this point, if I print it out it
contains the needed
//data.

//Now create the DOM doc from the XML
DOMParser parser = new DOMParser();

parser.setFeature("
http://apache.org/xml/features/validation/schema-full-che
cking",true);
parser.setFeature("http://apache.org/xml/features/validation/schema",true);
parser.setFeature("http://xml.org/sax/features/validation",true);

//parse the XML (xml is in the String "xmlString"
parser.parse(new InputSource(new StringReader(xmlString)));

Document doc = parser.getDocument();
Element root = doc.getDocumentElement();

System.out.print("root="+root.getNodeName()+" ");
System.out.println("xmlns:soap="+
   root.getAttribute("xmlns:soap") +
   " hasChildren="+root.hasChildNodes());
System.out.println("
root.getFirstChild().getNodeName()="+root.getFirstChild().getNodeName());
System.out.println("
firstChildHasChildren?="+root.getFirstChild().hasChildNodes());









Peter Roth
Telemetry Technologies Inc.
p: 404.231.0021 ext. 1290
e: [EMAIL PROTECTED]










Re: SV: WSDL parser?

2001-08-02 Thread keith.watt



Hi

Just to pick up on this again.  Is there an open source Java2WSDL implementation
which allows access to the Java source code?

cheers,

Keith





[EMAIL PROTECTED] on 02/08/2001 07:32:02

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Keith Watt/LON/WLB)
Subject:  SV: WSDL parser?



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




  Best Regards,

  --
  Keith Watt
  IT Global Architecture Team
  WestLB Panmure
  35 New Broad St
  London EC2M 1NH
  UK

  Tel.: +44 (0)207 444 6850
  Email: [EMAIL PROTECTED]
  --






 
 
 
Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer
den im Adressfeld ausgewiesenen Adressaten bestimmt.
Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir um eine kurze Nachricht. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die
Echtheit oder Vollstaendigkeit der in dieser Nachricht
enthaltenen Informationen garantieren koennen, schliessen wir
die rechtliche Verbindlichkeit der vorstehenden Erklaerungen
und Aeusserungen aus. Wir verweisen in diesem Zusammenhang
auch auf die  fuer die Bank geltenden Regelungen ueber die
Verbindlichkeit von Willenserklaerungen mit verpflichtendem
Inhalt, die in den bankueblichen Unterschriftenverzeichnissen
bekannt gemacht werden.

This message is confidential and may be privileged. It is
intended solely for the named  addressee. If you are not the
intended recipient please inform us. Any unauthorised
dissemination, distribution or copying hereof is prohibited.
As we cannot guarantee the  genuineness or completeness of
the information contained in this message, the statements
set forth above are not legally binding. In connection
therewith, we also refer to the governing regulations of
WestLB concerning signatory authority published in the
standard bank signature lists with regard to the legally
binding effect of statements made with the intent to
obligate WestLB.
 



RE: Xerces XML parsing SOAP response problem

2001-08-02 Thread Steeve Gilbert


I don't think you can use your WSDL to validate your XML.  However you can
surely validate it with a XML Schema.  I've never done it but look here...
http://xml.apache.org/xerces-j/schema.html
I guess it's possible.

Good luck!

Steeve...




Pete Roth <[EMAIL PROTECTED]> on 02/08/2001 12:07:33 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: Xerces XML parsing SOAP response problem


Ok, I checked out the tutorial below, which helped a lot, yet it doesn't
deal with schemas, only DTDs.

I am getting blank text nodes in my DOM document since I am not using a DTD
when parsing my XML (listed below).  Since the WSDL file defines the XML
returned from the Service (this is the XML I'm parsing) is there anyway,
using Xerces, that I may use the WSDL file to validate my XML so that the
blank lines (new lines actually) are ignored and not added to the DOM?

Thanks.

Peter Roth
Telemetry Technologies Inc.
p: 404.231.0021 ext. 1290
e: [EMAIL PROTECTED]


-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 10:18 AM
To: [EMAIL PROTECTED]
Subject: RE: Xerces XML parsing SOAP response problem




>That code sample didn't print the data I wanted from the
>response XML (I dunno if you even meant it to)

Nope. ;-)  I just tought you would be able to do the rest.

>Maybe that node is just the name and attributes of that XML element?

Not really.  Attributes and name are get with getAttributes() and
getNodeName().  The "phantom" Element you encounter is probably a space or
a linefeed that was in the XML string.  Those element are not ignored by
the parser unless you provide a DTD so the parser can identify the
whitespace that can be discarded.  Without DTD the parser puts everything
in the DOM.  Hope it help, if not check the tutorial...
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/
I did it and it help me a lot.

bye!

Steeve...





Pete Roth <[EMAIL PROTECTED]> on 02/08/2001 09:56:12 AM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: Xerces XML parsing SOAP response problem


Thanks Steve!  That code sample didn't print the data I wanted from the
response XML (I dunno if you even meant it to) but it showed me how I could
get the data (15 in the example) out of the "vnoc_doSOAPTestResult" node.
Thank you so much for all your help.

The mistake I made was using by using
"getFirstChild().getFirstChild()...etc".  Yet, the node that contains the
children was always the second node.  So I need to do,
root.getChildNodes.item(1).getChildNodes.item(1)...etc.

I only just discovered this so I'm not even sure what that first node is.
Maybe that node is just the name and attributes of that XML element?  Hmmm,
I'll have to do some more investigation.  I now know what to do though.

Thanks again Steve and everyone who's helped me on this group.

Peter Roth
Telemetry Technologies Inc.
p: 404.231.0021 ext. 1290
e: [EMAIL PROTECTED]


-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 8:38 AM
To: [EMAIL PROTECTED]
Subject: Re: Xerces XML parsing SOAP response problem



Using this code I've reach the last node.

Good luck.

Steeve...

parser = new DOMParser();
String xmlString = "" +
   "http://schemas.xmlsoap.org/soap/envelope/\"; " +
   "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; " +
   "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\";>" +
   "http://telemetrytech.net/VnocngWebService\";>" +
   "15" +
   "";

try {
  parser.parse(new InputSource(new StringReader(xmlString)));

} catch (SAXException se) {
se.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
}

Document document = parser.getDocument();

//Document Info
System.out.println(document.getChildNodes().getLength());

//Result Info
Node result = document.getFirstChild();
System.out.print((result.getChildNodes().getLength()) + " in ");
System.out.println(result.getNodeName());

//Accessing Essaie
Node essaie = result.getFirstChild();
System.out.print(essaie.getChildNodes().getLength() + " in ");
System.out.println(essaie.getNodeName());

//Accessing Vnoc
Node vnoc = essaie.getFirstChild();
System.out.print(vnoc.getChildNodes().getLength() + " in ");
System.out.println(vnoc.getNodeName());

//Accessing Vnoc
Node numb = vnoc.getFirstChild();
System.out.print(numb.getChildNodes().getLength() + " in ");
System.out.println(numb.getNodeName());





Pete Roth <[EMAIL PROTECTED]> on 01/08/2001 04:36:23 PM

Please respond to [EMAIL PROTECTED]

To:   "Soap-dev List (E-mail)" <[EMAIL PROTECTED]>, "Soap-user list
  (E-mail)" <[EMAIL PROTECTED]>
c

RE: regd Soap messages from client and server in Apache SOAP

2001-08-02 Thread Steeve Gilbert


The OBJECT_URI cannot be blank.  OBJECT_URI indicate the namespace in which
your service is.  Yes you can use
"http://www.w3.org/1999/XMLSchema"; but I would not recommend you since it
already means something else (XML Schema version).  Use something like
"urn:MyWebService".

The ACTION_URI can be blank when you use Apache Soap all the way.  But if
you use other soap implementations you'll probably have to give ACTION_URI
a value.

Good luck!

Steeve...




Jyothi K <[EMAIL PROTECTED]> on 02/08/2001 03:02:37 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: regd Soap messages from client and server in Apache SOAP


Hi,
   What should the ACTION_URI and OBJECT_URI be? Can it be blank. And
even the OBJECT_URI, can that be http://www.w3.org/1999/XMLSchema.
Please let me know.

Thanks,
Jyothi

-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 6:40 PM
To: [EMAIL PROTECTED]
Subject: Re: regd Soap messages from client and server in Apache SOAP



Hi!

 You know you don't have to build up all your soap message by yourself,
don't you?  Check out a simple client like this one...
http://www.xmethods.net/download/servicefiles/TempClient.java  I know it's
not an "add" method but you can get a good idea how to do a Soap request
with Apache Soap.  And a server is only a class with ordinary method.  It
doesn't even have to know it's called thru soap.  It only have to be on a
server that is soap aware.

10>

By the way, I think on this line there's a ">" that must not be there after
the "10".

any questions?

Steeve...





Jyothi K <[EMAIL PROTECTED]> on 01/08/2001 06:20:34 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  regd Soap messages from client and server in Apache SOAP



> Hi ,
>  Lets take the example of adding two numbers.I want a Java Server
> and Java client using Apache SOAP. I want a server that will have a
method
> add. This method should take the incoming soap mesage and parse it and
get
> the two integer values and then return a soap message with the sum. I
want
> to write a client that sends the soap message to server and recieves back
> the soap message. To write the soap message i am using the Envelope and
> Body objects and to post the Message objects. But i am not very clear
> about how to write my soap envelope and post it. I am giving you the
> details fo evrything below. Could you just help me out by giving a sample
> application of client and server for this example. I am trying but in the
> server side it is recognising the content type as text/html instead of
> text.xml and so it is not finding the correct urn in the server i guess.
I
> would really appreciate if someone gives me a detailed explanation of
what
> is to be done.
>
>
>
> Here is the soap envelope that i want to transmit to the server and again
> recieve the soap envelope as response.
>
>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>   xmlns:xsd="http://www.w3.org/1999/xmlschema";
>   xmlns:xsi="http://www.w3.org/1999/xmlschema-instance";
>   SOAP-ENV: encodingstyle = "http://schemas.xmlsoap.org/soap/encoding/";>
>
>   
>   
>   10>
>   20>
>   
>   
> 
>
>
> Here is the soap envelope that the server will send to the client.
>
>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>   xmlns:xsd="http://www.w3.org/1999/xmlschema";
>   xmlns:xsi="http://www.w3.org/1999/xmlschema-instance";
>   SOAP-ENV: encodingstyle = "http://schemas.xmlsoap.org/soap/encoding/";>
>
>   
>"http://schemas.xmlsoap.org/soap/encoding/";>
>   30>
>   
>   
> 
>
>
> Thanks in advance
> Jyothi
>














Writing my own deserializer

2001-08-02 Thread Wilkins, Craig

I am looking for some advice on how to write my own deserializer.  

At the very least I am looking for some high-level guidance or steps on how
to write my own deserializer for XML Elements, but if you think that you can
help with my problem, please offer additional suggestions.

My Problem:
Our SOAP service accepts one XML Element parameter.  When this Element is
serialized passed over the wire and then deserialized at the server, all of
the carriage returns that were in the data have been replaced with spaces.
The data that is being passed is well formatted with and carriage returns,
which need to be maintained and entered into the back-end system by our SOAP
service.   

It appears through the TCPTunnelGUI that the carriage returns are still
there on the wire, but if my SOAP service prints them out, the entire text
is on one line and all bunched together.

Example - The following input:
"Steps to send email
1)  Type the text that you want to send
2)  Send the email"

Turns into the following output:
"Steps to send email 1)  Type the text that you want to send 2)  Send the
email"

My thought is that I have to write my own deserializer because there is a
bug that replaces carriage returns with spaces in the default one.  I am
looking for assistance in going about this task.  

Additional helpful info would be the SOAP class file that is responsible for
the default deserializing of XML Elements?  I think that if I found this, I
could maybe find the bug or use it to model my own deserializer after.

Please help!!



Re: Working with Xerces

2001-08-02 Thread Steeve Gilbert


If you're exchanging XML instead of playing with conversion String<->XML
try sending Element thru soap with
call.setEncodingStyleURI (Constants.NS_URI_LITERAL_XML);

You won't need to do the convertion at each end.  That will be done automatically.

Thanks to Craig for opening my eyes on this.

Steeve...





"Bardman, Jody" <[EMAIL PROTECTED]> on 02/08/2001 03:14:42 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  Working with Xerces




My SOAP client can build a simple request and send it to the SOAP server
and then receive the response.
I can parse the data.

Now comes the next step:
1). Send a request
2). Receive the XML response.
3). Save the XML.
4). Parse some of the XML response.
5). Add new XML data to what was saved for a new request.
6). Send the new request.

So basically I want to get the response, add to it, and send it out again.

Here is how I was parsing the simple response:
  DOMParser parser = new DOMParser();  //Create a parser
  parser.parse(new InputSource(new StringReader(XMLPref)));  //Create the
DOM
  Document doc = parser.getDocument();

I was hoping to add data by way of the doc/node classes.

How do I get the full XML out of the Document class so I can use it for a
new request?

Thanks
Jody










RE: SOAP 2.2. doesn't return the float and double values correctl y

2001-08-02 Thread Liaw, Wan-Bih

Yes, I did try to use TcpTunnel to reveal more insights but it didn't help
much.

I had also tried to log the stuff into a file but this part didn't work with
the web service, although it works in the regular Java codes.

I just think that SOAP isn't ready for anything serious.  Any objections on
this, please let me know.

Thanks!


-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 11:55 AM
To: [EMAIL PROTECTED]
Subject: RE: SOAP 2.2. doesn't return the float and double values
correctl y



I've checked your code but I never did JavaScript before so can't really
tell what's going wrong.  Did you try to put a TcpTunnel between your
browser and the soap service?  Maybe if you see the soap request that they
are exchanging that could give you some clue.

Good luck!

Steeve...





"Liaw, Wan-Bih" <[EMAIL PROTECTED]> on 02/08/2001 11:52:47 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: SOAP 2.2. doesn't return the float and double values correctl
   y



Steve,  Hi, haven't heard back about your comments/solutions about my codes
in the  following in my *previous* mail, hence I re-post it.

Also,  one more question for everyone.  What do we need to do, in order  to
access to an Apache web service accessible from outside the  firewalls?



-Original Message-
From: Liaw, Wan-Bih  [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 1:34  PM
To: [EMAIL PROTECTED]
Subject: RE: SOAP 2.2.  doesn't return the float and double values correctl



Sure. They are basically as the followings.  The  method 'theMethod' of the
class 'WhateverService' was deployed. They are done  in typical ways.
Please let me know if you see something missing?   Thanks.



server code:

package ...
import  ...
...
public class WhateverService implements iCCWhatever

...

public float theMethod(float c1, float c2, float  from_amount)
{
   return  c3*c1/c2;
}
...
}




Client Code:


test ...   












     Test Whatever  ...





    
  
 
 r1   
 
  


    
  
 
 r2   
 
  




    
  
 
 r3   
 
  

   
    
     
     
    
    












-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent:  Monday, July 30, 2001 12:53 PM
To: [EMAIL PROTECTED]
Subject: RE:  SOAP 2.2. doesn't return the float and double values
correctl



Can you post the code of your service and client  here.

Steeve...




"Liaw, Wan-Bih"  <[EMAIL PROTECTED]> on 30/07/2001 02:45:07 PM

Please  respond to [EMAIL PROTECTED]

To:    [EMAIL PROTECTED]
cc:    (bcc: Steeve  Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: SOAP 2.2. doesn't  return the float and double values
correctl



Well, I displayed the returned value of computation in a soap  request, and
it was always 0.0, no matter what.
The same program works  correctly in a Java application. Please let me know
how you think it  working?
Thanks!

-Original Message-
From: Steeve Gilbert  mailto:[EMAIL PROTECTED]]
Sent:  Monday, July 30, 2001 12:37 PM
To: [EMAIL PROTECTED]
Subject: Re:  SOAP 2.2. doesn't return the float and double  values
correctly



Hello!

I

RE: Xerces XML parsing SOAP response problem

2001-08-02 Thread Pete Roth

Ok, I checked out the tutorial below, which helped a lot, yet it doesn't
deal with schemas, only DTDs.  

I am getting blank text nodes in my DOM document since I am not using a DTD
when parsing my XML (listed below).  Since the WSDL file defines the XML
returned from the Service (this is the XML I'm parsing) is there anyway,
using Xerces, that I may use the WSDL file to validate my XML so that the
blank lines (new lines actually) are ignored and not added to the DOM?  

Thanks.

Peter Roth
Telemetry Technologies Inc.
p: 404.231.0021 ext. 1290
e: [EMAIL PROTECTED]


-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 10:18 AM
To: [EMAIL PROTECTED]
Subject: RE: Xerces XML parsing SOAP response problem




>That code sample didn't print the data I wanted from the
>response XML (I dunno if you even meant it to)

Nope. ;-)  I just tought you would be able to do the rest.

>Maybe that node is just the name and attributes of that XML element?

Not really.  Attributes and name are get with getAttributes() and
getNodeName().  The "phantom" Element you encounter is probably a space or
a linefeed that was in the XML string.  Those element are not ignored by
the parser unless you provide a DTD so the parser can identify the
whitespace that can be discarded.  Without DTD the parser puts everything
in the DOM.  Hope it help, if not check the tutorial...
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/
I did it and it help me a lot.

bye!

Steeve...





Pete Roth <[EMAIL PROTECTED]> on 02/08/2001 09:56:12 AM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: Xerces XML parsing SOAP response problem


Thanks Steve!  That code sample didn't print the data I wanted from the
response XML (I dunno if you even meant it to) but it showed me how I could
get the data (15 in the example) out of the "vnoc_doSOAPTestResult" node.
Thank you so much for all your help.

The mistake I made was using by using
"getFirstChild().getFirstChild()...etc".  Yet, the node that contains the
children was always the second node.  So I need to do,
root.getChildNodes.item(1).getChildNodes.item(1)...etc.

I only just discovered this so I'm not even sure what that first node is.
Maybe that node is just the name and attributes of that XML element?  Hmmm,
I'll have to do some more investigation.  I now know what to do though.

Thanks again Steve and everyone who's helped me on this group.

Peter Roth
Telemetry Technologies Inc.
p: 404.231.0021 ext. 1290
e: [EMAIL PROTECTED]


-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 8:38 AM
To: [EMAIL PROTECTED]
Subject: Re: Xerces XML parsing SOAP response problem



Using this code I've reach the last node.

Good luck.

Steeve...

parser = new DOMParser();
String xmlString = "" +
   "http://schemas.xmlsoap.org/soap/envelope/\"; " +
   "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; " +
   "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\";>" +
   "http://telemetrytech.net/VnocngWebService\";>" +
   "15" +
   "";

try {
  parser.parse(new InputSource(new StringReader(xmlString)));

} catch (SAXException se) {
se.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
}

Document document = parser.getDocument();

//Document Info
System.out.println(document.getChildNodes().getLength());

//Result Info
Node result = document.getFirstChild();
System.out.print((result.getChildNodes().getLength()) + " in ");
System.out.println(result.getNodeName());

//Accessing Essaie
Node essaie = result.getFirstChild();
System.out.print(essaie.getChildNodes().getLength() + " in ");
System.out.println(essaie.getNodeName());

//Accessing Vnoc
Node vnoc = essaie.getFirstChild();
System.out.print(vnoc.getChildNodes().getLength() + " in ");
System.out.println(vnoc.getNodeName());

//Accessing Vnoc
Node numb = vnoc.getFirstChild();
System.out.print(numb.getChildNodes().getLength() + " in ");
System.out.println(numb.getNodeName());





Pete Roth <[EMAIL PROTECTED]> on 01/08/2001 04:36:23 PM

Please respond to [EMAIL PROTECTED]

To:   "Soap-dev List (E-mail)" <[EMAIL PROTECTED]>, "Soap-user list
  (E-mail)" <[EMAIL PROTECTED]>
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  Xerces XML parsing SOAP response problem


I am using the XML returned from a soap call with a DOMParser to read the
information returned.  I have a SOAP method that returns a lot of data
(hence why I'm doing it this way) but right now I am trying to get it to
work with a simple SOAP method that returns one element of data.  The XML
returned that is passed to the Parser is listed below along with my client
snippet that attempt

RE: regd Soap messages from client and server in Apache SOAP

2001-08-02 Thread Steeve Gilbert


Did you create a WSDL file for your C++ client?  I don't know if it needs
one anyway, it's just that it work that way with Ms Soap Toolkit.   I don't
know about the Scott Seely's simple soap library.

Steeve...





Jyothi K <[EMAIL PROTECTED]> on 02/08/2001 07:15:03 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: regd Soap messages from client and server in Apache SOAP


Hi,
I saw the interop service and client and had a idea of how they are
doing. In java i am able to create the server and client for Add method.
Now
i am testing the C++ client with the java server for the same add method.
but it is not recognizing the method or file in server. I returns the
response HTTP 404 file not found error adn content type is text/html.
content type should be text/xml right? I am not able to understand why this
is happening. I am using Scott Seely's simple soap library. If you have any
idea please let me know.

Thanks,
Jyothi

-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 6:40 PM
To: [EMAIL PROTECTED]
Subject: Re: regd Soap messages from client and server in Apache SOAP



Hi!

 You know you don't have to build up all your soap message by yourself,
don't you?  Check out a simple client like this one...
http://www.xmethods.net/download/servicefiles/TempClient.java  I know it's
not an "add" method but you can get a good idea how to do a Soap request
with Apache Soap.  And a server is only a class with ordinary method.  It
doesn't even have to know it's called thru soap.  It only have to be on a
server that is soap aware.

10>

By the way, I think on this line there's a ">" that must not be there after
the "10".

any questions?

Steeve...





Jyothi K <[EMAIL PROTECTED]> on 01/08/2001 06:20:34 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  regd Soap messages from client and server in Apache SOAP



> Hi ,
>  Lets take the example of adding two numbers.I want a Java Server
> and Java client using Apache SOAP. I want a server that will have a
method
> add. This method should take the incoming soap mesage and parse it and
get
> the two integer values and then return a soap message with the sum. I
want
> to write a client that sends the soap message to server and recieves back
> the soap message. To write the soap message i am using the Envelope and
> Body objects and to post the Message objects. But i am not very clear
> about how to write my soap envelope and post it. I am giving you the
> details fo evrything below. Could you just help me out by giving a sample
> application of client and server for this example. I am trying but in the
> server side it is recognising the content type as text/html instead of
> text.xml and so it is not finding the correct urn in the server i guess.
I
> would really appreciate if someone gives me a detailed explanation of
what
> is to be done.
>
>
>
> Here is the soap envelope that i want to transmit to the server and again
> recieve the soap envelope as response.
>
>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>   xmlns:xsd="http://www.w3.org/1999/xmlschema";
>   xmlns:xsi="http://www.w3.org/1999/xmlschema-instance";
>   SOAP-ENV: encodingstyle = "http://schemas.xmlsoap.org/soap/encoding/";>
>
>   
>   
>   10>
>   20>
>   
>   
> 
>
>
> Here is the soap envelope that the server will send to the client.
>
>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>   xmlns:xsd="http://www.w3.org/1999/xmlschema";
>   xmlns:xsi="http://www.w3.org/1999/xmlschema-instance";
>   SOAP-ENV: encodingstyle = "http://schemas.xmlsoap.org/soap/encoding/";>
>
>   
>"http://schemas.xmlsoap.org/soap/encoding/";>
>   30>
>   
>   
> 
>
>
> Thanks in advance
> Jyothi
>














Re: boolean value interpretation by Apache SOAP

2001-08-02 Thread Sam Ruby

Fixed in the latest CVS.  You can find prebuilt binaries at
http://xml.apache.org/dist/soap/nightly/.

- Sam Ruby




RE: Xerces XML parsing SOAP response problem

2001-08-02 Thread Steeve Gilbert



>That code sample didn't print the data I wanted from the
>response XML (I dunno if you even meant it to)

Nope. ;-)  I just tought you would be able to do the rest.

>Maybe that node is just the name and attributes of that XML element?

Not really.  Attributes and name are get with getAttributes() and
getNodeName().  The "phantom" Element you encounter is probably a space or
a linefeed that was in the XML string.  Those element are not ignored by
the parser unless you provide a DTD so the parser can identify the
whitespace that can be discarded.  Without DTD the parser puts everything
in the DOM.  Hope it help, if not check the tutorial...
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/
I did it and it help me a lot.

bye!

Steeve...





Pete Roth <[EMAIL PROTECTED]> on 02/08/2001 09:56:12 AM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  RE: Xerces XML parsing SOAP response problem


Thanks Steve!  That code sample didn't print the data I wanted from the
response XML (I dunno if you even meant it to) but it showed me how I could
get the data (15 in the example) out of the "vnoc_doSOAPTestResult" node.
Thank you so much for all your help.

The mistake I made was using by using
"getFirstChild().getFirstChild()...etc".  Yet, the node that contains the
children was always the second node.  So I need to do,
root.getChildNodes.item(1).getChildNodes.item(1)...etc.

I only just discovered this so I'm not even sure what that first node is.
Maybe that node is just the name and attributes of that XML element?  Hmmm,
I'll have to do some more investigation.  I now know what to do though.

Thanks again Steve and everyone who's helped me on this group.

Peter Roth
Telemetry Technologies Inc.
p: 404.231.0021 ext. 1290
e: [EMAIL PROTECTED]


-Original Message-
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 8:38 AM
To: [EMAIL PROTECTED]
Subject: Re: Xerces XML parsing SOAP response problem



Using this code I've reach the last node.

Good luck.

Steeve...

parser = new DOMParser();
String xmlString = "" +
   "http://schemas.xmlsoap.org/soap/envelope/\"; " +
   "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"; " +
   "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\";>" +
   "http://telemetrytech.net/VnocngWebService\";>" +
   "15" +
   "";

try {
  parser.parse(new InputSource(new StringReader(xmlString)));

} catch (SAXException se) {
se.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
}

Document document = parser.getDocument();

//Document Info
System.out.println(document.getChildNodes().getLength());

//Result Info
Node result = document.getFirstChild();
System.out.print((result.getChildNodes().getLength()) + " in ");
System.out.println(result.getNodeName());

//Accessing Essaie
Node essaie = result.getFirstChild();
System.out.print(essaie.getChildNodes().getLength() + " in ");
System.out.println(essaie.getNodeName());

//Accessing Vnoc
Node vnoc = essaie.getFirstChild();
System.out.print(vnoc.getChildNodes().getLength() + " in ");
System.out.println(vnoc.getNodeName());

//Accessing Vnoc
Node numb = vnoc.getFirstChild();
System.out.print(numb.getChildNodes().getLength() + " in ");
System.out.println(numb.getNodeName());





Pete Roth <[EMAIL PROTECTED]> on 01/08/2001 04:36:23 PM

Please respond to [EMAIL PROTECTED]

To:   "Soap-dev List (E-mail)" <[EMAIL PROTECTED]>, "Soap-user list
  (E-mail)" <[EMAIL PROTECTED]>
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  Xerces XML parsing SOAP response problem


I am using the XML returned from a soap call with a DOMParser to read the
information returned.  I have a SOAP method that returns a lot of data
(hence why I'm doing it this way) but right now I am trying to get it to
work with a simple SOAP method that returns one element of data.  The XML
returned that is passed to the Parser is listed below along with my client
snippet that attempts to navigate the XML tree and print out the result.
For some reason when I try and get the child of the "SOAP:Body" node, I get
a null pointer.  If I call hasChildNodes() on the body node, I get false
returned.  There is, if you look at the XML being parsed below, more data
in
the Body.

Does anyone know why this is happening?  What I could do to fix this?  Any
help would be greatly appreciated.

Thanks.

Pete


*
XML that I am trying to parse





http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XM
LSchema">
  
http://telemetrytech.net/VnocngWebService";>
  

Re: SV: WSDL parser?

2001-08-02 Thread James M Snell

Go to the developerWorks Open Source Zone and you'll find the link.

- 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:SV: WSDL parser?



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: error running the messaging sample

2001-08-02 Thread Steeve Gilbert


For question 1:
 How is your server?  Normally, the server isn't  suppose to know it's
been called thru soap.  So why do you want to play in the Body of the
Envelope?  The server should look like any other method.  No difference
from a normal method.

bye!

Steeve...




Kavitha Srinivasan <[EMAIL PROTECTED]> on 01/08/2001 06:15:16 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)

Subject:  error running the messaging sample




Hello:

Two newbie questions -thank you for your patience.

1. How do I get the xml on the server side where such xml was sent as part
of the soapenvelope? Is it Envelope.getBody()?

2. I get the following error when trying to run the messaging sample:



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:Client
No Deserializer found to deserialize a
'urn:po-processor:shipTo' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
/soap/servlet/rpcrouter



REGARDS,

Kavitha



Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/









RE: error running the messaging sample

2001-08-02 Thread Pete Roth



I 
can't answer your first question since I'm not writing the Server Side 
components for our setup, but I can help with the second.  Check out this 
link to apache's site.
 
http://xml.apache.org/soap/docs/index.html
 
Then go to Users Guide, then Interoperability.  Then scroll down to 
the section, "Depending on xsi:type"  That will show you how to setup the 
deserializers.
 
Hope 
that helps.
 
Peter Roth Telemetry Technologies Inc. p: 404.231.0021 ext. 1290 e: [EMAIL PROTECTED] 

  -Original Message-From: Kavitha Srinivasan 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 01, 2001 6:15 
  PMTo: [EMAIL PROTECTED]Subject: error running the 
  messaging sample
  Hello:
  Two newbie questions -thank you for your patience.
  1. How do I get the xml on the server side where such xml was sent as part 
  of the soapenvelope? Is it Envelope.getBody()?
  2. I get the following error when trying to run the messaging sample:
  
  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:ClientNo 
  Deserializer found to deserialize a 'urn:po-processor:shipTo' using encoding 
  style 
  'http://schemas.xmlsoap.org/soap/encoding/'./soap/servlet/rpcrouter
   
  REGARDS,
  Kavitha
  
  
  Do You Yahoo!?Make international calls for as low as $.04/minute 
  with Yahoo! Messengerhttp://phonecard.yahoo.com/


RE: Session Tracking question.

2001-08-02 Thread Christian Cerny

Hi,

If I got your Problem now, this might help you:

i.  you could use the ContextPropagation Feature of Apache Soap to access
the HttpSession-Object if you use the JavaProvider of AP-Soap.
If you add a SOAPContext Object as first Parameter in the signature of
your java-method, a 'SOAPContext' Object is passed to your class.

.mymethod(SOAPContext inContext,String inString)

This SOAPContext object gives you access to the
HttpSession,HttpRequest,HttpResponse,... (see java doc for details )

drawback: your classes get bound to the Apache Soap Implementation .

This presupposes that you tracked your HttpSession.

ii. A point I was not right about in my reply:
In detail you do not need to use the same Call Instance for
session-tracking, but the same SOAPHTTPConnection Instance,
which you can pass to different Call objects. 

iii.A question only for my understanding: 
Do you use a Servlet for authentication or a soap service ?

regards

ChrisC




Hi,
How can we restrict the client to use the same 'Call' Object over
and over for invoking different SOAP services that are deployed on a web
server? Is it by resetting the targetObjectURI and the method & parameters
of that 'Call' Object? 

If this is the case then it is limitation to what
SOAP can do under session scope. This means that the 'Call' Object is tied
to the SOAP Service that is of scope 'session' and not the client itself.
Well any ways this is not my problem child. My problem is something like
this.
When a User logs in, a Servlet handles the authentication and
creates and EJB Object that is stored in the session object for that user.
I need to access and invoke a business method on this EJB object some time
later when the user decides to save his work to the database. My question is
how do I get the handle to this EJB Object, that is stored in the session
object, from my SAOP Service. Is there any way to access the session object
that was originally created by the servlet during user authentication from a
SOAP Service? 


Christian -- Thanks for the reply.

~Venkat

-Original Message-
From: Christian Cerny [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 1:40 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Session Tracking question.


Hi,

Apache Soap 2.2 is able to track a HttpSession. 
As long as you are working with the same Call-object on the client-side your
HttpSession is tracked using cookies. (this behavior is "on" per default)
Futhermore the value of the "scope" Parameter in your DeploymentDescripter
for your Class should be "session" for getting session-tracking to work.
If you set it up like this all requests, done by the >same< client-side Call
object, invoke methods on the >same< Object on the Server.
So your are able to store your App-Session as class-member.

btw: 
It's working fine for me in an ap-soap <-> ap-soap scenario. 
But i see quite a lot of issues getting this to work in an interop-scenario
with other SOAP-Client Implementations.

regards

ChrisC



-Original Message-
From: venkat reddy [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 7:58 PM
To: '[EMAIL PROTECTED]'
Subject: Session Tracking question.


Hi All,
I've tried looking up the archives for session tracking but could
not find any. I am currently using SOAP services that are request based. Now
I need to use them on a per session base and access the session object for
a particular user request. My scenario is something like this. 
At use authentication I create a Session Bean an place it in the
Session Object for that user. Now I need to access this session object
depending on some actions performed by the user on the client side. The
client sends the request for the soap service that has to handle the data it
sends and this soap service has to access the session bean that was created
during the authentication process for that user. 
Can any one suggest/discuss something here? Please feel free to ask
any questions.

~Venkat



Re: WSDL parser?

2001-08-02 Thread Tim Blake

Once the rest of us on JSR 110 have had our "input" and "suggestions"
incorporated, that is. ;-)  Isn't the JCP a wonderful thing!

Thanks,
Tim


James M Snell wrote:

> 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

--

   Tim Blake (Oracle JDeveloper)

   Web Services / Activity Modeling (EAI) / eBusiness Integration
   Oracle Corporation, TVP 520 Reading UK

   T: 0118 9244944  ||  M: 07968 620613  ||  F: 0118 9245148
   Email: [EMAIL PROTECTED]






SV: WSDL parser?

2001-08-02 Thread kim . schjefstad

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