Force HTTP 1.0

giaco81.gmail.com's picture
Hi, I have a service that require the content lenght defined inside the HTTP header. In ESB this is possible adding the following in a sequence. Is there a possibility to force HTTP 1.0 in a BEPL invoke? Otherwise if my BPEL invokes not directly that service but a proxy service in ESB which points to my real service (with property tag) I obtain this error: [2010-08-26 10:11:29,062] ERROR - ExternalService Unable to process response: Un expected element in SOAP body org.apache.ode.axis2.OdeFault: Unexpected element in SOAP body at org.wso2.carbon.bpel.ode.integration.utils.SOAPHelper.extractSoapBody Parts(SOAPHelper.java:284) at org.wso2.carbon.bpel.ode.integration.utils.SOAPHelper.parseSoapRespon se(SOAPHelper.java:245) at org.wso2.carbon.bpel.ode.integration.ExternalService.reply(ExternalSe rvice.java:329) at org.wso2.carbon.bpel.ode.integration.ExternalService.invoke(ExternalS ervice.java:211) at org.wso2.carbon.bpel.ode.integration.BPELMessageExchangeContextImpl.i nvokePartnerUnreliable(BPELMessageExchangeContextImpl.java:52) at org.apache.ode.bpel.engine.PartnerLinkPartnerRoleImpl$UnreliableInvok er.run(PartnerLinkPartnerRoleImpl.java:345) at org.apache.ode.bpel.engine.ODEProcess$ProcessRunnable.run(ODEProcess. java:1290) at org.apache.ode.bpel.engine.BpelServerImpl$ServerRunnable.run(BpelServ erImpl.java:839) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:41 7) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:675) at java.lang.Thread.run(Thread.java:595) Thanks Matteo
milinda's picture

Use flexible endpoint configurations provided by WSO2 BPS

Please refer document at [1] to achieve what you want. This is for WSO2 BPS 2.0. Configuration for WSO2 BPS 1.1.1 is little bit different than this. Please let us know if you any further clarifications. [1] http://wso2.org/project/bps/2.0.0/docs/user_guide.html#Using-Manipulating-Endpoints
giaco81.gmail.com's picture

Hi, I found an other problem:

Hi, I found an other problem: I need to remove ah header from a soap message generated by the BPEL to invoke a proxy service. This is the an header example soapenv:Header> addr:To xmlns:addr="http://www.w3.org/2005/08/addressing">........ addr:Action xmlns:addr="http://www.w3.org/2005/08/addressing">service addr:ReplyTo xmlns:addr="http://www.w3.org/2005/08/addressing"> addr:Address>http://www.w3.org/2005/08/addressing/anonymous /addr:ReplyTo> addr:MessageID xmlns:addr="http://www.w3.org/2005/08/addressing">uuid:hqejbhcnphr5jophewigk4 /soapenv:Header> Thanks
milinda's picture

Do you want to remove addressing headers

WSO2 BPS 2.0.0 doesn't support removal of addressing endpoints. But we have include that feature to BPS 2.0.1 which still in alpha stage. You can download it from [1]. [1] http://builder.wso2.org/~carbon/releases/carbon/3.0.1/Alpha3/wso2bps-2.0.1.zip
waruna's picture

In WSO2 BPS 2.0.1 addressing

In WSO2 BPS 2.0.1 addressing is disabled by default. If you need to enable addressing for a partner service, use the following configuration in the deploy.xml
waruna's picture

(No subject)

<invoke partnerLink="CreditPartnerLink"> <service name="credit:CreditRatingService" port="CreditRatingPort"> <endpoint xmlns="http://wso2.org/bps/bpel/endpoint/config">    <enableAddressing value="true"/> </endpoint> </service> </invoke>
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
KeellsSuper is a leading supermarket chain with 50-plus outlets in Sri Lanka, and it offers the only online supermarket in the country. In 2005, JKH implemented SAP ERP across it’s 70 subsidiaries...
Thursday, February 16th 2012, 09.00 AM (PST)

Thursday, February 16th 2012, 10.00 AM (GMT)