web service security
Hi folks, does anyone has experience with web service security in cocoon served web services ? I love to build my webservices with cocoon because of the easy of XML processing and delivery. But when it comes to webservice security I do miss some integration of e.g. the wss4j as a transformer. Does anybody spent time in this area or has some ready-build components ? Greetings Andreas ___ Andreas Kühne phone: +49 177 293 24 97 mailto: [EMAIL PROTECTED] Trustable Ltd. Niederlassung Deutschland Ströverstr. 18 - 59427 Unna Amtsgericht Hamm HRB 5868 Directors Andreas Kühne Heiko Veit Company UK Company No: 5218868 Registered in England and Wales - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to access an https web service from within Cocoon?
Hello, We have a Cocoon application that has been accessing a web service to get some data. It uses your basic map:generate src=http://remotehost/blah/blah; / It's all worked fine in development, but now in QA and production, the web service will be accessible only via https through a reverse-proxy server. So when Cocoon tries to connect to the web service, it has to accept the certificate, and it also has to submit authentication information to a login page (the first time). Is Cocoon able to do that? How do we make Cocoon accept the certificate? And how to submit authentication information to a login page that will appear only the first time: Do we have to use flowscript? Thanks, Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to access an https web service from within Cocoon?
Take a look in the man pages of SSH. There's a part on those keys in it. When the key is found already, it does not ask anything. You can generate those keys yourself and store them before Cocoon gets to the site. Lars Huttar wrote: Hello, We have a Cocoon application that has been accessing a web service to get some data. It uses your basic map:generate src=http://remotehost/blah/blah; / It's all worked fine in development, but now in QA and production, the web service will be accessible only via https through a reverse-proxy server. So when Cocoon tries to connect to the web service, it has to accept the certificate, and it also has to submit authentication information to a login page (the first time). Is Cocoon able to do that? How do we make Cocoon accept the certificate? And how to submit authentication information to a login page that will appear only the first time: Do we have to use flowscript? Thanks, Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to access an https web service from within Cocoon?
Lars, If the web service uses basic authentication you can embed the user name and password in the URL, for example: map:generate src=https://username:[EMAIL PROTECTED]/blah/blah / Cheers, Antony Lars Huttar wrote: Hello, We have a Cocoon application that has been accessing a web service to get some data. It uses your basic map:generate src=http://remotehost/blah/blah; / It's all worked fine in development, but now in QA and production, the web service will be accessible only via https through a reverse-proxy server. So when Cocoon tries to connect to the web service, it has to accept the certificate, and it also has to submit authentication information to a login page (the first time). Is Cocoon able to do that? How do we make Cocoon accept the certificate? And how to submit authentication information to a login page that will appear only the first time: Do we have to use flowscript? Thanks, Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to access an https web service from within Cocoon?
Yves Vindevogel wrote: Take a look in the man pages of SSH. There's a part on those keys in it. When the key is found already, it does not ask anything. You can generate those keys yourself and store them before Cocoon gets to the site. Thank you for the hints... How do I tell Cocoon where the generated keys are, so that Cocoon knows to send them? Lars Lars Huttar wrote: Hello, We have a Cocoon application that has been accessing a web service to get some data. It uses your basic map:generate src=http://remotehost/blah/blah; / It's all worked fine in development, but now in QA and production, the web service will be accessible only via https through a reverse-proxy server. So when Cocoon tries to connect to the web service, it has to accept the certificate, and it also has to submit authentication information to a login page (the first time). Is Cocoon able to do that? How do we make Cocoon accept the certificate? And how to submit authentication information to a login page that will appear only the first time: Do we have to use flowscript? Thanks, Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CFrom Web Service Binding
Hi! Is it possible to binding Web Service for Cform, I think it will convinent to develop closs web app. Best Regards johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: CFrom Web Service Binding
Hi Chris I've used this method before, But the code is different from the binding method, So If you have two data source, one is database, the other is web service, you must change your code. If use binding, you just need to change the binding, don't need any other code. Best Regards johnson Christofer Dutz 提到: Hi Johnson I use to bind my CForms forms to Xml documents and use cocoons pipelines to provide them. So for the reading direction I think all you would have to do is create an (internal) pipeline accessing the Webservice of choice and feed the result in the CForm. On the writing side I think a similar way should work. Chris -Ursprüngliche Nachricht- Von: johnson [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. Mai 2006 08:38 An: users@cocoon.apache.org Betreff: CFrom Web Service Binding Hi! Is it possible to binding Web Service for Cform, I think it will convinent to develop closs web app. Best Regards johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: CFrom Web Service Binding
Hi Johnson, Don't quite understand what code you are exactly refering to. Immagine these pipelines: map:match pattern=read-pipeline map:generate type=some-cool-webservice/ map:transform src=ws-to-internal.xsl/ map:serialize type=xml/ /map:match map:match pattern=read-pipeline map:generate src=module:flow-attr:write-doc / map:transform src=internal-to-ws.xsl/ map:serialize type=some-even-cooler-webservice/ /map:match Ok ... you could use or write a serializer writing to the webservice or serialize as xml and deal with writing to the WS in flowscript. By using an internal format you could use the simplest binding. Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 -0 fax: 0 61 51 / 66 717 -29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: johnson [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. Mai 2006 15:48 An: users@cocoon.apache.org Betreff: Re: AW: CFrom Web Service Binding Hi Chris I've used this method before, But the code is different from the binding method, So If you have two data source, one is database, the other is web service, you must change your code. If use binding, you just need to change the binding, don't need any other code. Best Regards johnson Christofer Dutz ??: Hi Johnson I use to bind my CForms forms to Xml documents and use cocoons pipelines to provide them. So for the reading direction I think all you would have to do is create an (internal) pipeline accessing the Webservice of choice and feed the result in the CForm. On the writing side I think a similar way should work. Chris -Ursprüngliche Nachricht- Von: johnson [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. Mai 2006 08:38 An: users@cocoon.apache.org Betreff: CFrom Web Service Binding Hi! Is it possible to binding Web Service for Cform, I think it will convinent to develop closs web app. Best Regards johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hosting a web service in Cocoon with Axis block (RE: Simple question on Cocoon and Web Service)
Hello, Finally it's not difficult and you must look at axis block. I post an article here on my web site on this subject, in french (http://www.object-everywhere.com/OBJECT-EVERYWHERE/articles/CocoonSW.xml). With the use of the axis block, here the following steps if you want expose a Java class names Test : - Verify that the axis block is included - Modify cocoon.xconf Find the following XML element component class=org.apache.cocoon.components.axis.SoapServerImpl logger=core.source.soapserver role=org.apache.cocoon.components.axis.SoapServer/ You have the sub-element managed-services that lists all the services deployed ; add a new descriptor element pointing to your own DeploymentDescriptor.wsdd file. An example of a such file : deployment xmlns=http://xml.apache.org/axis/wsdd/; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; service name=Test provider=java:RPC parameter name=className value=Test/ parameter name=allowedMethods value=echo/ /service /deployment Here we have a class named Test with the method echo exposed. The class file is in WEB-INF\classes. - You must restart the cocoon instance - You can list all the web services with the URL : http://localhost:8080/samples/blocks/axis/status.xsp if your Cocoon installation has the xsp block (change localhost et port number according to your configuration) - If you want the WSDL document of your service, you can use the tool Java2WSDL (from Apache Axis) - If you want to invoke the Test service, use the URL http://localhost:8080/samples/blocks/axis/rpcrouter It works because the example sitemap has the entry map:match pattern=rpcrouter map:read type=soap-rpc mime-type=text/xml in-development-stagefalse/in-development-stage /map:read /map:match Have a look at the soap-rpc reader. Hope this helps you. Bertrand Goetzmann. -Message d'origine- De : Peter Neu [mailto:[EMAIL PROTECTED] Envoyé : mercredi 8 février 2006 12:42 À : Goetzmann Bertrand Objet : AW: Simple question on Cocoon and Web Service Hello Bertrand, I want to do the same thing with Cocoon but I have the same problem with finding documentation. How did you solve the problem with the web service integration? Cheers, Pete -Ursprüngliche Nachricht- Von: Goetzmann Bertrand [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 20. Januar 2006 16:36 An: users@cocoon.apache.org Betreff: RE: Simple question on Cocoon and Web Service Thank you for this information ! Do you know where documentation can be found for the use of the axis block ? Best regards. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Giacomo Pati Envoyé : vendredi 20 janvier 2006 10:13 À : users@cocoon.apache.org Objet : Re: Simple question on Cocoon and Web Service -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 And there are the Apache Axis integration samples in COCOON_HOME/src/blocks/axis On Fri, 20 Jan 2006, JanGeek wrote: Date: Fri, 20 Jan 2006 09:55:46 +0100 From: JanGeek [EMAIL PROTECTED] Reply-To: users@cocoon.apache.org To: users@cocoon.apache.org Subject: Re: Simple question on Cocoon and Web Service Hi Bertrand, you may have a look at the wiki-page: http://wiki.apache.org/cocoon/WebServiceServer On Friday 20 January 2006 09:20, Goetzmann Bertrand wrote: Hi again, I know there is a way to use Cocoon as a SOAP client to invoke a web service, but what about implementing a web service with Cocoon ? Is it out of the scope of Cocoon ? Thank you. As Java implies platform independence, and XML implies language independence, JXTA implies network independence. B e r t r a n d G o e t z m a n n - - - - - - - - - - - - - - - - - - - - - Sun Certified Developer for the Java 2 Platform Sun Certified Enterprise Architect for J2EE Technology !-- O B J E C T - E V E R Y W H E R E, sur Apache Cocoon -- site_web href= www.object-everywhere.com / LaSer-Symag Tél. 04 92 91 34 00 www.symag.com - -- Giacomo Pati Otego AG, Switzerland - http://www.otego.com Orixo, the XML business alliance - http://www.orixo.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD0KmCLNdJvZjjVZARAn6JAKCgwro0JIvqgYhD+Sp/Aylgc0pHqQCfe7yl O4j4mUgB17qYMzo2eYrc6Dg= =9tUt -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple question on Cocoon and Web Service
Title: Simple question on Cocoon and Web Service Hi again, I know there is a way to use Cocoon as a SOAP client to invoke a web service, but what about implementing a web service with Cocoon ? Is it out of the scope of Cocoon ? Thank you. As Java implies platform independence, and XML implies language independence, JXTA implies network independence. B e r t r a n d G o e t z m a n n - - - - - - - - - - - - - - - - - - - - - Sun Certified Developer for the Java 2 Platform Sun Certified Enterprise Architect for J2EE Technology !-- O B J E C T - E V E R Y W H E R E, sur Apache Cocoon -- site_web href=""> www.object-everywhere.com / LaSer-Symag Tél. 04 92 91 34 00 www.symag.com
Re: Simple question on Cocoon and Web Service
Hi Bertrand, you may have a look at the wiki-page: http://wiki.apache.org/cocoon/WebServiceServer On Friday 20 January 2006 09:20, Goetzmann Bertrand wrote: Hi again, I know there is a way to use Cocoon as a SOAP client to invoke a web service, but what about implementing a web service with Cocoon ? Is it out of the scope of Cocoon ? Thank you. As Java implies platform independence, and XML implies language independence, JXTA implies network independence. B e r t r a n d G o e t z m a n n - - - - - - - - - - - - - - - - - - - - - Sun Certified Developer for the Java 2 Platform Sun Certified Enterprise Architect for J2EE Technology !-- O B J E C T - E V E R Y W H E R E, sur Apache Cocoon -- site_web href= www.object-everywhere.com / LaSer-Symag Tél. 04 92 91 34 00 www.symag.com -- Gruß, Jan pgpFcyhrA81MH.pgp Description: PGP signature
RE: Simple question on Cocoon and Web Service
Very interesting ! Thank you a lot. -Message d'origine- De : JanGeek [mailto:[EMAIL PROTECTED] Envoyé : vendredi 20 janvier 2006 09:56 À : users@cocoon.apache.org Objet : Re: Simple question on Cocoon and Web Service Hi Bertrand, you may have a look at the wiki-page: http://wiki.apache.org/cocoon/WebServiceServer On Friday 20 January 2006 09:20, Goetzmann Bertrand wrote: Hi again, I know there is a way to use Cocoon as a SOAP client to invoke a web service, but what about implementing a web service with Cocoon ? Is it out of the scope of Cocoon ? Thank you. As Java implies platform independence, and XML implies language independence, JXTA implies network independence. B e r t r a n d G o e t z m a n n - - - - - - - - - - - - - - - - - - - - - Sun Certified Developer for the Java 2 Platform Sun Certified Enterprise Architect for J2EE Technology !-- O B J E C T - E V E R Y W H E R E, sur Apache Cocoon -- site_web href= www.object-everywhere.com / LaSer-Symag Tél. 04 92 91 34 00 www.symag.com -- Gruß, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple question on Cocoon and Web Service
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 And there are the Apache Axis integration samples in COCOON_HOME/src/blocks/axis On Fri, 20 Jan 2006, JanGeek wrote: Date: Fri, 20 Jan 2006 09:55:46 +0100 From: JanGeek [EMAIL PROTECTED] Reply-To: users@cocoon.apache.org To: users@cocoon.apache.org Subject: Re: Simple question on Cocoon and Web Service Hi Bertrand, you may have a look at the wiki-page: http://wiki.apache.org/cocoon/WebServiceServer On Friday 20 January 2006 09:20, Goetzmann Bertrand wrote: Hi again, I know there is a way to use Cocoon as a SOAP client to invoke a web service, but what about implementing a web service with Cocoon ? Is it out of the scope of Cocoon ? Thank you. As Java implies platform independence, and XML implies language independence, JXTA implies network independence. B e r t r a n d G o e t z m a n n - - - - - - - - - - - - - - - - - - - - - Sun Certified Developer for the Java 2 Platform Sun Certified Enterprise Architect for J2EE Technology !-- O B J E C T - E V E R Y W H E R E, sur Apache Cocoon -- site_web href= www.object-everywhere.com / LaSer-Symag Tél. 04 92 91 34 00 www.symag.com - -- Giacomo Pati Otego AG, Switzerland - http://www.otego.com Orixo, the XML business alliance - http://www.orixo.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD0KmCLNdJvZjjVZARAn6JAKCgwro0JIvqgYhD+Sp/Aylgc0pHqQCfe7yl O4j4mUgB17qYMzo2eYrc6Dg= =9tUt -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: Web Service Proxy Generator
Le 4 nov. 05, à 08:41, Merico Raffaele a écrit : Ciao Bertrand, ciao Upayavira After studying and changing the code of the WebServiceProxyGenerator I have discovered that the Set-Cookie application is handled correctly by the underlying Jakarta HttpClient 2.0.2 according to RFC 2109. The problem I had was caused by the MSIE 6.0 that does not accepts the Set-Cookie header if the response contains just XML. Therefore on every HTTP request a new session was created. And since the WebServiceProxyGenerator stores its HttpClient in the session he could not reuse the HttpClient that correctly handled the initial Set-Cookie of the requested Web-Service-Server. 1) The solution for the MSIE is, that you have initially request a HTML page (to accept the Set-Cookie of the Coocon application) and then go on with any WebServiceProxyGenerators. 2) Anyway I learned a lot about Java and Cocoon and - that the Firefox does not has this problem. Firefox remembers a cookie (Set-Cookie:) independent of the response. Hope this helps. Many thanks for your support ... Raffaele Merico Raffaele wrote: Ciao Bertrand Thanks a lot for the inspection of the source code and your suggestion how to fix the problem. How do we proceed now - does anybody of the developers will improve the WebServiceProxyGenerator according to your analysis. If you are capable with Java, then I think it is an invitation for you to improve it yourself and give us a patch. Regards, Upayavira ...Does anybody knows if there is any possibility to make the Web Service Proxy Generator remember a session with an invoked system?.. The Set-Cookie: directive of the invoked Web-Service-Server is ignored by Web Service Proxy Generator. Is there any HTTP header information that the Web Service Proxy Generator would remember for an invoked URL? Or do I have to write an own Generator?.. I'm no WebServiceProxyGenerator expert, but I think you're right that the current version doesn't store cookies. Looking at the WebServiceProxyGenerator source code, the getHttpClient() method uses a separate HttpClient instance for each session of your Cocoon application, so it should be possible to configure this HttpClient to store cookies. It might be just a matter of configuring the HttpClient differently in the getHttpClient() method. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Bertrand Delacretaz independent consultant, Lausanne, Switzerland http://www.codeconsult.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: Web Service Proxy Generator
(damn reply button, sorry for the noise) Hi Raffaele, ...1) The solution for the MSIE is, that you have initially request a HTML page (to accept the Set-Cookie of the Coocon application) and then go on with any WebServiceProxyGenerators... This is awful...but thanks very much for the explanation! I've had similar problems when IE receives a certain content-type for a given URL, if the content-type changes later on (like from HTML to XML because the first request returned a Cocoon error in HTML), IE still interprets the page according to the first content-type that it got. 2) Anyway I learned a lot about Java and Cocoon... Great! -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: Web Service Proxy Generator
Ciao Bertrand, ciao Upayavira After studying and changing the code of the WebServiceProxyGenerator I have discovered that the Set-Cookie application is handled correctly by the underlying Jakarta HttpClient 2.0.2 according to RFC 2109. The problem I had was caused by the MSIE 6.0 that does not accepts the Set-Cookie header if the response contains just XML. Therefore on every HTTP request a new session was created. And since the WebServiceProxyGenerator stores its HttpClient in the session he could not reuse the HttpClient that correctly handled the initial Set-Cookie of the requested Web-Service-Server. 1) The solution for the MSIE is, that you have initially request a HTML page (to accept the Set-Cookie of the Coocon application) and then go on with any WebServiceProxyGenerators. 2) Anyway I learned a lot about Java and Cocoon and - that the Firefox does not has this problem. Firefox remembers a cookie (Set-Cookie:) independent of the response. Hope this helps. Many thanks for your support ... Raffaele Merico Raffaele wrote: Ciao Bertrand Thanks a lot for the inspection of the source code and your suggestion how to fix the problem. How do we proceed now - does anybody of the developers will improve the WebServiceProxyGenerator according to your analysis. If you are capable with Java, then I think it is an invitation for you to improve it yourself and give us a patch. Regards, Upayavira ...Does anybody knows if there is any possibility to make the Web Service Proxy Generator remember a session with an invoked system?.. The Set-Cookie: directive of the invoked Web-Service-Server is ignored by Web Service Proxy Generator. Is there any HTTP header information that the Web Service Proxy Generator would remember for an invoked URL? Or do I have to write an own Generator?.. I'm no WebServiceProxyGenerator expert, but I think you're right that the current version doesn't store cookies. Looking at the WebServiceProxyGenerator source code, the getHttpClient() method uses a separate HttpClient instance for each session of your Cocoon application, so it should be possible to configure this HttpClient to store cookies. It might be just a matter of configuring the HttpClient differently in the getHttpClient() method. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web Service Proxy Generator
Hi Raffaele, Le 31 oct. 05, à 07:48, Merico Raffaele a écrit : ...Does anybody knows if there is any possibility to make the Web Service Proxy Generator remember a session with an invoked system?.. The Set-Cookie: directive of the invoked Web-Service-Server is ignored by Web Service Proxy Generator. Is there any HTTP header information that the Web Service Proxy Generator would remember for an invoked URL? Or do I have to write an own Generator?.. I'm no WebServiceProxyGenerator expert, but I think you're right that the current version doesn't store cookies. Looking at the WebServiceProxyGenerator source code, the getHttpClient() method uses a separate HttpClient instance for each session of your Cocoon application, so it should be possible to configure this HttpClient to store cookies. It might be just a matter of configuring the HttpClient differently in the getHttpClient() method. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Web Service Proxy Generator
Ciao Bertrand Thanks a lot for the inspection of the source code and your suggestion how to fix the problem. How do we proceed now - does anybody of the developers will improve the WebServiceProxyGenerator according to your analysis. Thanks a lot for your support ... Raffaele ...Does anybody knows if there is any possibility to make the Web Service Proxy Generator remember a session with an invoked system?.. The Set-Cookie: directive of the invoked Web-Service-Server is ignored by Web Service Proxy Generator. Is there any HTTP header information that the Web Service Proxy Generator would remember for an invoked URL? Or do I have to write an own Generator?.. I'm no WebServiceProxyGenerator expert, but I think you're right that the current version doesn't store cookies. Looking at the WebServiceProxyGenerator source code, the getHttpClient() method uses a separate HttpClient instance for each session of your Cocoon application, so it should be possible to configure this HttpClient to store cookies. It might be just a matter of configuring the HttpClient differently in the getHttpClient() method. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Web Service Proxy Generator
Merico Raffaele wrote: Ciao Bertrand Thanks a lot for the inspection of the source code and your suggestion how to fix the problem. How do we proceed now - does anybody of the developers will improve the WebServiceProxyGenerator according to your analysis. If you are capable with Java, then I think it is an invitation for you to improve it yourself and give us a patch. Regards, Upayavira ...Does anybody knows if there is any possibility to make the Web Service Proxy Generator remember a session with an invoked system?.. The Set-Cookie: directive of the invoked Web-Service-Server is ignored by Web Service Proxy Generator. Is there any HTTP header information that the Web Service Proxy Generator would remember for an invoked URL? Or do I have to write an own Generator?.. I'm no WebServiceProxyGenerator expert, but I think you're right that the current version doesn't store cookies. Looking at the WebServiceProxyGenerator source code, the getHttpClient() method uses a separate HttpClient instance for each session of your Cocoon application, so it should be possible to configure this HttpClient to store cookies. It might be just a matter of configuring the HttpClient differently in the getHttpClient() method. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Web Service Proxy Generator
Le 31 oct. 05, à 11:24, Upayavira a écrit : Merico Raffaele wrote: Ciao Bertrand Thanks a lot for the inspection of the source code and your suggestion how to fix the problem. How do we proceed now - does anybody of the developers will improve the WebServiceProxyGenerator according to your analysis. If you are capable with Java, then I think it is an invitation for you to improve it yourself and give us a patch. That's what I meant ;-) A patch including a test case would be the best way - and you can get help here (or rather on the dev list) for any detail questions! -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web Service Proxy Generator
Dear community Does anybody knows if there is any possibility to make the Web Service Proxy Generator remember a session with an invoked system? The Set-Cookie: directive of the invoked Web-Service-Server is ignored by Web Service Proxy Generator. Is there any HTTP header information that the Web Service Proxy Generator would remember for an invoked URL? Or do I have to write an own Generator? Many thanks in advance ... Raffaele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Paypal web service
Has anyone implemented a Paypal web services access in Cocoon. I am about to embark on creating my first web services client and would not want to re-invent the wheel. Since it is my first implementation of such a client, any hints or advice regarding the web services in flowscript is welcome. TIA, Ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Create web service from xsp (using cocoon-axis)
Hi all! I have a some xsp file, that connects to DB and returns xml with some data. In sitemap.xmap I described it like this: map:match pattern=getPlayersList map:generate src=xsp/getPlayersList.xsp type=serverpages/ map:serialize type=xml/ /map:match It's simple. But I want to create web service, that should use that xsp file (to retrieve xml data) How can I solve this problem? Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create web service from xsp (using cocoon-axis)
Hi you need to develop first webservice and deploy in your application servert ..Next u need to write Xsp that will read data from DB. In sitemap.xmap in generate u need to use wsdl of webservice end point. I hope it will solve yr problem rgds sudhiOleksandr Filatov [EMAIL PROTECTED] wrote: Hi all!I have a some xsp file, that connects to DB and returns xml with some data.In sitemap.xmap I described it like this:type="serverpages"/It's simple.But I want to create web service, that should use that xsp file (to retrievexml data)How can I solve this problem?Regards.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
problem with calling a web service with soap
Title: problem with calling a web service with soap Hi all, i have a problem in calling a web service with cocoon and soap. i want to sent an xml-file, which is saved on my local harddisk, via soap request to a web service. The web service function well.. How can i do this? i can't find any example for this problem! here my xsp code for calling the web service: xsp:page language=java xmlns:xsp=http://apache.org/xsp xmlns:xsp-request=http://apache.org/xsp/request/2.0 xmlns:soap=http://apache.org/xsp/soap/3.0 xmlns:xscript=http://apache.org/xsp/xscript/1.0 xmlns:log=http://apache.org/xsp/log/2.0 page xsp:logic String query = testabfrage; /xsp:logic soap:call url="" href="http://10.111.11.111/datenpool21/datenpool21.asmx">http://10.111.11.111/datenpool21/datenpool21.asmx method=http://name.org/datenpool21/datenpool21/Auskunft soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance xmlns:xsd=http://www.w3.org/1999/XMLSchema soap:Body ns1:Polizeiauskunft xmlns:ns1=urn:http://tempuri.org/datenpool21/datenpool21/PolizeiAuskunft soap:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ XMELDQuery0400 xsi:type=stringxml-file/href/XMELDQuery0400 /ns1:Auskunft /soap:Body /soap:Envelope /soap:call /page /xsp:page Thanks for your help! Regards Dirk Dirk Skirde Hessische Zentrale fr Datenverarbeitung Mainzer Strasse 50 Raum 009 65189 Wiesbaden Tel.: +49 611 340 1941 Fax: +49 611 340 5941 EMail: [EMAIL PROTECTED]
Web service
Hello I'm trying to use the SOAP logicsheet I don't find documentation about it other than the sample. I'm trying to derive a test from the following sample http://...mycocoon.../samples/blocks/xsp/soap/temperature which is based on the following xsp xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call url=http://services.xmethods.net:80/soap/servlet/rpcrouter; ns1:getTemp xmlns:ns1=urn:xmethods-Temperature soap:enc/ zipcode xsi_type=xsd:string90210/zipcode /ns1:getTemp /soap:call /page /xsp:page I don't understand the semantic of soap:enc/ and I don't find the syntax and/or the semantic for the urn in xmlns:ns1=urn:xmethods-Temperature for the capascience weather service (http://www.capescience.com/webservices/globalweather/index.shtml, SOAP technical details in the bottom of the page), I derive from above to xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call url=http://live.capescience.com:80/ccx/GlobalWeather; ns1:getWeatherReport xmlns:ns1=urn:capeconnect soap:enc/ code xsi_type=xsd:stringCYVR/code /ns1:getWeatherReport /soap:call /page /xsp:page The urn seems to be always false whatever I try. -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web service
Hello Some more info The following soap request work well outside cocoon, but all my attempt to map that request in the soap logicsheet fails SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; SOAP-ENV:Body m:getWeatherReport xmlns:m=capeconnect:GlobalWeather:GlobalWeather SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; code xsi:type=xsd:stringCYVR/code /m:getWeatherReport /SOAP-ENV:Body /SOAP-ENV:Envelope Is there someone which could help about the translation from a soap request to a soap logicsheet (a method, a link, a tutorial, ...) Jean-Claude Moissinac Jean-Claude Moissinac wrote: Hello I'm trying to use the SOAP logicsheet I don't find documentation about it other than the sample. I'm trying to derive a test from the following sample http://...mycocoon.../samples/blocks/xsp/soap/temperature which is based on the following xsp xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call url=http://services.xmethods.net:80/soap/servlet/rpcrouter; ns1:getTemp xmlns:ns1=urn:xmethods-Temperature soap:enc/ zipcode xsi_type=xsd:string90210/zipcode /ns1:getTemp /soap:call /page /xsp:page I don't understand the semantic of soap:enc/ and I don't find the syntax and/or the semantic for the urn in xmlns:ns1=urn:xmethods-Temperature for the capascience weather service (http://www.capescience.com/webservices/globalweather/index.shtml, SOAP technical details in the bottom of the page), I derive from above to xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call url=http://live.capescience.com:80/ccx/GlobalWeather; ns1:getWeatherReport xmlns:ns1=urn:capeconnect soap:enc/ code xsi_type=xsd:stringCYVR/code /ns1:getWeatherReport /soap:call /page /xsp:page The urn seems to be always false whatever I try. -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Concerning a) Woody bindings, b) Web Service publishing using existing Generator?
Hello Joerg! Thank you for your input. 1. I've been playing around a little with Woody. From my short usage experience, it looks very promising for form management. My business logic is implemented in EJB. Is there some load/save binding framework for EJB available? Also, I have implemented an XML representation of my Entity Bean data using a Cocoon Generator. Is there some way I could use the XML representation work already put in place there, by feeding Woody with data from a Generator? I don't know if I'm right on the mechanics of Cocoon here, please let me know if I'm way off. I know I have to handle saving validated form data anyway so maybe using a Generator isn't the right way to go (e.g. I cannot avoid using Woody's binding stuff?). You can also bind to XML, writing some stuff in flow including the storing of the pipeline output (that pipeline with your generator) into DOM should be no problem. But I don't understand why don't bind directly to beans? That's at least what I do though I don't use enterprise beans. Yes, I realized there is no point in trying to use XML binding for form population and Bean binding for reading the posted form data, since the bindings are used in both the load and the save operations. I've been experimenting some with the bean binding and it looks great! 2. I would like to publish my own Web Services, based on my existing work in Generators (basically, have the SOAP/Axis Reader getting calls using existing pipeline structure). Is there some way I can read the data from the SOAP XML structure (i.e. retrieve the parameters, encapsulated in SOAP XML, to my Generator EJB Finder call)? I'm thinking maybe I could set the Generator parameters directly in the pipeline rather than using request.getParameter within the Generator (thereby de-coupling it from web-based calls only). Based on the call type maybe I could use a common Generator to create the XML (*.html = set parameters using request.getParameter, *.service = set parameters using ). Pseudo-sitemap below (my guess is it's not very correct syntax): map:match pattern=*.html map:generate src=generator.xsp map:parameter name=myparam value={request.getParameter('myparam')}/ This can be done by input modules. /map:generate map:transform src=transformer-html.xsl/ map:serialize type=html/ /map:match map:match pattern=*.service map:read type=soap-rpc mime-type=text/xml/ map:generate src=generator.xsp map:parameter name=myparam value={axis.getParameter('/soap:Envelope/soap:Body/myparam')}/ If you store this XML structure somewhere the XModuleSource should work: http://wiki.cocoondev.org/Wiki.jsp?page=XModuleSource. Joerg Bear in mind that I need to make use of the XSP Generators since I generate the XML data from it. Afaik there can be only one Generator in a Cocoon pipeline. The methods used for reading XMLized input I've looked into unfortunately replace the ServerPages generator. If the XModule is used in the same manner as request.getParameter I see the possibilities! I didn't find any examples in cocoon/samples/ (I'm using 2.1.3). XModule being in Scratchpad could be a reason. Could you please expand on your XModule thoughts, in particular how to use it to read the contents of a SOAP call to extract parameters to be used in the generator (as I pseudo-sketched above). I truly appreciate your help! Cheers, Ulf Sahlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Concerning a) Woody bindings, b) Web Service publishing using existing Generator?
On 18.03.2004 13:55, Ulf Sahlin wrote: map:match pattern=*.service map:read type=soap-rpc mime-type=text/xml/ map:generate src=generator.xsp map:parameter name=myparam value={axis.getParameter('/soap:Envelope/soap:Body/myparam')}/ If you store this XML structure somewhere the XModuleSource should work: http://wiki.cocoondev.org/Wiki.jsp?page=XModuleSource. Bear in mind that I need to make use of the XSP Generators since I generate the XML data from it. Afaik there can be only one Generator in a Cocoon pipeline. The methods used for reading XMLized input I've looked into unfortunately replace the ServerPages generator. If the XModule is used in the same manner as request.getParameter I see the possibilities! XModuleSource is a source, not a sitemap component, so it is not a replacement for XSPGenerator (in good or bad sense). Furthermore there is still the possibility of aggregation. But you are right, using it in map:parameter directly would not be possible, but for example in combination with XMLFileModule (which can not only read files but probably from all resolvable sources). I didn't find any examples in cocoon/samples/ (I'm using 2.1.3). XModule being in Scratchpad could be a reason. Yes, it's new. Could you please expand on your XModule thoughts, in particular how to use it to read the contents of a SOAP call to extract parameters to be used in the generator (as I pseudo-sketched above). I truly appreciate your help! It depends on which you get the result of the SOAP call in or where you store it. The above pseudo code using a reader first and a generator afterwards is not possible. But wait, there is also a SOAP call from inside XSP possible ... searching for the samples ... http://127.0.0.1:/samples/xsp/soap/ in your local Cocoon installation. Maybe so it's easier. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Concerning a) Woody bindings, b) Web Service publishing using existing Generator?
map:match pattern=*.service map:read type=soap-rpc mime-type=text/xml/ map:generate src=generator.xsp map:parameter name=myparam value={axis.getParameter('/soap:Envelope/soap:Body/myparam')}/ If you store this XML structure somewhere the XModuleSource should work: http://wiki.cocoondev.org/Wiki.jsp?page=XModuleSource. Bear in mind that I need to make use of the XSP Generators since I generate the XML data from it. Afaik there can be only one Generator in a Cocoon pipeline. The methods used for reading XMLized input I've looked into unfortunately replace the ServerPages generator. If the XModule is used in the same manner as request.getParameter I see the possibilities! XModuleSource is a source, not a sitemap component, so it is not a replacement for XSPGenerator (in good or bad sense). Furthermore there is still the possibility of aggregation. But you are right, using it in map:parameter directly would not be possible, but for example in combination with XMLFileModule (which can not only read files but probably from all resolvable sources). As a SOAP call is an XML structure packaged within the request object maybe I could serialize that. I guess what I'm looking for is the way to get that data into an xpath-readable object. As this XML data is bundled within the actual request call I'm a little confused in how to use it as a XModuleSource. Example SOAP call over HTTP: - POST /InStock HTTP/1.1 Host: www.stock.org Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn ?xml version=1.0? soap:Envelope xmlns:soap=http://www.w3.org/2001/12/soap-envelope; soap:encodingStyle=http://www.w3.org/2001/12/soap-encoding; soap:Body xmlns:m=http://www.stock.org/stock; m:GetStockPrice m:StockNameIBM/m:StockName /m:GetStockPrice /soap:Body /soap:Envelope Naturally in this case I would like to read the /soap:Envelope/soap:Body/m:getStockPrice/m:StockName parameter to use it in my ejb finder within the XSP Generator. I didn't find any examples in cocoon/samples/ (I'm using 2.1.3). XModule being in Scratchpad could be a reason. Yes, it's new. Could you please expand on your XModule thoughts, in particular how to use it to read the contents of a SOAP call to extract parameters to be used in the generator (as I pseudo-sketched above). I truly appreciate your help! It depends on which you get the result of the SOAP call in or where you store it. The above pseudo code using a reader first and a generator afterwards is not possible. But wait, there is also a SOAP call from inside XSP possible ... searching for the samples ... http://127.0.0.1:/samples/xsp/soap/ in your local Cocoon installation. Maybe so it's easier. Joerg There is very good support indeed for calling external web services from within Cocoon, such as (taken from samples): soap:call url=http://services.xmethods.net:9090/soap; ns1:getRate xmlns:ns1=urn:xmethods-CurrencyExchange xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; soap:enc/ country1 xsi:type=xsd:stringeuro/country1 country2 xsi:type=xsd:stringunited states/country2 /ns1:getRate /soap:call Still this only uses another server's SOAP services hence it isn't actually serving them. As the hello-world samples also state there is some REST-style web service example available (meaning, just serialize the XML) but I'd like to go all the way with the SOAP-compatibility. Cheers, Ulf Sahlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Concerning a) Woody bindings, b) Web Service publishing using existing Generator?
On 17.02.2004 19:05, Ulf Sahlin wrote: 1. I've been playing around a little with Woody. From my short usage experience, it looks very promising for form management. My business logic is implemented in EJB. Is there some load/save binding framework for EJB available? Also, I have implemented an XML representation of my Entity Bean data using a Cocoon Generator. Is there some way I could use the XML representation work already put in place there, by feeding Woody with data from a Generator? I don't know if I'm right on the mechanics of Cocoon here, please let me know if I'm way off. I know I have to handle saving validated form data anyway so maybe using a Generator isn't the right way to go (e.g. I cannot avoid using Woody's binding stuff?). You can also bind to XML, writing some stuff in flow including the storing of the pipeline output (that pipeline with your generator) into DOM should be no problem. But I don't understand why don't bind directly to beans? That's at least what I do though I don't use enterprise beans. 2. I would like to publish my own Web Services, based on my existing work in Generators (basically, have the SOAP/Axis Reader getting calls using existing pipeline structure). Is there some way I can read the data from the SOAP XML structure (i.e. retrieve the parameters, encapsulated in SOAP XML, to my Generator EJB Finder call)? I'm thinking maybe I could set the Generator parameters directly in the pipeline rather than using request.getParameter within the Generator (thereby de-coupling it from web-based calls only). Based on the call type maybe I could use a common Generator to create the XML (*.html = set parameters using request.getParameter, *.service = set parameters using ). Pseudo-sitemap below (my guess is it's not very correct syntax): map:match pattern=*.html map:generate src=generator.xsp map:parameter name=myparam value={request.getParameter('myparam')}/ This can be done by input modules. /map:generate map:transform src=transformer-html.xsl/ map:serialize type=html/ /map:match map:match pattern=*.service map:read type=soap-rpc mime-type=text/xml/ map:generate src=generator.xsp map:parameter name=myparam value={axis.getParameter('/soap:Envelope/soap:Body/myparam')}/ If you store this XML structure somewhere the XModuleSource should work: http://wiki.cocoondev.org/Wiki.jsp?page=XModuleSource. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Concerning a) Woody bindings, b) Web Service publishing using existing Generator?
Hi everyone! First let me thank the Cocoon development team for an outstanding publishing framework. Next, I have two questions; one concerning Woody and the other SOAP/Axis. I'm using Cocoon 2.1.3 as for now. 1. I've been playing around a little with Woody. From my short usage experience, it looks very promising for form management. My business logic is implemented in EJB. Is there some load/save binding framework for EJB available? Also, I have implemented an XML representation of my Entity Bean data using a Cocoon Generator. Is there some way I could use the XML representation work already put in place there, by feeding Woody with data from a Generator? I don't know if I'm right on the mechanics of Cocoon here, please let me know if I'm way off. I know I have to handle saving validated form data anyway so maybe using a Generator isn't the right way to go (e.g. I cannot avoid using Woody's binding stuff?). 2. I would like to publish my own Web Services, based on my existing work in Generators (basically, have the SOAP/Axis Reader getting calls using existing pipeline structure). Is there some way I can read the data from the SOAP XML structure (i.e. retrieve the parameters, encapsulated in SOAP XML, to my Generator EJB Finder call)? I'm thinking maybe I could set the Generator parameters directly in the pipeline rather than using request.getParameter within the Generator (thereby de-coupling it from web-based calls only). Based on the call type maybe I could use a common Generator to create the XML (*.html = set parameters using request.getParameter, *.service = set parameters using ). Pseudo-sitemap below (my guess is it's not very correct syntax): map:match pattern=*.html map:generate src=generator.xsp map:parameter name=myparam value={request.getParameter('myparam')}/ /map:generate map:transform src=transformer-html.xsl/ map:serialize type=html/ /map:match map:match pattern=*.service map:read type=soap-rpc mime-type=text/xml/ map:generate src=generator.xsp map:parameter name=myparam value={axis.getParameter('/soap:Envelope/soap:Body/myparam')}/ /map:generate map:transform src=transformer-webservice.xsl/ map:serialize type=xml/ /map:match Thanks for your help! Kind regards, Ulf Sahlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web service
Dear all, sorry for pasting this to the Cocoon group but I really enjoy the traffic and expertise here ! I am using Cocoon and Axis. I recently did deploy a webservice on Axis/Tomcat. Now a friend asked me to write an asp client to access the Axis jws via asp and SOAP. I really appreciate advice what sources may have some example code. Thanks Holger ___ The ALL NEW CS2000 from CompuServe Better! Faster! More Powerful! 250 FREE hours! Sign-on Now! http://www.compuserve.com/trycsrv/cs2000/webmail/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web service
Dear all, sorry for pasting this to the Cocoon group but I really enjoy the traffic and expertise here ! I am using Cocoon and Axis. I recently did deploy a webservice on Axis/Tomcat. Now a friend asked me to write an asp client to access the Axis jws via asp and SOAP. I really appreciate advice what sources may have some example code. Thanks Holger ___ The ALL NEW CS2000 from CompuServe Better! Faster! More Powerful! 250 FREE hours! Sign-on Now! http://www.compuserve.com/trycsrv/cs2000/webmail/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web service Help!
I´ve followed this example to make an xml web service. It functions fine, but when I want to make my own client with xmlHTTP and javascript on windows xp, I cant connect to the service http://www.xml.com/pub/a/ws/2003/03/18/cocoon.html This is my client. html head script languaje=javascript function enviar(){ var xmlhttp = new ActiveXObject(Msxml2.XMLHTTP.4.0); search=Word xmlhttp.open(POST, http://127.0.0.1/cocoon-soap/xmlservice2,true); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { alert(xmlhttp.responseText) } } //xmlhttp.setRequestHeader(Man, POST http://127.0.0.1/cocoon-soap/xmlservice2 HTTP/1.1) //xmlhttp.setRequestHeader(MessageType, CALL) xmlhttp.setRequestHeader(Content-Type, text/xml) var miSoap='?xml version=1.0 encoding=UTF-8? \n' + 'SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; xmlns:xsd=http://www.w3.org/1999/XMLSchema; \n'+ 'SOAP-ENV:Body \n' + 'ns1:getQuote xmlns:ns1=urn:xmethods-delayed-quotes \n' + 'symbol xsi:type=xsd:stringIBM/symbol \n' + '/ns1:getQuote \n' + '/SOAP-ENV:Body \n' + '/SOAP-ENV:Envelope'; alert(miSoap); xmlhttp.send(miSoap); } /script /head body input type=button onclick=enviar() value=enviar /body /html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web service Help!
The ones that are interested in the article. You only have to copy cocoon-soap.war in webapps an create a table in mysql with the demo.sql script. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]