@Rajith and @Viraj: Tried both cases and working. Thanks.
On Mon, Jun 22, 2015 at 5:14 PM, Viraj Senevirathne <[email protected]> wrote: > Hi Dinusha, > > I looked at the Debug log of the ESB. It shows that two filters were > able to get user name and password get correctly matched. But as we > are sending this soap envelope as rest payload SOAP Action is not > resloved at the ESB. > > [2015-06-22 16:49:12,951] DEBUG - SynapseMessageReceiver Synapse > received a new message for message mediation... > [2015-06-22 16:49:12,951] DEBUG - SynapseMessageReceiver Received To: > /services/StockQuote > [2015-06-22 16:49:12,951] DEBUG - SynapseMessageReceiver SOAPAction: null > [2015-06-22 16:49:12,952] DEBUG - SynapseMessageReceiver WSA-Action: null > [2015-06-22 16:49:12,952] DEBUG - Axis2SynapseEnvironment Injecting > MessageContext > [2015-06-22 16:49:12,952] DEBUG - Axis2SynapseEnvironment Using Main > Sequence for injected message > > This is the cause of this problem. Sorry for the earlier reply. > > This is how you can do it without creating a separate proxy. > > 1. Create Soap Project by entering wsdl link of the backend (i.e. > http://localhost:9000/services/SimpleStockQuoteService?wsdl ) > > 2. Then copy and paste the Soap request to the Soap getQuote window. > > <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" > xmlns:ser="http://services.samples" > xmlns:xsd="http://services.samples/xsd"> > <soap:Header> > <ser:credentials> > <ser:name>UserName</ser:name> > <ser:id>001</ser:id> > </ser:credentials> > </soap:Header> > <soap:Body> > <ser:getQuote> > <!--Optional:--> > <ser:request> > <!--Optional:--> > <xsd:symbol>IBM</xsd:symbol> > </ser:request> > </ser:getQuote> > </soap:Body> > </soap:Envelope> > > Then change the target url to ESB (text box above the window) (i.e. > http://localhost:8280/services/SimpleStockQuoteService ) > > 3. Make sure ESB has required source config > > 4. Then send SOAP message using SOAPUI. > > I tested and got correct results. The Screenshot of the result is attached. > > Thanks, > > On Mon, Jun 22, 2015 at 3:41 PM, Dinusha Boteju <[email protected]> wrote: > > Hi Viraj, > > > > Thanks for the reply. I tried the steps that you have mentioned but the > > response I am getting is the same as what is shown in the screen shot > that > > you have attached; > > > > The response; > > > > <faultstring>The endpoint reference (EPR) for the Operation not found is > > /services/SimpleStockQuoteService?wsdl and the WSA Action = null. If this > > EPR was previously reachable, please contact the server > > administrator.</faultstring> > > > > But the SoapUI project which was created from the proxy service returns > the > > expected result. > > > > -Dinusha > > > > > > > > On Mon, Jun 22, 2015 at 3:03 PM, Viraj Senevirathne <[email protected]> > wrote: > >> > >> Hi Dinusha, > >> > >> You can send a request to the ESB from SOAPUI without creating a > >> separate Proxy Service and taking the wsdl link. Follow following > >> steps. > >> > >> 1. First start SoapUI by running soapui.sh. > >> > >> 2. Create a soapui project and keep wsdl box blank and press Ok. > >> > >> 3. Then right click on the project link and choose "New rest service > >> from the URI" > >> > >> 4. I have attached the screenshot from my soapui project. Enter the > >> same config and make sure to choose application/xml from the list. > >> > >> 5. start the ESB and copy paste source config related to sample and > >> the send request from soupui. > >> > >> thanks, > >> > >> > >> > >> On Mon, Jun 22, 2015 at 11:23 AM, Dinusha Boteju <[email protected]> > >> wrote: > >> > Hi, > >> > > >> > I'm going through Enterprise Integration Patterns(EIP) given under > fast > >> > track training program and currently going through [1]; > >> > > >> > In [0], under "Simulating the sample scenario" section, it asks to > send > >> > a > >> > soap message to the ESB through SoapUI. Since I'm unable to get a wsdl > >> > for > >> > this scenario(which only has a sequence defined in the ESB), I > created a > >> > proxy service, got its wsdl, created a SoapUI project from that wsdl > and > >> > sent the soap request to the ESB. Can someone tell me is this correct > or > >> > is > >> > there a better way to do this? > >> > > >> > [1] - > >> > https://docs.wso2.com/display/IntegrationPatterns/Pipes+and+Filters > >> > > >> > Thanks & Best regards, > >> > Dinusha > >> > > >> > _______________________________________________ > >> > Dev mailing list > >> > [email protected] > >> > http://wso2.org/cgi-bin/mailman/listinfo/dev > >> > > >> > >> > >> > >> -- > >> Viraj Senevirathne > >> Software Engineer; WSO2, Inc. > >> > >> Mobile : +94 71 818 4742 > >> Email : [email protected] > > > > > > > > -- > Viraj Senevirathne > Software Engineer; WSO2, Inc. > > Mobile : +94 71 818 4742 > Email : [email protected] >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
