The problem was resolved when I used a new Ode version! I was using the version in the Intalio package..
But thanks for your help ;) René -----Original Message----- From: Alex Boisvert [mailto:[EMAIL PROTECTED] Sent: dinsdag 10 april 2007 16:59 To: [email protected] Subject: Re: Invoke from BPEL process In your BPEL document, you should check that xmlns:ns4="urn:PageProcessor" is defined and the ns4: prefix is used for your assignment(s) related to the <sendEmail> element. alex On 4/10/07, René Bos <[EMAIL PROTECTED]> wrote: > > Hello, > > I want to invoke my own Web Service from BPEL, but I get this error: > > 16:24:27,262 ERROR [ExternalService] Error sending message to Axis2 for > ODE mex > {PartnerRoleMex#108 [PID {http://ode/bpel/unit-test}EmailSender] calling > [EMAIL PROTECTED](...)} > org.apache.axis2.AxisFault: method " > http://schemas.xmlsoap.org/soap/envelope/sendEmail" not defined in service > > This operations is defined in the Service but in the namespace > urn:PageProcessor, the SOAP request made by ODE (I sniffed it) is wrong: > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ > "> > <soapenv:Header> > <addr:To xmlns:addr="http://www.w3.org/2005/08/addressing > ">http://localhost:8181/web_service/process_server.php</addr:To> > <addr:Action xmlns:addr=" > http://www.w3.org/2005/08/addressing"/> > </soapenv:Header> > <soapenv:Body> > <sendEmail xmlns:ns1="urn:PageProcessor"> > <createBody>Berichtje</createBody> > <host>mail.pagenic.nl</host> > <bcc_username_arr>none</bcc_username_arr> > <subject>Onderwerpje</subject> > <mailer>smtp</mailer> > <from_username>Kees</from_username> > <cc_username_arr>none</cc_username_arr> > <to_username_arr>jan</to_username_arr> > </sendEmail> > </soapenv:Body> > </soapenv:Envelope> > > That message produces the above error. If I send it to the Service > directly using a custom SOAP sender (sendsoap.bat), it says sendEmail > isn't defined. > If i add a namespace ns4="urn:PageProcessor" it works well if I send it > using sendsoap.bat > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ > " > xmlns:ns4="urn:PageProcessor"> > <soapenv:Header> > <addr:To xmlns:addr="http://www.w3.org/2005/08/addressing > ">http://localhost:8181/web_service/process_server.php</addr:To> > <addr:Action xmlns:addr=" > http://www.w3.org/2005/08/addressing"/> > </soapenv:Header> > <soapenv:Body> > <ns4:sendEmail> > <createBody>Berichtje</createBody> > <host>mail.pagenic.nl</host> > <bcc_username_arr>none</bcc_username_arr> > <subject>Onderwerpje</subject> > <mailer>smtp</mailer> > <from_username>Kees</from_username> > <cc_username_arr>none</cc_username_arr> > <to_username_arr>jan</to_username_arr> > </ns4:sendEmail> > </soapenv:Body> > </soapenv:Envelope> > > The Web Service I use is build with PEAR_SOAP. > > What can be wrong? > > Rene >
