[mule-user] how to configure http inbound and http outbound endpoints in mule config fi

13 views
Skip to first unread message

renga nathan

unread,
Apr 21, 2009, 6:07:03 AM4/21/09
to us...@mule.codehaus.org
im just sending the response via http:inbound endpoint address=http://localhsot:8080..........

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


David Dossot

unread,
Apr 21, 2009, 2:54:06 PM4/21/09
to us...@mule.codehaus.org
You need to help us help you.

Before talking about Mule configuration aspects, can you explain what you are trying to achieve?

D.

renga nathan

unread,
Apr 27, 2009, 5:22:13 AM4/27/09
to us...@mule.codehaus.org
i want to send request from browser through http endpoint and i have to return to the browser throught the http outbound endpoint.


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

Sven Vintges

unread,
Apr 27, 2009, 5:50:05 AM4/27/09
to us...@mule.codehaus.org
Hi,

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.

renga nathan

unread,
Apr 27, 2009, 6:28:44 AM4/27/09
to us...@mule.codehaus.org
i have a wsdl file which connects to the mysql database.........if i give my name as a input to the console.....
i ill hit the wsdl file and the mentioned id in the mysql database will display in the console as the output
.......

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&amp;method=service"
synchronous="true"/>
<outbound-endpoint address="stdio://System.out"/>

</chaining-router>
</outbound>

</service>
</model>
</mule>

Wey Cheng

unread,
Apr 27, 2009, 8:13:19 PM4/27/09
to us...@mule.codehaus.org

Try removing the stdio outbound endpoint and using passthrough outbound
router.
Wey
--
View this message in context: http://www.nabble.com/how-to-configure-http-inbound-and-http-outbound-endpoints-in-mule-config-fi-tp23152901p23267810.html
Sent from the Mule - User mailing list archive at Nabble.com.

Vlad Gleiberman

unread,
Apr 27, 2009, 8:51:07 PM4/27/09
to us...@mule.codehaus.org
Hi,

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

renga nathan

unread,
Apr 28, 2009, 3:04:30 AM4/28/09
to us...@mule.codehaus.org
can u explain it still clearly...........because i have to use two outbound routers...

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

David Dossot

unread,
Apr 28, 2009, 3:24:58 AM4/28/09
to us...@mule.codehaus.org
You are mixing things up.

If I understand what you are trying to do, you want to browser to synchronously interact with a Mule service, which will act as a proxy to a remote web service, as shown here.

If that is the case, the browser will get its response from the inbound router of your service and not from an outbound endpoint in a chaining router. Just define both in and out endpoints to be synchronous and you should be closer to the solution you are looking for.

D.

Antoine Borg

unread,
Apr 28, 2009, 4:36:13 AM4/28/09
to us...@mule.codehaus.org
What you need to focus upon is the flow of things:

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

renga nathan

unread,
Apr 28, 2009, 4:59:15 AM4/28/09
to us...@mule.codehaus.org
XML Parsing Error: no element found
Location: http://localhost:8182/mule/services/renga
Line Number 1, Column 1:

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:

xmlns:http="http://www.mulesource.org/schema/mule/http/2.1"

http://www.mulesource.org/schema/mule/http/2.1 http://www.mulesource.org/schema/mule/http/2.1/mule-http.xsd

<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&amp;method=service"
synchronous="true"/>

</pass-through-router>

</outbound>

</service>
</model>
</mule>

KINDLY HELP IN THIS ISSUE PLS..........

Wey Cheng

unread,
Apr 28, 2009, 3:01:47 PM4/28/09
to us...@mule.codehaus.org
You probably need to send a xml payload (soap message) to mule who will
proxy it over to cxf. SoapUI would help you do just that for testing.

Wey

Vlad Gleiberman

unread,
Apr 28, 2009, 8:26:49 PM4/28/09
to us...@mule.codehaus.org
Hi,

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

---------------------------------------------------------------------

David Dossot

unread,
Apr 29, 2009, 9:06:20 AM4/29/09
to us...@mule.codehaus.org
We don't cover the RMI transport in "Mule in Action" because it is not as widely used as the other transports we discuss. The amount of replies you are receiving is a testimony to this fact.

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.

Why code? What about the config sample from the user guide? Does it work for you?
 
2. Should my POJO follow RMI requirements (implementing Interface,
extending UnicastRemoteObject, etc)?

I don't know but I would be very surprised if that would be the case. Have you tried?
 
3. How to generate stub (to be passed to remote client)?

What about no stub and using Spring RMI client support?

D.


Vlad Gleiberman

unread,
Apr 29, 2009, 7:37:17 PM4/29/09
to us...@mule.codehaus.org
David,
 
I'm an Architect at Victoria Uni and need to make the final decision next month about implementing Mule as our ESB.
 
First, I'll describe our main integration case.
Our services are provided by several Java RMI servers (around 400 methods all together).
On top of them I've got an RMI Broker with 2 methods:
  • register(deregister) - used by servers
  • execute - used by all clients
So, what I need is to:
  • substitute this Broker with native Mule functionality (preferred if possible)   or
  • incorporate this Broker inside Mule
And I don't want to change the way existing clients use services, so - no Spring RMI if possible.
 
Now, to your other questions.
 
1. What I mean by "code" is not only Java code but config as well.
    Yes, I tried (in 2.2) and got 
 
        ClassNotFoundException: org.mule.transport.rmi.MuleRMIFactory
 
2.  If (1) is resolved, I'll try with POJO (incorporating scenario), but I'll still need a stub for clients.
 
 
Thanks for your time and your advice is appreciated,
 
Vlad
 
 


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

David Dossot

unread,
Apr 30, 2009, 2:35:37 AM4/30/09
to us...@mule.codehaus.org
Vlad,

Thanks for the detailed explanations.

Your battle plan sounds good: try first with Mule's RMI transport and revert to an embedded approach if need be.

To run the example, you actually need to check out the RMI transport (https://svn.codehaus.org/mule/tags/mule-2.2.1/transports/rmi), as some classes (like the missing one in your case) are in the /test directory.

With the examples running, you will quickly find out if things pan out.

Cheers,
D.

Vlad Gleiberman

unread,
May 1, 2009, 1:23:17 AM5/1/09
to us...@mule.codehaus.org
David,
 
Now when I've got access to your test cases situation is much clearer for me.
I'll start from problems.
First, I don't see how to expose the whole POJO not method by method.
Second, it looks like there is no help from Mule in providing stubs. And without stabs I can't do any remote testing.
If you could advise me on these 2 issues.
 
Now, good staff.
Inside mule, rmi transport works.
Problem was that your RMI transport example is misleading.
It gives a definite impression that org.mule.transport.rmi.MuleRMIFactory (as well as rmi.policy) is production level when in reality it is only for your internal testing.
I had to write my own ones and it's OK now.
 
I'll do more work on RMI next week but I rely heavily on your answers to my 2 questions.
 
Vlad
 
 


From: David Dossot [mailto:ddo...@gmail.com]
Sent: Thursday, 30 April 2009 4:36 PM

David Dossot

unread,
May 1, 2009, 3:22:21 PM5/1/09
to us...@mule.codehaus.org
Vlad: I never had to use the RMI transport.

All: Can anyone answer Vlad's questions?

Vlad Gleiberman

unread,
May 4, 2009, 1:01:50 AM5/4/09
to us...@mule.codehaus.org
David,
 
I've spent the whole day today trying to find out how to call Mule RMI remotely.
Unfortunately, no success at all!
While calls to RMI are successfully executed inside Mule, there is no configuration for remote calls.
There is no registry listening on 1099 (or any other port).
 
My configuration (in case it's useful):
 
  <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="helo" methodArgumentTypes="java.lang.String," />
 
  <model name="rmiModel">
    <service name="rmiCaller">
      <inbound>
        <stdio:inbound-endpoint system="IN" 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>
  </model>
 
If there is no USERs with RMI experience can any DEVELOPER answer my questions?
 
Vlad
 
 


From: David Dossot [mailto:ddo...@gmail.com]
Sent: Saturday, 2 May 2009 5:22 AM

Vlad Gleiberman

unread,
May 11, 2009, 9:58:01 PM5/11/09
to us...@mule.codehaus.org
Hi,
 
Simplest configuration doesn't run:
 
    <service name="cxfCaller">
      <inbound>
        <inbound-endpoint address="vm://testincxf" synchronous="true" />

        <stdio:inbound-endpoint system="IN" synchronous="true" />
      </inbound>
      <bridge-component/>
      <outbound>
        <chaining-router>
          <outbound-endpoint synchronous="true"
            address="wsdl-cxf:http://www.webservicex.net/stockquote.asmx?WSDL&amp;method=GetQuote"/>

          <stdio:outbound-endpoint system="OUT" synchronous="true" />
        </chaining-router>
      </outbound>
    </service>
 
Error:
 
    org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType.  Incoming portion of HTML stream: <h1>Length Required</h1>
 
 
What have I done wrong?
 
Vlad
 
 

Vlad Gleiberman

unread,
May 11, 2009, 10:28:36 PM5/11/09
to us...@mule.codehaus.org
Hi,
 
Existing WS provided by AXIS with input student Id (String) and output complex type.
 
Trying to use AXIS client
 
     muleClient.send("axis:http://server/myVU/ws/si?method=getStudentInfo", "1234567" , null);
 
Got error
 
    Deserializing parameter 'getStudentInfoReturn':  could not find deserializer for type {http://out.ws.as.its.vu.edu.au}StudentOut
    (yes, it's correct complex type which should be returned from the service
 
Found some notes about need of <bean-type> entries to describe StudentOut, but not a single example.
 
Questions:
1. <bean-type> syntax and how to attach to send?
2. Should I provide a real class for StudentOut or just mention?
 
Vlad

Andrew Perepelytsya

unread,
May 11, 2009, 11:01:24 PM5/11/09
to us...@mule.codehaus.org

This external service is known to be unavailable oftentimes, confirm by trying through a browser.

Andrew

Vlad Gleiberman

unread,
May 12, 2009, 12:16:47 AM5/12/09
to us...@mule.codehaus.org
Not that simple.
Another site:
 
    muleClient.send("wsdl-cxf:http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl&method=GetCityWeatherByZIP", "06390", null);
 
Result:
 
    org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType.  Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
    <HTML><HEAD><TITLE>Length Required</TITLE><META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
    <BODY><h2>Length Required</h2><hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
 
 


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

Vlad Gleiberman

unread,
May 12, 2009, 7:02:57 PM5/12/09
to us...@mule.codehaus.org, Gregory Brackett
In the absence of any replies I'll provide additional information.
 
I need to access RPC WS returning a complex type with the following WSDL ( I deleted several fields to make it smaller).
How to do it in Mule?
 
  <?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="urn:StudentInfo" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:StudentInfo" xmlns:intf="urn:StudentInfo" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://out.ws.as.its.vu.edu.au" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
- <wsdl:types>
  <import namespace="urn:StudentInfo" />
- <complexType name="AddressOut">
- <sequence>
  <element name="addressType" nillable="true" type="xsd:string" />
  <element name="country" nillable="true" type="xsd:string" />
  <element name="line1" nillable="true" type="xsd:string" />
    </sequence>
  </complexType>
- <complexType name="StudentOut">
- <sequence>
  <element name="email" nillable="true" type="xsd:string" />
  <element name="familyName" nillable="true" type="xsd:string" />
  <element name="firstName" nillable="true" type="xsd:string" />
  <element name="gender" nillable="true" type="xsd:string" />
  <element name="vuId" nillable="true" type="xsd:string" />
  <element name="addresses" nillable="true" type="impl:ArrayOf_tns1_AddressOut" />
  </sequence>
  </complexType>
  </schema>
- <schema targetNamespace="urn:StudentInfo" xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://out.ws.as.its.vu.edu.au" />
- <complexType name="ArrayOf_tns1_AddressOut">
- <complexContent>
- <restriction base="soapenc:Array">
  <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:AddressOut[]" />
  </restriction>
  </complexContent>
  </complexType>
  </schema>
  </wsdl:types>
- <wsdl:message name="getStudentInfoResponse">
  <wsdl:part name="getStudentInfoReturn" type="tns1:StudentOut" />
  </wsdl:message>
- <wsdl:message name="getStudentInfoRequest">
  <wsdl:part name="in0" type="xsd:string" />
  </wsdl:message>
- <wsdl:portType name="StudentInfo">
- <wsdl:operation name="getStudentInfo" parameterOrder="in0">
  <wsdl:input message="impl:getStudentInfoRequest" name="getStudentInfoRequest" />
  <wsdl:output message="impl:getStudentInfoResponse" name="getStudentInfoResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="siSoapBinding" type="impl:StudentInfo">
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="getStudentInfo">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="getStudentInfoRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:StudentInfo" use="encoded" />
  </wsdl:input>
- <wsdl:output name="getStudentInfoResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:StudentInfo" use="encoded" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="StudentInfoService">
- <wsdl:port binding="impl:siSoapBinding" name="si">
  <wsdlsoap:address location="http://porcupine.vu.edu.au/myVUC/ws/si" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
 
 
 


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

Vlad Gleiberman

unread,
May 12, 2009, 7:52:31 PM5/12/09
to us...@mule.codehaus.org, Gregory Brackett
Andrew & Co,
 
 
Tried with another free WS (availability confirmed thru soapUI) - same result.
 
Configuration
 
    <service name="cxfCaller">
      <inbound>

        <stdio:inbound-endpoint system="IN" synchronous="true" />
      </inbound>
      <bridge-component/>
      <outbound>
        <chaining-router>
          <outbound-endpoint synchronous="true"
                             address="wsdl-cxf:http://www.webservicemart.com/uszip.asmx?WSDL&amp;method=ValidateZip">
          </outbound-endpoint>

          <stdio:outbound-endpoint system="OUT" synchronous="true" />
        </chaining-router>
      </outbound>
    </service>
 
Error
 
    Response was of unexpected text/html ContentType.  Incoming portion of HTML stream: <h1>Length Required</h1> (org.apache.cxf.interceptor.Fault)
      org.apache.cxf.interceptor.StaxInInterceptor:73 (null)
 
Waiting for directions,
 
Vlad
 


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 Gupta

unread,
May 12, 2009, 9:20:37 PM5/12/09
to us...@mule.codehaus.org
I just ran the stockquote example in 2.2.1 EE and it runs absolutely fine (the website xmethods is sometimes not available). have you tried running the example? If you get the same error while running the example then copy paste your env, class path etc and post it here.

Vlad Gleiberman

unread,
May 12, 2009, 9:45:31 PM5/12/09
to us...@mule.codehaus.org

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

    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,

Vlad




> -----Original Message-----
> From: Puneet Gupta [mailto:mule.us...@mulesource.com]
> Sent: Wednesday, 13 May 2009 11:21 AM
> To: us...@mule.codehaus.org

Alan Cassar

unread,
May 13, 2009, 4:17:32 AM5/13/09
to us...@mule.codehaus.org
you have to configure you axis outbound endpoiont, add the named parameters with their respective type, otherwise axis will not load the correct serialisers/deserialisers. More info http://www.mulesource.org/display/MULE2USER/Configuring+Axis http://ricston.com/blog/?p=276

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.

Puneet Gupta

unread,
May 13, 2009, 8:29:39 PM5/13/09
to us...@mule.codehaus.org
Can you run $MULE_HOME/examples/stockquote/stockquote

Choose option 2 WSDL

enter stock symbol

copy and paste the output here.

Additionally
run command >env and copy paste the output.

Vlad Gleiberman

unread,
May 14, 2009, 9:32:33 PM5/14/09
to us...@mule.codehaus.org
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

Vlad Gleiberman

unread,
May 18, 2009, 7:14:56 PM5/18/09
to us...@mule.codehaus.org
Alan,
 
I still haven't got a reply.
 
Vlad


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

Vlad Gleiberman

unread,
May 18, 2009, 7:34:42 PM5/18/09
to us...@mule.codehaus.org

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
>

Vlad Gleiberman

unread,
May 18, 2009, 8:33:51 PM5/18/09
to us...@mule.codehaus.org
Hi,
 
I've got 2 services extracting Student info.
The first one calls RPC WS and transforms reply to the Canonical form:
 
<vm:endpoint name="VM1" address="vm://legacyGetStudentInfo" synchronous="true" />
<service name="Legacy">
  <inbound>    <vm:inbound-endpoint ref="VM1" />  </inbound>
  <outbound>
    <chaining-router>
      <axis:outbound-endpoint synchronous="true" responseTransformer-refs="ObjectToXml   ToCanonical"
                address="
http://porcupine.vu.au/myVUC/ws/si?method=getStudentInfo">
      </axis:outbound-endpoint>
    </chaining-router>
  </outbound>
</service>
 
It works fine both from command line and thru  muleClient.send("VM1", "some ID", null);
 
The second one delegates to the first one to extract and then transforms to another required format:
 
<vm:endpoint name="VM2" address="vm://getStudentInfo" synchronous="true" />
 
<service name="GetStudentInfo">
  <inbound> <vm:inbound-endpoint ref="VM2" /> </inbound>
  <outbound>
    <chaining-router>
      <vm:outbound-endpoint ref="VM1" responseTransformer-refs="CanonicalToStudentDTO  XmlToObject" />
    </chaining-router>
  </outbound>
</service>
 
It works OK from command line, but when called thru muleClient.send("VM2, "some ID", null);,
the payload is not the new generated class, but an echo of parameter "some ID".
 
Any thoughts? Thanks,
 
Vlad
 
 


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

David Dossot

unread,
May 19, 2009, 12:15:01 AM5/19/09
to us...@mule.codehaus.org

Hi Vlad,

Why do you use the chaining router while you only dispatch to a single endpoint ?

Cheers,
D.

Vlad Gleiberman

unread,
May 19, 2009, 12:26:14 AM5/19/09
to us...@mule.codehaus.org
When I test from a command line I add <stdio:outbound> (and <stdio:inbound>) endpoints.
 
I just changet to path-through router - same result. 


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

David Dossot

unread,
May 19, 2009, 1:48:29 PM5/19/09
to us...@mule.codehaus.org
I have tested your config, with pass-through routers in lieu of chaining ones and a synchronous call to an HTTP service instead of Axis, and it works as expected.

Using the client to send on VM2 returns the response of the HTTP service, through VM1.

It is maybe an issue of the Axis transport that would not honor the synchronous=true attribute on the endpoint? That would explain why you get the inbound message as a service response.

D.

Vlad Gleiberman

unread,
May 19, 2009, 11:37:17 PM5/19/09
to us...@mule.codehaus.org
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

David Dossot

unread,
May 19, 2009, 11:54:18 PM5/19/09
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...

Vlad Gleiberman

unread,
May 20, 2009, 6:41:19 PM5/20/09
to us...@mule.codehaus.org
David,
 
It was simple - XPP3 jar missed from embedded CLASSPATH (and present in command line Mule).
 
Thanks,
Vlad
 


From: ddo...@gmail.com [mailto:ddo...@gmail.com] On Behalf Of David Dossot
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

Puneet Gupta

unread,
May 27, 2009, 10:26:45 AM5/27/09
to us...@mule.codehaus.org
Unfortunately, the fact that you cant run the stockquote example successfully suggests an environment issue at your end. All of the examples are tested with every build I am confident that it runs fine.

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.

Puneet Gupta

unread,
May 27, 2009, 10:35:03 AM5/27/09
to us...@mule.codehaus.org
You either need to provide the client class with all the defined types or you can use a proxy and do the marshalling and unmarshalling in your java code.This is no different than any jax-ws client code that you write for accessing web services.

Vlad Gleiberman

unread,
May 27, 2009, 7:01:50 PM5/27/09
to us...@mule.codehaus.org
Puneet,

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

Vlad Gleiberman

unread,
May 27, 2009, 11:48:25 PM5/27/09
to us...@mule.codehaus.org
I think that you were right - something wrong on the machine/network.
Today both services (your stockquote & my own test) are working fine.

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

Sergey Gubarev

unread,
Mar 11, 2011, 6:02:26 AM3/11/11
to us...@mule.codehaus.org
Good day.
I am sorry for my English, I am from Russia.

Please answer to me: I configure a http inbound-endpoint. How can I see a good result of conecting?

file-config.xml
Reply all
Reply to author
Forward
0 new messages