How to give XML input
Hi,
I just deployed my synchelloWorld BPEL process. I tested it from console, its working fine with HTML input.
Any idea what whould be the input if I want to test the BPEL process from console using XML input?
Thanks,
Debojyoty
check out $BPEL_HOME\integration\orabpel\samples\demos\LoanDemo\LoanFlow\bpel.xml
open it and check out defaultInput property.
<loanApplication xmlns="http://www.autoloan.com/ns/autoloan">
<SSN/>
<email>[email protected]</email>
<customerName>dave</customerName>
<loanAmount>1000</loanAmount>
<carModel>BMW</carModel>
<carYear>2003</carYear>
<creditRating>0</creditRating>
</loanApplication>
Similar Messages
-
In BSP how to give the input field as mandatory?
Hi friends,
In BSP how to give the input field as mandatory?
In BSP i want to validate the input field (example checking the material no is valid or not)
if this material no doesnot exit means i want to pass error message.What is the code for that.
Moosahi
try this
in LAYOUT
<htmlb:inputField id = "vname" disabled = "False" value = "<%= v_visitor %>"/> <font color="red" size="2"><b><%= page->messages->assert_message( 'vname' ) %></b></font></td>
in DO_HANDLE_EVENT
in oninputprocessing
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
case event->id.
when 'select'.
if v_visitor = ''.
page->messages->add_message(
condition = 'vname'
message = 'Visitor Name can not be blank'
severity = page->messages->CO_SEVERITY_ERROR ).
ELSE.
here u can write ur when ur field getting filled
endif.
endcase.
endif.
give marks if it is helpful
thanks -
How to give multiple inputs to syn BPEL process in Jdeveloper
Hi,
I am new to BPEL . I have created programs which takes single input and after processing displays single output. I want to give more than one input at run time (for ex. employee name,age, salary ) and want to display Multiple output after processing them Instead of Just one that I am doing currently. How I can do that using Synchronous BPEL process . Can some one tell that What will be learning time for BPEL using google and forums, for a 3 year exeperienced person in JAVA and new to BPEL.
Yogendra RishishwarHi,
You just need to change the XSD of your process.
Someone posted something similar last week : How to change the input and output schema in BPEL process
Hope it will help you ..
romain. -
How to give digital inputs to ni 6501
I am trying to give a digital data to a port of ni 6501... Can some one exlain in which format this datas shuld be given in a C++ code
Hi,
You just need to change the XSD of your process.
Someone posted something similar last week : How to change the input and output schema in BPEL process
Hope it will help you ..
romain. -
How to give two Input File from Adapter Framework to EJB Modules
hi,
i'm using one EJB Module in SAP XI, which converts EDI file
format to XML file format. But now i'm facing a problem, that is,
in SAP XI we can able to give one file as an Input at a time, but
in my case it is <input_file_name>.edi, but my issue is i need
to refer another file also, if it is possible.?
then,
What and how we can able to use this, any clue
inputModuleData.getSupplementalData("<Name>");
or else,
we can able to achieve this through Configuration settings,
Option: addAdditionalFile
please send your suggestion as well.
thanks,
rajeshhi check the development manual for reference
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f76f9f90-0201-0010-bf84-d0409ea425f1
Note: reward points if solution found helpfull
Regards
Chandrakanth.k -
How to give declare input...
Hello all,
I have a doubt in the below declare input.
DECLARE
l_pk1_value fnd_attached_documents.pk1_value%TYPE:= '11038';(Invoice_id)
l_filename VARCHAR2(240) := 'Home_Screen2.pdf';
l_seq_num NUMBER;
Above declaration I am giving 'Home_Screen2.pdf' manually, which is taking from select FILE_NAME from fnd_lobs where PROGRAM_NAME= 'FNDATTCH'.
How can I make automate this?
Thanks and Regards,
MuthuYou have to do it in the begin block..
DECLARE
l_pk1_value fnd_attached_documents.pk1_value%TYPE:= '11038';
l_filename VARCHAR2(240);
l_seq_num NUMBER;
begin
select FILE_NAME
into l_filename
from fnd_lobs
where PROGRAM_NAME= 'FNDATTCH';
end;Or encapsulate the logic to get the file name in a function, and use it in the declaration section
DECLARE
l_pk1_value fnd_attached_documents.pk1_value%TYPE:= '11038';
l_filename VARCHAR2(240) := your_package.your_function('FNDATTCH');
l_seq_num NUMBER;Edited by: jeneesh on Mar 2, 2013 11:30 AM -
How to give user input in flsh animation??
i m a student of engineering and my project is to create animation of dc motors whose parameters can be controlled by user input
means current,voltage and speed of the rotor...how con i do it...
m totally new iin this field and learning flash...
and can i make these type of animation in flash professional CS5???What you should probably consider is using Slider components to control each of the parameters. There should be examples of how to use them in the help documentation.
-
How to give all input parameter in creation of po via bapi
sir plez tell clear process of create po via bapi, i have done upto "BAPI_PO_CREATIVE1, then what to do, plez stepwise explain
thank QDear Baskhar,
After BAPI_PO_CREATE1, you have to run BAPI_TRANSACTION_COMMIT to post
the data.
For example, from SE37:
You can goto menubar: Function Module
Test-> Test sequence,
Fill in BAPI_PO_CREATE1 then follow by BAPI_TRANSACTION_COMMIT .
Best Regards,
Ian Wong -
How to give input to 3d surface interms of cylindrical coordinates(r,theta,z)
hi,please let me know how to give input to 3d surface interms of cylindrical coordinates(r,theta,z)how to give input to 3d surface interms of cylindrical coordinates(r,theta,z)
Hi,
This is the functions you should be using:
Also, please have a look at the NI Example Finder, i think the 1st and the 4th example will be of interest to you.
Hope this helps...
.......^___________________^
....../ '---_BOT ____________ ]
...../_==O;;;;;;;;_______.:/ -
How to merge five different xml input files into three output files
Hi All,
Can you please explain me to merge 5 different xml input files into 3 output xml files.
I'm looking forward for ur suggestions...
Thanks
PullaraoHI
Please see the below links
/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
Many other examples can be found under the following link at help.sap.com
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
And some weblogs
https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
/people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
/people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
/people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
Also have a look at these seminars,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
<b>BPM CollectPattern..</b>
http://help.sap.com/saphelp_nw2004s/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
Thanks !
Regards
Abhishek Agrahari
Questions are welcome here!!
<b>Also mark helpful answers by rewarding points </b> -
How to map XML File input to VO (eventually to update table) upon fileupld
Reqirement: I am downloading an XML File (basically name-value pair) from user using OAMessageFileUploadBean. I need to take this file and update to an existing record in the table (cs_incidents_all). XML File schema is well-known in advance.
Approach: Don't know what is the best, but I'm thinking if there is an OAF way to map the XML File (Blobdomain) to VO and get the rowIMPL.getColumn1Value to fetch all the datavalues then loop thru all the columns (xml-tags) and finally call plsql APIs which will update/insert into table (cs_incidents_all)
Is this possible in OAF? If so please shed some light as to how to map XML File to VO.
If this is not possible then please let me know the other way. I have to do this inside the oaf.
Thank you,Can someone please let me know if this is possible in OAF?
-
How to give input parameter to Bapi when executing a method.
Hi All,
I have 1 input field and 1 button.I've defined a model node and inside that model attribute in my view.If I enter something in the Input field the value should go to the particular model attribute I defined.How to pass that input parameter.I have a action like this....
public void onActionGetDateDetails(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionGetDateDetails(ServerEvent)
wdThis.wdGetGetDateDetailsCustController().execute_Bapi_Get_Date_Details("");
// while executing the above method I have to pass the input parameter typed in the input field.
Structure of my context :
Bapi_Date_Details
>Network List(Model Node)
|
-->Network (Model Attribute)
//@@end
Help me to solve this.
Thankx in advance.
Regards,
Karthick.K.EHi Karthick,
You can associate an input field's value to a BAPI in two ways:
1) binding the input UI element's 'value' directly to the BAPI's input attribute that you want to set. This is the methos Noufal suggested. In this method, make sure you initialize the attribute through the following lines of code in the doInit() method, else, the input field will be disabled.
<b><Bapi_name>Input input = new <Bapi_name>Input();
input.set<Attribute_name>(new <dataType>);</b>
2) The second method is settting the input's 'value' to some other attribute(say 'abc') and giving this value to the input parameter just before calling the RFC.
input.set<Attribute_name>(wdContext.currentContextElement.getAbc());
Hope this helps,
Best Regards,
Nibu -
i've searched on how to parse xml against xsd,dtd,etc.. without the needs of internet connection..
but unfortunately, only the xsd file can be set locally and still there needs the internet connection for the other features, properties.
XML: GML file input from gui
XSD: input from gui
javax.xml
package demo;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.XMLConstants;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import org.xml.sax.SAXException;
public class Sample1WithJavaxXML {
public static void main(String[] args) {
URL schemaFile = null;
try {
//schemaFile = new URL("http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd");
File file0 = new File("AppSchema-C01-v1_0.xsd");
schemaFile = new URL(file0.toURI().toString());
} catch (MalformedURLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
//Source xmlFile = new StreamSource(new File("web.xml"));
Source xmlFile = new StreamSource(new File("C01.xml"));
SchemaFactory schemaFactory = SchemaFactory
.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
//File file1 = new File("XMLSchema.dtd");
//SchemaFactory schemaFactory = SchemaFactory
//.newInstance("javax.xml.validation.SchemaFactory:XMLSchema.dtd");
Schema schema = null;
try {
schema = schemaFactory.newSchema(schemaFile);
} catch (SAXException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Validator validator = schema.newValidator();
try {
validator.validate(xmlFile);
System.out.println(xmlFile.getSystemId() + " is valid");
} catch (SAXException e) {
System.out.println(xmlFile.getSystemId() + " is NOT valid");
System.out.println("Reason: " + e.getLocalizedMessage());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}Xerces
package demo;
import java.io.File;
import java.util.Date;
import org.apache.xerces.parsers.DOMParser;
public class SchemaTest {
private String xmlFile = "";
private String xsdFile = "";
public SchemaTest(String xmlFile, String xsdFile) {
this.xmlFile = xmlFile;
this.xsdFile = xsdFile;
public static void main (String args[]) {
File file0 = new File("AppSchema-C01-v1_0.xsd");
String xsd = file0.toURI().toString();
SchemaTest testXml = new SchemaTest("C01.xml",xsd);
testXml.process();
public void process() {
File docFile = new File(xmlFile);
DOMParser parser = new DOMParser();
try {
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
xsdFile);
ErrorChecker errors = new ErrorChecker();
parser.setErrorHandler(errors);
System.out.println(new Date().toString() + " START");
parser.parse(docFile.toString());
} catch (Exception e) {
System.out.print("Problem parsing the file.");
System.out.println("Error: " + e);
System.out.println(new Date().toString() + " ERROR");
return;
System.out.println(new Date().toString() + " END");
}Thanks a lot Sir DrClap..
I tried to use and implement the org.w3c.dom.ls.LSResourceResolver Interface which is based on the SAX2 EntityResolver.
please give comments the way I implement it. Here's the code:
LSResourceResolver Implementation
import org.w3c.dom.ls.LSInput;
import org.w3c.dom.ls.LSResourceResolver;
import abc.xml.XsdConstant.Path.DTD;
import abc.xml.XsdConstant.Path.XSD;
public class LSResourceResolverImpl implements LSResourceResolver {
public LSResourceResolverImpl() {
* {@inheritDoc}
@Override
public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
LSInput input = new LSInputImpl(publicId, systemId, baseURI);
if ("http://www.w3.org/2001/xml.xsd".equals(systemId)) {
input.setByteStream(classLoader.getResourceAsStream(XSD.XML));
} else if (XsdConstant.PUBLIC_ID_XMLSCHEMA.equals(publicId)) {
input.setByteStream(classLoader.getResourceAsStream(DTD.XML_SCHEMA));
} else if (XsdConstant.PUBLIC_ID_DATATYPES.equals(publicId)) {
input.setByteStream(classLoader.getResourceAsStream(DTD.DATATYPES));
return input;
}I also implement org.w3c.dom.ls.LSInput
import java.io.InputStream;
import java.io.Reader;
import org.w3c.dom.ls.LSInput;
public class LSInputImpl implements LSInput {
private String publicId;
private String systemId;
private String baseURI;
private InputStream byteStream;
private String stringData;
public LSInputImpl(String publicId, String systemId, String baseURI) {
super();
this.publicId = publicId;
this.systemId = systemId;
this.baseURI = baseURI;
//getters & setters
}Then, here's the usage/application:
I create XMLChecker class (SchemaFactory implementation is Xerces)
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.xml.XMLConstants;
import javax.xml.stream.FactoryConfigurationError;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import abc.xml.XsdConstant.Path.XSD;
public class XMLChecker {
private ErrorMessage errorMessage = new ErrorMessage();
public boolean validate(String filePath){
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
List<Source> schemas = new ArrayList<Source>();
schemas.add(new StreamSource(classLoader.getResourceAsStream(XSD.XML_SCHEMA)));
schemas.add(new StreamSource(classLoader.getResourceAsStream(XSD.XLINKS)));
schemas.add(new StreamSource(classLoader.getResourceAsStream("abc/xml/AppSchema.xsd")));
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
schemaFactory.setResourceResolver(new LSResourceResolverImpl());
try {
Schema schema = schemaFactory.newSchema(schemas.toArray(new Source[schemas.size()]));
Validator validator = schema.newValidator();
validator.setErrorHandler(new ErrorHandler() {
@Override
public void error(SAXParseException e) throws SAXException {
errorMessage.setErrorMessage(e.getMessage());
errorMessage.setLineNumber(e.getLineNumber());
errorMessage.setColumnNumber(e.getLineNumber());
throw e;
@Override
public void fatalError(SAXParseException e) throws SAXException {
errorMessage.setErrorMessage(e.getMessage());
errorMessage.setLineNumber(e.getLineNumber());
errorMessage.setColumnNumber(e.getLineNumber());
throw e;
@Override
public void warning(SAXParseException e) throws SAXException {
errorMessage.setErrorMessage(e.getMessage());
errorMessage.setLineNumber(e.getLineNumber());
errorMessage.setColumnNumber(e.getLineNumber());
throw e;
StreamSource source = new StreamSource(new File(filePath));
validator.validate(source);
} catch (SAXParseException e) {
return false;
} catch (SAXException e) {
errorMessage.setErrorMessage(e.getMessage());
return false;
} catch (FactoryConfigurationError e) {
errorMessage.setErrorMessage(e.getMessage());
return false;
} catch (IOException e) {
errorMessage.setErrorMessage(e.getMessage());
return false;
return true;
public ErrorMessage getErrorMessage() {
return errorMessage;
}Edited by: erossy on Aug 31, 2010 1:56 AM -
How to send XML file to https server using POST
Hi, I am having an requirement, that I have to connect to https server and I have to pass an input XML file as a response server will give me output XML file.
The certificate validation part is over, I am using FileInputStream to read the XML file and attaching this to connection.getOutputStream(); but server is throwing me DTD does n't match.
Can any body tell me how to send XML file, I have to use any DOM parser to send the XML file, suggest me and give me sample code.
Thanks,Can anybody give me the solution
-
Required Attribute style XML input from BPEL
Hi all,
We are integrating JDE 811 with BPEL using ORACLE SOA Suite 10133.
As per the documentation given http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28996/bpel_pm.htm#CDEICHJB, we created the BPEL process to support transacation from BPEL to JDE 811. As given in the document we generated the WSDL in attribute style. For testing the BPEL Process, they have given the XML input in the document in the format of attribute style as given below :
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://xmlns.oracle.com/GetYearDescription_SYNC">
<ns1:jdeRequest type="callmethod">
<callMethod name="GetYearDescription" runOnError="no">
<params>
<param name="mnCalendarYear">58</param>
</params><onError abort="yes"/>
</callMethod>
</ns1:jdeRequest>
</soap:Body>
</soap:Envelope>
and the output we received as
<GetYearDescription_SYNCProcessResponsehttp://xmlns.oracle.com/GetYearDescription_SYNCPSFTcallmethodDV811*ALL>
<callMethodGetYearDescriptionnourn:iwaysoftware:jde/services/JDEJAVA_CMFGBASE/B3000260/GetYearDescription>
<params>
<parammnCalendarYear>58</param>
<paramszYearDescription>2058</param>
</params>
</callMethod>
</GetYearDescription_SYNCProcessResponse>
But, if we use the current schema and give input using normal HTML form on the BPELConsole then the error comes like
WSIF JCA Execute of operation 'GetYearDescription' failed due to: Error in processing the input document.; nested exception is: javax.resource.ResourceException:
Error in processing the input document.</summary>
</part><part name="detail"><detail>javax.resource.ResourceException: Error in processing the input document.
that is why for outbound integration we need to give raw XML during runtime as input to the bpel process in bpel console manually. and that input looks like
Also in real time scenario, we are receiving the XML input from a third party software/Adapter that may be a flat file/.xml flat file/DB and we need to pass the similar data in BPEL to the JDE 811. Here we are not able to pass the data to JDE as the adapter accepts the input in attribute style XML.
If we are trying to enter that input through a flat .xml file then it returns no data, as nothing is passed to that process.
Any idea how we can process this without giving raw xml input manually during run time, means using normal HTML Form.
if it is not possible then please tell me what will be the required XML that we have to pass as input in that flat file.
Thanks,
AnindyaHi All,
SOAP based input is required for any BPEL process for testing in BPEL Console.
We have created a BPEL process which is successfully receiving data from 3rd party and it is not in a SOAP format.
That is why we are entering input manually (I have already described input in above post) while testing that BPEL process. and we can receive proper output (i have already specified what i am getting as output in my above post.)
But in real time scenario we cant give input manually.
how can we achieve SOAP based invocation during runtime??
I hope my question is clear to all.
please suggest me if anybody have any idea about this.
Regards
Anindya
Maybe you are looking for
-
10.6.1 Slow Startup and Shutdown
Did anyone notice the difference between the 10.6.1 startup and shutdown times and the 10.6 times ? I had to do a clean install of 10.6 and ignore the 10.6.1 update to get back speed in startup and shutdown. Is there anyway to solve this. Thanks.
-
Creating a Webservice for portal Component
Hi experts , i have portal component , for which i want to create webservice , i e. wanted to publish it as a wsdl , Im using NWDS 7.01 and here i have already created a portal component of type JSPDynpage , now in nwds after opening Webservice Pers
-
Principal Propagation using SOAP Adapter
Hi, Can anybody please explain Principal Propagation concept in SOAP adapter? I have no idea at all about this, so it will be good if you can explain with an example scenario. Thankyou.
-
How to come to know that the BEx queries created in whether in 3.X or 7.X
Hi Friends, How to come to know that the BEx queries created whether in 3.X or 7.X. Some queries created in 3.X and some in 7.X in my system. How to know that the query created in which version. Where we can find such information. It might be smaal i
-
IWeb doesn't hold revisions from Aperture 2
I did some cropping and patching of images in Aperture 2. When I transfered them to iWeb, it would only take the masters. Why?