Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 70161 invoked from network); 10 May 2006 12:39:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2006 12:39:19 -0000 Received: (qmail 36706 invoked by uid 500); 10 May 2006 12:39:06 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 36657 invoked by uid 500); 10 May 2006 12:39:06 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 36622 invoked by uid 99); 10 May 2006 12:39:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 05:39:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of atmanes@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 05:39:05 -0700 Received: by ug-out-1314.google.com with SMTP id a2so50165ugf for ; Wed, 10 May 2006 05:38:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=SYHI4bLn34OYskvuKx6a4V5g5WBeu9rD3MeuF7J5icCgQbEe0HkY4lejsCH/2aBuyXz/t3q6ILfA4/5ndaXAVwUh/GEHllac8aoxsEmX2gziuwImat0q/6REK8Rg/FxI+Ps1bjSxdIZmamtKzk2PQbcLTOIxQ18Zk1qN5E1kHLs= Received: by 10.78.45.13 with SMTP id s13mr115960hus; Wed, 10 May 2006 05:38:43 -0700 (PDT) Received: by 10.78.43.18 with HTTP; Wed, 10 May 2006 05:38:43 -0700 (PDT) Message-ID: Date: Wed, 10 May 2006 08:38:43 -0400 From: "Anne Thomas Manes" To: axis-user@ws.apache.org Subject: Re: Use axis2 to call bpel In-Reply-To: <003201c6741b$0964d560$1400a8c0@daff06> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11671_9240594.1147264723398" References: <4461AC7F.5080300@opensource.lk> <003201c6741b$0964d560$1400a8c0@daff06> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_11671_9240594.1147264723398 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline What is the SOAPAction URI specified in the WSDL for "initiateProcess" operation? You should specify that URI in setAction method. Anne On 5/10/06, nancy wrote: > > Hi, > I have not used that method. My code is: > > Public void invoke(){ > Options options =3D new Options(); > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > boolean exit =3D false; > String serviceGroupContextId =3D null; > EndpointReference EPR=3Dnew > EndpointReference(webserviceURL); > > options.setTo(EPR); > options.setTimeOutInMilliSeconds(50000); > > ServiceClient serviceClient; > serviceClient =3D new ServiceClient(); > serviceClient.setOptions(options); > MessageContext requestMessageContext =3D new > MessageContext(); > > requestMessageContext.setEnvelope(getRequestEnvelope(messageName, > parametersList, > serviceGroupContextId)); > > OperationClient opClient =3D serviceClient > .createClient(ServiceClient.ANON_OUT_IN_O= P > ); > opClient.addMessageContext(requestMessageContext); > opClient.setOptions(options); > > opClient.execute(true); > } > > private SOAPEnvelope getRequestEnvelope(String operationName, > HashMap param, String groupContextId) { > String namespace1=3D"http://services.oracle.com/bpel/Proc= ess > "; > > SOAPFactory fac =3D OMAbstractFactory.getSOAP11Factory(); > SOAPEnvelope envelope =3D fac.getDefaultEnvelope(); > OMNamespace namespace =3D fac.createOMNamespace( > > namespace1, "Process"); > > OMElement params1 =3D fac.createOMElement(operationName, > namespace); > Set set=3Dparam.keySet(); > Iterator iter=3Dset.iterator(); > > while(iter.hasNext()){ > String paramName=3Diter.next().toString(); > String paramValue=3Dparam.get(paramName).toString= (); > OMElement paramOM =3D > fac.createOMElement(paramName,namespace); > paramOM.setText(paramValue); > params1.addChild(paramOM); > } > envelope.getBody().setFirstChild(params1); > > > return envelope; > } > > Thanks > Nancy > > -----Original Message----- > From: Eran Chinthaka [mailto:chinthaka@opensource.lk] > Sent: Wednesday, May 10, 2006 2:34 PM > To: axis-user@ws.apache.org > Subject: Re: Use axis2 to call bpel > > Axis2 will never set a non-empty SOAPAction, if you have not called > options.setAction(youraction). > > Are u sure you have not called that method. > > -- Chinthaka > > nancy wrote: > > Yah I understand that marking message with Urgent won't help in getting > > quick reply from others.Anyways,I want to send a SOAP Envelope in the > way > > that I don't need to manipulate the requested parameter (OMELEMENT) > there > to > > get the parameters. > > > > I tried it but with no success. Exception is coming: > > > > Cannot find binding operation definition of soapAction '/orabpel' in > > > http://daff06:9700/orabpel/default/ProcessManager/1.0/ProcessManager.wsdl > > > > My Request was: > > > > > > My request was: > > > > > > > > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/ > "> /> > > > > > > > > > > xmlns:Process=3D"http://services.oracle.com/bpel/Process > "> > > > alue>11 > ssProcessId> > > > > > > And my ProcessManager.wsdl has no defined SOAP BINDINGS. > > > > Is it necessary to define soap bindings with wsdl. > > Why axis2 is taking /orabpel as soapaction? > > > > Thanks > > Nancy > > > > -----Original Message----- > > From: Eran Chinthaka [mailto:chinthaka@opensource.lk] > > Sent: Wednesday, May 10, 2006 1:11 PM > > To: axis-user@ws.apache.org > > Subject: Re: URGENT Use axis2 to call bpel > > > > Hi Nancy, > > > > First, marking your messages to this list as URGENT won't help you in > > any means. Rather it will make the case worse. Opensource developers ar= e > > willing and like to help others, but can not be forced to do so (except > > you have a private service contract with them ;) ). > > > > > > nancy wrote: > >> Can anyone tell how to use axis 2 to call bpel process. Earlier I was > >> using java classes generated by wsdl2java tool of axis1.But now; I > don't > >> want to use java classes. I want to just mention web service URL, > >> message name and parameters.For eg: > >> > > > > .............. > > > > > >> But using this I need to write code to get result out of OMElement. Or > >> you can say I want to know how bpel process can understand the output > or > >> input of axis2? I am using ORACLE BPEL. > >> > > > > Sorry I can not understand this problem. Do you wanna send a SOAPEnvelo= p > > e and get back only the Body first child ? If you can explain a bit mor= e > > I might be able to help you. > > > > BTW, Axis2 or any web service engine do not care whether you talk to a > > BPEL server or not. It sends out and receive SOAP messages, that's all. > > > > -- Chinthaka > > > >> > >> > >> Thanks > >> > > > > > > > > > > > > ------=_Part_11671_9240594.1147264723398 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline What is the SOAPAction URI specified in the WSDL for "initiateProcess&= quot; operation? You should specify that URI in setAction method.

An= ne

On 5/10/06, nancy <nancy.aggarw= al@daffodildb.com> wrote:
Hi,
I have not used that method. My code is:

Public void invoke()= {
Options options =3D new Options();
     &n= bsp;          options.set= TransportInProtocol(Constants.TRANSPORT_HTTP);
    &= nbsp;           bool= ean exit =3D false;
            = ;    String serviceGroupContextId =3D null;
 &n= bsp;            = ;  EndpointReference EPR=3Dnew EndpointReference(webserviceURL);<= br>
           &n= bsp;    options.setTo(EPR);
    =             opt= ions.setTimeOutInMilliSeconds (50000);

          = ;      ServiceClient serviceClient;
 =             &nb= sp;  serviceClient =3D new ServiceClient();
   =             &nb= sp;serviceClient.setOptions(options);
     &nbs= p;          MessageContex= t requestMessageContext =3D new MessageContext();

requestMessageContext.setEnvelope(getRequestEnvelope(messageName,parametersList,
         =             &nb= sp;          serviceGroup= ContextId));

         &= nbsp;      OperationClient opClient =3D servi= ceClient
          &nb= sp;            =          .createClient( ServiceClient.ANON_OUT_IN_OP);
       = ;         opClient.addMessageC= ontext(requestMessageContext);
       = ;         opClient.setOptions(= options);

         &nbs= p;      opClient.execute(true);
}

p= rivate SOAPEnvelope getRequestEnvelope(String operationName,
            = ;    HashMap param, String groupContextId) {
 &= nbsp;           &nbs= p;  String namespace1=3D"http://services.oracle.com/bpel/Process";

=             &nb= sp;   SOAPFactory fac =3D=20 OMAbstractFactory.getSOAP11Factory();
     &nbs= p;          SOAPEnvelope = envelope =3D fac.getDefaultEnvelope();
     &nb= sp;          OMNamespace = namespace =3D fac.createOMNamespace(

     &= nbsp;           &nbs= p;            &= nbsp; namespace1, "Process");

           &= nbsp;    OMElement params1 =3D fac.createOMElement(oper= ationName,
namespace);
       &nbs= p;        Set set=3Dparam.keySet();=
            = ;    Iterator iter=3Dset.iterator();

  = ;            &n= bsp; while(iter.hasNext ()){
           &= nbsp;           &nbs= p;String paramName=3Diter.next().toString();
    &nb= sp;            =        String paramValue=3Dparam.get(par= amName).toString();
        &nbs= p;            &= nbsp;   OMElement paramOM =3D
fac.createOMElement (paramName,namespace);
        &= nbsp;           &nbs= p;    paramOM.setText(paramValue);
   &nbs= p;            &= nbsp;        params1.addChild(paramOM);<= br>            =     }
       &nbs= p;        envelope.getBody().setFir= stChild(params1);


           &= nbsp;    return envelope;
    &n= bsp;   }

Thanks
Nancy

-----Original Message= -----
From: Eran Chinthaka [mailto:chinthaka@opensource.lk]
Sent: Wednesday, May 10, 2006 2:34 PM
To: axis-user@ws.apache.org<= /a>
Subject: Re: Use axis2 to call bpel

Axis2 will never set a no= n-empty SOAPAction, if you have not called
options.setAction(youraction)= .

Are u sure you have not called that method.

-- Chinthaka
=
nancy wrote:
> Yah I understand that marking message with Urgent = won't help in getting
> quick reply from others.Anyways,I want to sen= d a SOAP Envelope in the way
> that I don't need to manipulate the requested parameter (OMELEMENT= ) there
to
> get the parameters.
>
> I tried it but wi= th no success. Exception is coming:
>
> Cannot find binding ope= ration definition of soapAction '/orabpel' in
>
http://daff06:9700/orabpel/default/ProcessManager/1.0/P= rocessManager.wsdl
>
> My Request was:
>
>
> My request was:
>
> <?xml version=3D'1.0' encoding=3D'U= TF-8'?>
>
> <soapenv:Envelope
> xmlns:soapenv=3D&qu= ot;http://schemas.xml= soap.org/soap/envelope/ "><soapenv:Header
/>
>
> <soapenv:Body&= gt;
>
> <Process:initiateProcess
>
xmlns:Process=3D= "http://services.o= racle.com/bpel/Process "><Process:primaryKeyV
>
alue>1</Process:prim= aryKeyValue><Process:businessProcessId>1</Process:busine
>= ; ssProcessId></Process:initiateProcess></soapenv:Body></= soapenv:Envelope>
>
>
> And my ProcessManager.wsdl has no defined SOAP BIN= DINGS.
>
> Is it necessary to define soap bindings with wsdl.> Why axis2 is taking /orabpel as soapaction?
>
> Thanks
> Nancy
>
> -----Original Message-----
> From: Era= n Chinthaka [mailto:chinthaka@op= ensource.lk]
> Sent: Wednesday, May 10, 2006 1:11 PM
> To:= =20 axis-user@ws.apache.org
&= gt; Subject: Re: URGENT Use axis2 to call bpel
>
> Hi Nancy,>
> First, marking your messages to this list as URGENT won't hel= p you in
> any means. Rather it will make the case worse. Opensource develope= rs are
> willing and like to help others, but can not be forced to do= so (except
> you have a private service contract with them ;) ).
>
>
> nancy wrote:
>> Can anyone tell how to us= e axis 2 to call bpel process. Earlier I was
>> using java classes= generated by wsdl2java tool of axis1.But now; I don't
>> want to = use java classes. I want to just mention web service URL,
>> message name and parameters.For eg:
>>
>
>= ; ..............
>
>
>> But using this I need to write= code to get result out of OMElement. Or
>> you can say I want to = know how bpel process can understand the output or
>> input of axis2? I am using ORACLE BPEL.
>>
>> Sorry I can not understand this problem. Do you wanna send a SOAPEnve= lop
> e and get back only the Body first child ? If you can explain a= bit more
> I might be able to help you.
>
> BTW, Axis2 or any web= service engine do not care whether you talk to a
> BPEL server or no= t. It sends out and receive SOAP messages, that's all.
>
> -- C= hinthaka
>
>>
>>
>> Thanks
>>
>
= >
>
>




------=_Part_11671_9240594.1147264723398--