but i could nt able to retrieve the data in http outbound endpoint..........
kindly guide me in solving the problem
im new to the mule still experimenting mule now.......
In component class do we need to write a java code to get the input string passed from html file........
if yes how to get the value from html file to java code.........
i couldnt able to use request.getparameter there......
then how can i get it in code
kindly help me
thanks......
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
But i dont know how to configure it...
Can u tell how to get the response in the mule config-file which i sent through browser and to return the result back to the browser......
I don't really understand your problem, but I think you'll need the synchronous attribute set on your inbound and outbound endpoint. This way your request on the inbound endpoint will be send to the url on you outbound endpoint. The response will be send back.
For example inbound: http://localhost:8080 outbound url www.google.com -> google will show in the browser. But when you add a path it will be sent as a GET parameter with (default) body= prefixed.
Perhaps you could also explain your situation so we can give you a clearer answer.
AND BELOW IS THE CODE IM EXECUTING IN MULE.
ITS WORKING IN CONSOLE......AND SENDING RESPONSE TO CONSOLE.......
BUT WHEN I CHANGE THE INBOUND ENDPOINT ADDRESS TO SOME URL LIKE http://localhost:8189/..........MY INPUT RESPONSE IS NOT HITTING MY WSDL FILE AND THE OUTPUT IS NOT DISPLAYED IN THE BROWSER....I HAVE CHANGED MY OUTBOUND ENDPOINT ADDRESS TO http://localhost:8189......
SO THE PROBLEM IS I NEED TO SEND THE INPUT FROM HTTP AND I WANT TO GET THE RESULT IN THE SAME BROWSER,,,
KINDLY HELP ME IN THIS ISSUE.........AM TRYING A LOT FOR THIS....PLS
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:file="http://www.mulesource.org/schema/mule/file/2.1"
xmlns:spring="http://www.springframework.org/schema/beans"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.mulesource.org/schema/mule/core/2.1 http://www.mulesource.org/schema/mule/core/2.1/mule.xsd">
<model name="sample">
<service name="inputService">
<inbound>
<inbound-endpoint address="stdio://System.in?promptMessage=Enter your name and your id will be displayed:"
synchronous="true">
</inbound-endpoint>
</inbound>
<outbound>
<chaining-router>
<outbound-endpoint address="wsdl-cxf:http://localhost:8080/webservice/services/DBC?WSDL&method=service"
synchronous="true"/>
<outbound-endpoint address="stdio://System.out"/>
</chaining-router>
</outbound>
</service>
</model>
</mule>
I need to expose a POJO as an RMI in Mule 2.2.
Questions:
1. I haven't found any RMI examples. I think that they exist somewhere.
2. Should my POJO follow RMI requirements (implementing Interface,
extending UnicastRemoteObject, etc)?
3. How to generate stub (to be passed to remote client)?
Thanks,
Vlad
first outbound router to fetch data from wsdl file
second outbound router to display it in the browser page.......
will pass through router do this thing........
kindly explain me cleary............im new to the mule still experimenting it........thank u
1) Using console, you do the following stdio --> Web Service --> stdio.
This is because you start from the console, send the message to the web
service and then send the result to the console. Note however, that
when I say console, you are using *2* *different *endpoints - stdio://in
and stdio://out
2) Using a browser, you do the following: browser --> Web Service -->
*back to browser*. What you want is for the reply from the web service
to "bounce" back to the browser. Instead of having an HTTP outbound
endpoint, just let the synchronous reply come back to the HTTP endpoint
(i.e., the browser)
HTH
A
Im getting this error.......while trying to connect to my external webservices through browser........
when i hit http://localhost:8182/mule /servicess/ im getting the above mentioned error.....
"renga" is the value i want to pass through the browser.....
MY CONFIGURATION FILES LOOKS LIKE:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:file="http://www.mulesource.org/schema/mule/file/2.1"
xmlns:http="http://www.mulesource.org/schema/mule/http/2.1"
xmlns:spring="http://www.springframework.org/schema/beans"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.mulesource.org/schema/mule/http/2.1 http://www.mulesource.org/schema/mule/http/2.1/mule-http.xsd
http://www.mulesource.org/schema/mule/core/2.1 http://www.mulesource.org/schema/mule/core/2.1/mule.xsd">
<model name="sample">
<service name="inputService">
<inbound>
<http:inbound-endpoint host="localhost" port="8182" path="mule/services" synchronous="true"/>
</inbound>
<outbound>
<pass-through-router>
<outbound-endpoint address="wsdl-cxf:http://localhost:8080/webservice/services/DBC?WSDL&method=service"
synchronous="true"/>
</pass-through-router>
</outbound>
</service>
</model>
</mule>
KINDLY HELP IN THIS ISSUE PLS..........
Wey
I need to expose a POJO as an RMI in Mule 2.2.
Questions:
1. I haven't found any RMI examples, including in the most recent books
"Mule in Action", "Mule 2", "Open source ESB in action".
Can anybody provide some code.
2. Should my POJO follow RMI requirements (implementing Interface,
extending UnicastRemoteObject, etc)?
3. How to generate stub (to be passed to remote client)?
Thanks,
Vlad
---------------------------------------------------------------------
1. I haven't found any RMI examples, including in the most recent books
"Mule in Action", "Mule 2", "Open source ESB in action".
Can anybody provide some code.
2. Should my POJO follow RMI requirements (implementing Interface,
extending UnicastRemoteObject, etc)?
3. How to generate stub (to be passed to remote client)?
From: David Dossot [mailto:ddo...@gmail.com]
Sent: Wednesday, 29 April 2009 11:06 PM
To: us...@mule.codehaus.org
Subject: Re: [mule-user] RMI in Mule - second attempt to get help
From: David Dossot [mailto:ddo...@gmail.com]
Sent: Thursday, 30 April 2009 4:36 PM
From: David Dossot [mailto:ddo...@gmail.com]
Sent: Saturday, 2 May 2009 5:22 AM
This external service is known to be unavailable oftentimes, confirm by trying through a browser.
Andrew
From: Andrew Perepelytsya [mailto:aper...@gmail.com]
Sent: Tuesday, 12 May 2009 1:01 PM
To: us...@mule.codehaus.org
Subject: Re: [mule-user] CXF problem in Mule 2.2
From: Vlad Gleiberman [mailto:Vlad.Gl...@vu.edu.au]
Sent: Tuesday, 12 May 2009 12:29 PM
To: us...@mule.codehaus.org
Subject: [mule-user] AXIS in Mule 2.2
From: Vlad Gleiberman [mailto:Vlad.Gl...@vu.edu.au]
Sent: Tuesday, 12 May 2009 2:17 PM
To: us...@mule.codehaus.org
Subject: RE: [mule-user] CXF problem in Mule 2.2
Puneet,
I was running itboth from command line &
from inside Java program.
Classpath for java program (everything form mule
2.2 lib):
java -classpath
$OPT/saxon-8.9.0.4-osgi.jar:$OPT/saaj-api-1.3-osgi.jar:$OPT/comm
ons-discovery-0.4-osgi.jar:$OPT/axis-1.4-osgi.jar:$OPT/geronimo-jaxrpc_1.1_spec-
1.1-osgi.jar:$OPT/servlet-api-2.5-6.1.11.jar:$MULE/mule-transport-axis-2.2.1.jar
:$OPT/commons-codec-1.3-osgi.jar:$OPT/commons-httpclient-3.1-osgi.jar:$OPT/jaxws
-api-2.1-1-osgi.jar:$OPT/activation-1.1-osgi.jar:$OPT/cxf-tools-common-2.1.2.jar
:$OPT/cxf-rt-bindings-soap-2.1.2.jar:$OPT/stax-utils-20080702-osgi.jar:$OPT/XmlS
chema-1.4.2.jar:$OPT/jaxb-impl-2.1.9-osgi.jar:$OPT/jaxb-xjc-2.1.9-osgi.jar:$OPT/
cxf-rt-databinding-jaxb-2.1.2.jar:$OPT/xml-resolver-1.2-osgi.jar:$OPT/wsdl4j-1.6
.1-osgi.jar:$OPT/geronimo-annotation_1.0_spec-1.1.1.jar:$OPT/jaxb-api-2.1-osgi.j
ar:$OPT/FastInfoset-1.2.2.jar:$OPT/cxf-common-utilities-2.1.2.jar:$OPT/cxf-rt-co
re-2.1.2.jar:$OPT/cxf-api-2.1.2.jar:$MULE/mule-transport-cxf-2.2.1.jar:$MULE/mul
e-transport-vm-2.2.1.jar:$OPT/commons-beanutils-1.7.0-osgi.jar:$OPT/jaxen-1.1.1-
osgi.jar:$OPT/wstx-asl-3.2.6-osgi.jar:$OPT/dom4j-1.6.1-osgi.jar:$OPT/geronimo-st
ax-api_1.0_spec-1.0.1.jar:$OPT/groovy-all-1.5.6-osgi.jar:$MULE/mule-transport-st
dio-2.2.1.jar:$OPT/commons-pool-1.4.jar:$MULE/mule-transport-rmi-2.2.1.jar:$OPT/
commons-collections-3.2-osgi.jar:$OPT/jug-2.0.0-osgi-asl.jar:$OPT/geronimo-j2ee-
connector_1.5_spec-1.1-osgi.jar:$OPT/commons-io-1.3.1-osgi.jar:$OPT/commons-lang
-2.4-osgi.jar:$OPT/spring-core-2.5.6.jar:$OPT/spring-beans-2.5.6.jar:$OPT/spring
-context-2.5.6.jar:$BOOT/log4j-1.2.14.jar:$BOOT/slf4j-api-1.5.0.jar:$BOOT/slf4j-
log4j12-1.5.0.jar:$BOOT/jcl104-over-slf4j-1.5.0.jar:$OPT/backport-util-concurren
t-3.1-osgi.jar:$MULE/mule-core-2.2.1.jar:$MULE/mule-module-client-2.2.1.jar:lib/
test.jar:$CLASSPATH
vu.EmbedMule
Configuration (relevant CXF client in bold & bigger font):
<?xml version="1.0" encoding="UTF-8"?>
<mule
xmlns="http://www.mulesource.org/schema/mule/core/2.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.2"
xmlns:rmi="http://www.mulesource.org/schema/mule/rmi/2.2"
xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.2"
xmlns:axis= "http://www.mulesource.org/schema/mule/axis/2.2"
xmlns:management="http://www.mulesource.org/schema/mule/management/2.2"
xmlns:jnp="http://www.mulesource.org/schema/mule/jnp/2.2"
xmlns:xm="http://www.mulesource.org/schema/mule/xml/2.2"
http://www.mulesource.org/schema/mule/core/2.2
http://www.mulesource.org/schema/mule/core/2.2/mule.xsd
http://www.mulesource.org/schema/mule/stdio/2.2
http://www.mulesource.org/schema/mule/stdio/2.2/mule-stdio.xsd
http://www.mulesource.org/schema/mule/management/2.2
http://www.mulesource.org/schema/mule/management/2.2/mule-management.xsd
http://www.mulesource.org/schema/mule/cxf/2.2
http://www.mulesource.org/schema/mule/cxf/2.2/mule-cxf.xsd
http://www.mulesource.org/schema/mule/axis/2.2
http://www.mulesource.org/schema/mule/axis/2.2/mule-axis.xsd
http://www.mulesource.org/schema/mule/rmi/2.2
http://www.mulesource.org/schema/mule/rmi/2.2/mule-rmi.xsd
http://www.mulesource.org/schema/mule/jnp/2.2
http://www.mulesource.org/schema/mule/jnp/2.2/mule-jnp.xsd
http://www.mulesource.org/schema/mule/xml/2.2
http://www.mulesource.org/schema/mule/xml/2.2/mule-xml.xsd">
<xm:xslt-transformer name="toCanon" xsl-file="conf/test.xsl"
/>
<spring:bean name="jndiFactory"
class="vu.RMIFactory"/>
<spring:bean name="jndiContext"
factory-bean="jndiFactory" factory-method="create"/>
<rmi:connector name="rmi" jndiContext-ref="jndiContext"
securityPolicy="conf/rmi.policy"/>
<rmi:endpoint name="rmi11" host="localhost" port="1099" object="RMITest1UMO" method="helo1"
methodArgumentTypes="java.lang.String," />
<model
name="rmiModel">
<service
name="rmiCaller">
<inbound>
<inbound-endpoint address="vm://testin" synchronous="true"
/>
</inbound>
<bridge-component/>
<outbound>
<chaining-router>
<rmi:outbound-endpoint ref="rmi11" synchronous="true"
/>
<stdio:outbound-endpoint system="OUT" synchronous="true"
/>
</chaining-router>
</outbound>
</service>
<service
name="cxfCaller">
<inbound>
<stdio:inbound-endpoint system="IN" synchronous="true"
/>
<inbound-endpoint
address="vm://testincxf" synchronous="true"
/>
</inbound>
<bridge-component/>
<outbound>
<chaining-router>
<outbound-endpoint
synchronous="true"
address="wsdl-cxf:http://www.webservicex.net/stockquote.asmx?WSDL&method=GetQuote">
</outbound-endpoint>
<stdio:outbound-endpoint system="OUT" synchronous="true"
/>
</chaining-router>
</outbound>
</service>
</model>
</mule>
Thanks,
Alan Cassar, Software
Engineer | Tel: +356 21334457 | Fax: +356 21 334156
ricston Ltd., Northfields Suite 4, Independence Avenue,
Mosta MST9026 - MALTA
email: alan....@ricston.com | web:http://www.ricston.com
----------
Disclaimer - This email and any files transmitted with it
are confidential and contain privileged or copyright information. You
must not present this message to another party without first gaining
permission from the sender. If you are not the intended recipient you
must not copy, distribute or use this email or the information
contained in it for any purpose other than to notify us. If you have
received this message in error, please notify the sender immediately
and delete this email from your system. We do not guarantee that this
material is free from viruses or any other defects although due care
has been taken to minimise the risk. Any views stated in this
communication are those of the actual sender and not necessarily those
of Ricston Ltd. or its
subsidiaries.
Choose option 2 WSDL
enter stock symbol
copy and paste the output here.
Additionally
run command >env and copy paste the output.
From: Alan Cassar [mailto:alan....@ricston.com]
Sent: Wednesday, 13 May 2009 6:18 PM
To: us...@mule.codehaus.org
Subject: Re: [mule-user] AXIS in Mule 2.2 - Second attempt - accessing RPC WS
From: Vlad Gleiberman
Sent: Friday, 15 May 2009 11:33 AM
To: us...@mule.codehaus.org
Subject: RE: [mule-user] AXIS in Mule 2.2 - Second attempt - accessing RPC WS
Alan,Thank you very much for your help.Unfortunately, I was already familiar with these sources and I can't make them work.Whatever I do with soap parameters, AXIS still wants deserializer for type {http://out.ws.as.its.vu.edu.au}StudentOut.I made it work when I copied deserializer au.edu.vu.its.as.ws.out.StudentOut from the WS server (it was generated there by AXIS when creating WS).(Another way of getting this class was to generate it on client machine using AXIS & WSDL).I haven't found anything about this in Mule documents.So, please confirm that for AXIS RPC WSs it is mandatory to (manually) generate deserializers before using Mule.I still hope that I'm wrong and there is a better way to achieve it.Vlad
From: Alan Cassar [mailto:alan....@ricston.com]
Sent: Wednesday, 13 May 2009 6:18 PM
To: us...@mule.codehaus.org
Subject: Re: [mule-user] AXIS in Mule 2.2 - Second attempt - accessing RPC WS
Stockquote (part):
INFO: Sending message to http://www.webservicex.net/stockquote.asmx
INFO 2009-05-19 09:30:07,656 [SystemStreamConnector.receiver.1] org.mule.transp
ort.service.DefaultTransportServiceDescriptor: Loading default outbound transfor
mer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest
INFO 2009-05-19 09:30:07,675 [SystemStreamConnector.receiver.1] org.mule.transp
ort.http.HttpClientMessageDispatcher: Connected: endpoint.outbound.http://www.we
bservicex.net/stockquote.asmx
19/05/2009 09:30:08 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentTy
pe. Incoming portion of HTML stream: <h1>Length Required</h1>
at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInte
rceptor.java:73)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:220)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449)
at org.mule.transport.cxf.transport.MuleUniversalConduit.dispatchMuleMes
sage(MuleUniversalConduit.java:255)
at org.mule.transport.cxf.transport.MuleUniversalConduit$1.handleMessage
(MuleUniversalConduit.java:185)
ENV
_=/bin/env
SSH_CONNECTION=::ffff:140.159.197.77 2493 ::ffff:140.159.60.89 22
ANT_HOME=/usr/local/apache-ant-1.6.5
PATH=/usr/local/jdk1.5.0_14/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/
usr/X11R6/bin:/home/vlad/bin:/usr/local/jdk1.5.0_14/bin:/usr/local/apache-ant-1.
6.5/bin:.
SHELL=/bin/ksh
VISUAL=vi
HOSTNAME=eclipse1.vu.edu.au
USER=vlad
CLASSPATH=:.
SSH_CLIENT=::ffff:140.159.197.77 2493 22
MULE_HOME=/home/vlad/mule/mule-2.2.1
JAVA_HOME=/usr/local/jdk1.5.0_14
TERM=wy60
INPUTRC=/etc/inputrc
G_BROKEN_FILENAMES=1
LANG=en_AU.UTF-8
DBPRINT=SJSLASER10
SSH_TTY=/dev/pts/4
LOGNAME=vlad
LS_COLORS=
PS1= eclipse1:$PWD>
MAIL=/var/spool/mail/vlad
HOME=/home/vlad
HISTSIZE=16535
LESSOPEN=|/usr/bin/lesspipe.sh %s
KDEDIR=/usr
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
QTDIR=/usr/lib64/qt-3.3
PS2=more>>
> -----Original Message-----
> From: Puneet Gupta [mailto:mule.us...@mulesource.com]
> Sent: Thursday, 14 May 2009 10:30 AM
> To: us...@mule.codehaus.org
> Subject: Re: RE: RE: [mule-user] CXF problem in Mule 2.2 -
> third attempt
>
From: Vlad Gleiberman [mailto:Vlad.Gl...@vu.edu.au]
Sent: Tuesday, 19 May 2009 9:35 AM
To: us...@mule.codehaus.org
Subject: RE: [mule-user] CXF problem in Mule 2.2 - third attempt, attn. Puneet Gupta
Hi Vlad,
Why do you use the chaining router while you only dispatch to a single endpoint ?
Cheers,
D.
From: ddo...@gmail.com [mailto:ddo...@gmail.com] On Behalf Of David Dossot
Sent: Tuesday, 19 May 2009 2:15 PM
To: us...@mule.codehaus.org
Subject: Re: [mule-user] Client.send problem in Mule 2.2
From: David Dossot [mailto:ddo...@gmail.com]
Sent: Wednesday, 20 May 2009 3:48 AM
To: us...@mule.codehaus.org
You're right, I forgot you said you had tested VM1 independently in your first email.
Then you may want to increase the log verbosity to DEBUG and follow what happens with your particular configuration.
Good luck ;)
D.
On May 19, 2009 8:37 PM, "Vlad Gleiberman" <Vlad.Gl...@vu.edu.au> wrote:
David,Thank you for your time, but I don't agree with you.If "Axis transport would not honor the synchronous=true attribute" then VM1 would return inbound message - it's the first one requiring a SYNC response(and it was happening when my AXIS configuration was wrong!).In addition, it all works OK from command line.Looks like there is some problem with XmlToObject transformer and this problem is processed differently in command line & online.Will try to do more tomorrow.Vlad
From: David Dossot [mailto:ddo...@gmail.com]
Sent: Wednesday, 20 May 2009 3:48 AM> To: us...@mule.codehaus.org
> Subject: Re: [mule-user] Client.send problem in Mule 2.2
> I have tested your config, with pass-through routers in lieu of chaining ones and a synchronous ca...
Sent: Wednesday, 20 May 2009 1:54 PM
To: us...@mule.codehaus.org
Subject: Re: RE: [mule-user] Client.send problem in Mule 2.2
There are number of things that could be wrong.
1) There is a proxy server in your org or The unix machine cannot reach the site (do a traceroute)
2) Something in the classpath is conflicting with the Mule/CXF jars.
Thank you for your answer, but it only confirmed my suspicion.
I thought that Mule provides transport services (including jax-ws client
code) and in this situation it definitely doesn't.
What's the problem in using on-the-fly XML to Object transformation?
BTW, is there a way to get a row XML payload without proxy and do a
transformation myself using transformer?
Thanks,
Vlad
> -----Original Message-----
> From: Puneet Gupta [mailto:mule.us...@mulesource.com]
> Sent: Thursday, 28 May 2009 12:35 AM
> To: us...@mule.codehaus.org
This issue is closed.
Thanks.
> -----Original Message-----
> From: Puneet Gupta [mailto:mule.us...@mulesource.com]
> Sent: Thursday, 28 May 2009 12:27 AM
> To: us...@mule.codehaus.org