We wanted to develop a client, which is able to upload BPEL to the WSO2 BPServer from another App, but we failed

oliverhankel's picture

Hi, we generated a client with the help of WSDL2Java and use XMLBeans as databinding. We could connect to the UploadService and the corresponding WSDL. We solved the problem with the unsecure SSL-certificate, but now we are stuck: We cannot solve the cookie issue:

___________________________________

stub = new BPELUploaderStub('https://10.0.0.1:9443/services/BPELUploader');

Options options = stub._getServiceClient().getOptions(); options.setManageSession(true);

options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);

options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);

__________________________________

We tried to extract the cookie from HTTP-Response after a login, but it didn't work.

Is somebody else working on a BPEL deployment client for the BP-Server, who could help us?

Thanks

Oliver

 

 

 

inakibalzac's picture

AUto generated client from wso2bps

Deal all, I cannnot run an autogenerated client that I download from wso2bps server. do you have an idea of how to deal with the stub class an main method? regards, balzac
inakibalzac's picture

AUto generated client from wso2bps

ok, I solved this problem (http://charithaka.blogspot.com/2008/03/invoking-public-web-service.html) it runs when i invoke a simple webservice. however, it is not running when i invoke a bpel that I deployed (it runs with "try it" and eclipse client editor) the error is: org.apache.axis2.databinding.ADBException: Unexpected subelement return do you know how to solve this? regards
inakibalzac's picture

AUto generated client from wso2bps

actually, I receive this error in eclipse but in WSO2 Soap tracer it seems that is correct: soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:Body ns1:mibpelRequest xmlns:ns1="http://mibpel.wsdl" ns1:input Iñaki /ns1:input /ns1:mibpelRequest /soapenv:Body /soapenv:Envelope return soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:Header / soapenv:Body mibpelResponse xmlns="http://mibpel.wsdl" return xmlns="http://esi.prueba" Hola paquete: Iñaki/return /mibpelResponse /soapenv:Body /soapenv:Envelope any comments to run it correctly in eclipse? it seems a databinding problem
milinda's picture

Can you upload the WSDL

I can't tell what the exact error was. But if you can upload your wsdl, I'll be able to help you. This can be caused by XML schema error. Response may not be compatible with XML schema in WSDL.
inakibalzac's picture

uploading WSDL

I sending it attached. thanks in advance, iñaki
milinda's picture

The problem is with the wsdl schema

According to the following schema <element name="mibpelResponse"> <complexType> <sequence> <element name="result" type="string"/> </sequence> </complexType> </element> the response should be like following: <mibpelResponse> <result>...</result> </mibpelResponse> But instead of result you are sending 'return' element. You can change the XML schema's 'result' element to 'return' or you have to send the correct response according to the schema(What I have previously mentioned).
inakibalzac's picture

thanks

Thanks Milinda
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
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

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