JAX-WS Source datatype
Hi. I have a JAX-WS web service:
@WebMethod
public javax.xml.transform.Source sendWithReply(
@WebParam(name = "InputWithReply") javax.xml.transform.Source s) {
System.out.println("InputWithReply");
com.sun.xml.internal.bind.v2.util.DataSourceSource dss = (com.sun.xml.internal.bind.v2.util.DataSourceSource) s;
DataSource ds = dss.getDataSource();
try {
InputStream is = ds.getInputStream();
System.out.println("Content-type: "+ds.getContentType());
StringBuilder sb = new StringBuilder();
String line = "";
BufferedReader reader = new BufferedReader(new InputStreamReader(
is, "UTF-8"));
while ((line = reader.readLine()) != null) {
sb.append(line).append("\n");
System.out.println(sb.toString());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return null;
}When I try print message, all I got: &?-??-?x??Z??\?'????J?
Why Source is mapped to DataSourceSource? I have a dispatch client that creates whole sopaEnvelope.
Ok, solved. It was all about base 64 encoding.
Similar Messages
-
Losing source-target mapping from a data flow diagram process
Hi,
When I reload a model design from an xml repository, I am losing source-target mappings from a data flow diagram process. I wonder why.
The way it goes is:
- I define a data flow diagram with information stores, processes, and flows.
- Information structures are defined from the flows and the information trickles down to processes and information stores.
- In a process, I define Source-Target Mapping by selecting a target element and then selecting the source element(s).
- I save the whole model.
- So far, the Source-Target Mapping keeps the association between target and source elements.
- If I exit from Data Modeler, the next time I reload the saved model, the Source-Target Mapping target to source elements associations are lost!?
Does anyone have the same issue or would know how to resolve it?
Thanks,
/MarioI am still having problems getting my source to target mappings to save after I apply the fix described in this thread. Any thoughts?
From my TargetElement.xml
<?xml version = '1.0' encoding = 'UTF-8'?>
<oracle.dbtools.crest.model.design.process.TargetElement parentClass="java.lang.Object">
<property name="objectID" dataType="java.lang.String" readOnly="true" defaultValue="" xmlName="id" xmlType="attribute" getter="getObjectID" setter="setObjectID" reffered="false"/>
<property name="target" dataType="oracle.dbtools.crest.model.design.DesignObject" defaultValue="" xmlName="target" xmlType="element" getter="getTarget" setter="setTarget" reffered="true"/>
<property name="description" dataType="java.lang.String" defaultValue="" xmlName="description" xmlType="element" getter="getDescription" setter="setDescription" reffered="false"/>
<property name="name" dataType="java.lang.String" readOnly="true" defaultValue="" xmlName="name" xmlType="attribute" getter="getName" setter="setName" reffered="false"/>
<property name="transformationType" dataType="java.lang.String" defaultValue="" xmlName="transformationType" xmlType="element" getter="getTransformationType" setter="setTransformationType" reffered="false"/>
<collection name="sources" dataType="java.util.List" xmlName="sources" itemXmlName="sourceRef" getter="getSources" itemIsRef="true" refsXMLName="sourceRefs" addItem="addSource" getItemByID="getSourceByID" nativeList="true" orderTheList="true"/>
<roproperty name="sources" dataType="interface java.util.List" getter="getSources"/>
</oracle.dbtools.crest.model.design.process.TargetElement>
Process.xml:
<?xml version="1.0" encoding="UTF-8" ?>
- <oracle.dbtools.crest.model.design.process.Process parentClass="oracle.dbtools.crest.model.design.process.Transformation">
<property name="type" dataType="int" defaultValue="0" xmlName="type" xmlType="element" getter="getType" setter="setType" reffered="false" />
<property name="batchMinimumTransactions" dataType="int" defaultValue="" xmlName="batchMinimumTransactions" xmlType="element" getter="getBatchMinimumTransactions" setter="setBatchMinimumTransactions" reffered="false" />
<property name="batchTimeUnit" dataType="java.lang.String" defaultValue="" xmlName="batchTimeUnit" xmlType="element" getter="getBatchTimeUnit" setter="setBatchTimeUnit" reffered="false" />
<property name="diagram" dataType="oracle.dbtools.crest.model.design.process.DataFlowDesign" defaultValue="" xmlName="diagram" xmlType="element" getter="getDiagram" setter="setDiagram" reffered="true" />
<property name="footNote" dataType="java.lang.String" defaultValue="" xmlName="footNote" xmlType="element" getter="getFootNote" setter="setFootNote" reffered="false" />
<property name="frequencyTimeUnit" dataType="java.lang.String" defaultValue="" xmlName="frequencyTimeUnit" xmlType="element" getter="getFrequencyTimeUnit" setter="setFrequencyTimeUnit" reffered="false" />
<property name="frequencyTimes" dataType="int" defaultValue="" xmlName="frequencyTimes" xmlType="element" getter="getFrequencyTimes" setter="setFrequencyTimes" reffered="false" />
<property name="interactiveLongestResponseTime" dataType="int" defaultValue="" xmlName="interactiveLongestResponseTime" xmlType="element" getter="getInteractiveLongestResponseTime" setter="setInteractiveLongestResponseTime" reffered="false" />
<property name="interactiveResponseTimeUnit" dataType="java.lang.String" defaultValue="" xmlName="interactiveResponseTimeUnit" xmlType="element" getter="getInteractiveResponseTimeUnit" setter="setInteractiveResponseTimeUnit" reffered="false" />
<property name="mode" dataType="java.lang.String" defaultValue="" xmlName="mode" xmlType="element" getter="getMode" setter="setMode" reffered="false" />
<property name="paramsWrappersString" dataType="java.lang.String" defaultValue="" xmlName="paramsWrappersString" xmlType="element" getter="getParamsWrappersString" setter="setParamsWrappersString" reffered="false" />
<property name="priority" dataType="java.lang.String" defaultValue="" xmlName="priority" xmlType="element" getter="getPriority" setter="setPriority" reffered="false" />
<property name="transformationtask" dataType="oracle.dbtools.crest.model.design.process.TransformationTask" defaultValue="" xmlName="transformationtask" xmlType="element" getter="getTransformationTask" setter="setTransformationTask" reffered="true" />
<property name="peakPeriodsString" dataType="java.lang.String" defaultValue="" xmlName="peakPeriodsString" xmlType="element" getter="getPeakPeriodsString" setter="setPeakPeriodsString" reffered="false" />
<collection name="events" dataType="java.util.List" xmlName="events" itemXmlName="eventRef" getter="getEvents" itemIsRef="true" refsXMLName="eventRefs" removeItem="removeEvent" addItem="addEvent" getItemByID="getPartyByID" nativeList="true" orderTheList="true" />
<collection name="targetMappings" dataType="java.util.List" xmlName="targetMappings" itemXmlName="targetMapping" getter="getTargetElements" createItem="createTargetElement" removeItem="removeEvent" addItem="addTargetElement" getItemByID="getPartyByID" nativeList="true" orderTheList="true" />
<roproperty name="componentFlowsFor" dataType="interface java.util.Collection" getter="getComponentFlowsFor" />
<roproperty name="events" dataType="interface java.util.List" getter="getEvents" />
<roproperty name="flowEvents" dataType="interface java.util.List" getter="getFlowEvents" />
<roproperty name="paramMapping" dataType="oracle.dbtools.crest.model.design.DesignObject" getter="getParamMapping" />
<roproperty name="paramsWrappers" dataType="interface java.util.List" getter="getParamsWrappers" />
<roproperty name="parentprocess" dataType="oracle.dbtools.crest.model.design.process.Process" getter="getParentProcess" />
<roproperty name="parentprocessInDFD" dataType="oracle.dbtools.crest.model.design.process.Process" getter="getParentProcessInDFD" />
<roproperty name="peakperiods" dataType="[Z" getter="getPeakPeriods" />
<roproperty name="processedAttributesAndFlows" dataType="interface java.util.List" getter="getProcessedAttributesAndFlows" />
<roproperty name="processedEntitiesAndFlows" dataType="interface java.util.List" getter="getProcessedEntitiesAndFlows" />
</oracle.dbtools.crest.model.design.process.Process> -
Single source Multiple Target Messages
Hi All,
I have one Source DataType and 3 TargetDataTypes
I did Mappping and IterfaceMapping successfully while Iam going to Activate the Objects, the follwoing error is showing. Help me to this run successfully,
Error is
Activation of the change list canceled Check result for Interface Mapping Micro_IM | http://MicrosoftDifferentMapping.com: A multi-mapping with multiple source or target interface instances is only recommended with asynchronous interfaces, since only a mapping of this type can be used in the process editor. Message Interface Micro_OB_MI | http://MicrosoftDifferentMapping.com are not asynchronous abstract interfaces A multi-mapping with multiple source or target interface instances is only recommended with asynchronous interfaces, since only a mapping of this type can be used in the process editor. Message Interface Micro_IB1_MI | http://MicrosoftDifferentMapping.com, Message Interface Micro_IB2_MI | http://MicrosoftDifferentMapping.com, Message Interface Micro_IB3_MI | http://MicrosoftDi
Thanks & Regards,
Ashok.Hi,
What is the SP that you are using. If it is XI 3.0 and SP less than 14 then it is not possible. You need to use Abstract interface.
And why do you need Multimapping in the first place. You can do a simple mapping and in the receiver determination you can add more Business Server/System. Each Service/System you will have seprate IB interface and a separate Interface mapping.
Hope this solves your problem.
Thanks,
Prakash -
Based on the data Convert the datatype and make the wrong date as NULL
Hi,
In the below scenario we are inserting some time related fields in Temp table.But its data type is varchar. Once data loading is finished in the temp table (Data is loading by source team SQOOP and they are unable to load if the source datatype is having
Date or datetime) we have to alter the column datatypes. somehow, some character data in inserted in date columns (look at into 3rd insert statement). while altering the table it is failing. Can we do any alternative for this (Means if any varchar data that
is non convertible to date can we make as null)
INSERT INTO ##TEMP_TEST
SELECT '2014-09-30','2017-10-06','Nov 6 2014 6:11AM','Nov 6 2014 6:11AM'
UNION SELECT '2014-09-29','2017-10-06','Nov 6 2014 6:11AM','Nov 6 2014 6:11AM'
UNION SELECT '2014-09-28','2017-10-06','Nov 6 2014 6:11AM','Nov 6 2014 6:11AM'
GO
INSERT INTO ##TEMP_TEST SELECT NULL,NULL,NULL,NULL
GO
INSERT INTO ##TEMP_TEST SELECT 'A','B','C','D'
go
ALTER TABLE ##TEMP_TEST ALTER COLUMN CAREPACK_ST_DT DATE
GO
ALTER TABLE ##TEMP_TEST ALTER COLUMN CAREPACK_END_DT DATE
GO
ALTER TABLE ##TEMP_TEST ALTER COLUMN INS_GMT_TS DATETIME2
GO
ALTER TABLE ##TEMP_TEST ALTER COLUMN UPD_GMT_TS DATETIME2
GO
Please let me know.
Thanks and Regards RajeshHi ,
We are using SQL Server 2008 SP3.
Thanks and Regards Rajesh
Then what you can do is to run a set of updates as below
UPDATE t
SET CAREPACK_ST_DT = NULL
FROM ##TEMP_TEST t
WHERE ISDATE(CAREPACK_ST_DT) = 0
AND LEN(CAREPACK_ST_DT) < 8
UPDATE t
SET CAREPACK_END_DT = NULL
FROM ##TEMP_TEST t
WHERE ISDATE(CAREPACK_END_DT) = 0
AND LEN(CAREPACK_END_DT) < 8
UPDATE t
SET INS_GMT_TS = NULL
FROM ##TEMP_TEST t
WHERE ISDATE(INS_GMT_TS) = 0
AND LEN(INS_GMT_TS) < 8
UPDATE t
SET UPD_GMT_TS = NULL
FROM ##TEMP_TEST t
WHERE ISDATE(UPD_GMT_TS) = 0
AND LEN(UPD_GMT_TS) < 8
And then do the date conversion using ALTER statements
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Lose data types after model saving
Hi all.
I try to import model from erwin 7.3 in data modeler Version 3.0.0.665
after import i have this log:
Oracle SQL Developer Data Modeler 3.0.0.665
Oracle SQL Developer Data Modeler Import Log
Date and Time: 2011-09-20 16:31:22 MSD
Design Name: DPO
Import Finished
Errors: 0
Warnings: 0
i receive similar model as erwin-model. but afeter saving and reopening almost all datatype set as UNKNOWN. what`s wrong?
i try change type for one column from UNKNOWN to NUMBER and again save/reopen. this change was saving.
how i can save source datatypes after import model?
screenshots:
before saving http://s016.radikal.ru/i336/1109/dc/16cf0ab0c7df.jpg
after saving http://s011.radikal.ru/i315/1109/7a/808bded51f7b.jpg
Edited by: Finch on 20.09.2011 6:15Hello,
I have no definitive idea as to why you are losing the dataypes, though I suspect it has to do with setting the Design Rules under the Tools option.
The suggestion I want to make is that you generate the DDL from Erwin and and import this and save, all data types should save, they have for me. Also Have found the DDL import to be the most reliable along with importing from Oracle Designer and Oracle database data dictionaries.
If you have logical objects you want to transfer over then I would advise export Erwin to Oracle Designer and import to SQL Data Modeler.
If you go through the threads on this forum you are no alone in finding issues with Erwin import.
Hope that helps.
Yusef -
Hi
In XMLA, I am getting problem in Source datatype for Measures.
Measuregroup getting data from 3 different partition,this 3 partition populating data from 3 different view.One view populating data from base table,remaining 2 we gave default value with cast
ex: Cast (0 as Bigint) as MeasureName.
In DSV for all 3 table data type is System.Int64, but while I am generating deployment script. I am getting Integer as Source datatype for Measure in XMLA.So what might be the problem.
pls guide me,Can you post exact error you're getting?
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
In file to idoc....EXCEPTION_DURING_EXECUTE Error
Hi XI Friends..
in my xml to idoc..scenario..
source datatype:
DT_Units
id
date
value
target idoc : IMEASR.IMEASR01
i did mapping between these
id----
>E1MEASR-POINT
date----
>E1MEASR-IDATE
value----
>E1MEASR-READC
and i assigned constants for readr,itime,mdtext of target idoc.
MT_Units------>IMEASR-IDOC
i tested in message mapping..and i cpoied the source from message mapping and given as source xml
<ns0:MT_Units xmlns:ns0="http://aaaa.com/xi/PROCESS/PPE/ERP_MES">
<id>70013</id>
<date>20060101</date>
<value>3333</value>
</ns0:MT_WearUnits>
static test of interface mapping also Ok.
in ID, TestConfiguration i given source service and source interface and target service and the payload as source xml file and its a success.
the file is picking from source but it showing EXCEPTION_DURING_EXCECUTE OF MAPPING Catagory as error.
SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_WearUnits_To_SAP_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
<SAP:P4></SAP:P4>
<SAP:AdditionalText></SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
<SAP:Stack>During the application mapping com/sap/xi/tf/_MM_WearUnits_To_SAP_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
and the payload is look like this..
<ns0:MT_Units xmlns:ns0="http://aaaaa.com/xi/PROCESS/PPE/ERP_MES">
<id>70013</id>
<date>20060101</date>
<value>3333</value>
</ns0:MT_WearUnits>
and in file adaptermonitering ..in message content..
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'http://...
<ns0:MT_Units xmlns:ns0="http://aaaaa.com/xi/PROCESS/PPE/ERP_MES">
^
please guide me..
regards
ramHi friends...
thanx for your quick responses..
As you suggested..
i put source xml as
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Units xmlns:ns0="http://aaaa.com/xi/PROCESS/PPE/ERP_MES">
<id>70013</id>
<date>20060101</date>
<value>3333</value>
</ns0:MT_Units>
and i am getting same error in SXMB_MONI.
but payload as
Invalid at the top level of the document. Error processing resource 'file:///D:/Documents and Settings/ram/Local Se...
<?xml version="1.0" encoding="UTF-8"?>
^
and in adaptermonitering ..file is picking and it showing the message content as
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'http://...
<?xml version="1.0" encoding="UTF-8"?>
^
please help me...
regards
ram -
Dimension member values not showing (just empty cells)
Hi,
I have an organization dimension (Business > Business Unit> Department > Account) and a single fact (Dollars) on my test repository. When I add my fact and any dimension level to an answers report I can see for example two empty cells for each member at the "Business" level and the result of my fact calculation. I've tried many ways to attempt solving this issue from aggregating my data to compressing all the dimension in a single table and still haven't had success. I also turned on logging and found out that the physical layer SQL being generated returns the correct values when I run it in my query tool.
Has anyone experienced similar behavior? I'm not sure if I skipped a step on my modeling or this is a bug in my OBIEE installation
Thanks a lot!!
-IgnacioHad this problem when source datatype was nvarchar and the field was coming over as varchar with a length of 0 in the physical layer. Check your physical table definitiion to see the length of the fields that are empty for you, may have to change it to an appropriate value
-
Jdbc to file scenario - base mapping error
hello all,
i am facing a similar issue discussed in this thread,
Re: JDBC to FILE scenatio: How to map the resultSet?
1. i changed the document name and namespace
2. i checked for the occurence of the filed elements
3. i tried using the documentname and namespce both from the MONI and MAPPING TEST TAB...but still the same base mapping runtime exception error.
Please advice.
Thanks
i have been following theAarthi,
Can you give us the following details,
1. select query that you are using in your JDBC sender adapter
2.the Document Name and namespace that you have given in the JDBC adapter
3. the source datatype that you have created for your JDBC side along with the occurence of each element.
This will help us nail the causwe for your problem.
Regards,
bhavesh -
File to Mail Scenario - Need help
Hi all,
I am trying a simple file to mail scenario in which i am using following data types .
Source datatype -
Scr_File_DT
-- Root
Material_no
Plant
Target datatype -
Tgt_Mail_DT
--Content
In the message mapping i am concatenating material_no and plant and mapping it to content.
The receiver mail adapter parameters are as follows -
Transport protocol - SMTP
Message Protocol - XIPAYLOAD
URL: smtp://gmail.com
Configure User Authentication: X (Check box is selected)
Authentication Method: Plain (from drop-down box)
User: [email protected]
Password: ****
from: mail address
to: mail address
subject : test mail.
Just wanted to confirm whether these settings are correct or not? Because i am not getting the mail in my mailbox.
Can anyone please help me on this.
Also are there any other settings required for using mail adapter ?
Thanks.Hi,
you should add your email address to your user,add specific users list add you r user in alrtcatdef.
generally you should maitain the email data type format like
subject,from,to,content-type..
se below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
Regards
Chilla.. -
ResultSet XML Conversion Error
Hi,
BPEL, SOA 11g, DB2 Stored procedure,
In a BPEL service I am getting this error while invoking a DB2 Stored procedure with Strong XSD. I am using assign to copy the input parameter to the input parameters of Stored procedure.
not able to figure out why this error message is coming.
java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'JDE_DBA' failed due to: ResultSet XML Conversion Error. An error occurred while converting from a ResultSet to XML. Unable to convert a ResultSet to XML. Cause: java.lang.NullPointerException ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:157) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) a
---------------- BPEL Code --------
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Fri Dec 10 10:24:23 PST 2010
Author: chaitanyad
Purpose: Synchronous BPEL Process
-->
<process name="UPCMatchOrder"
targetNamespace="http://xmlns.oracle.com/CD_JDE_Application_jws/JDE_UPCMatchOrder/UPCMatchOrder"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:client="http://xmlns.oracle.com/CD_JDE_Application_jws/JDE_UPCMatchOrder/UPCMatchOrder"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/CD_JDE_Application/JDE_UPCMatchOrder/JDE_DBA"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/QAMODA73/X56714P/">
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="upcmatchorder_client" partnerLinkType="client:UPCMatchOrder" myRole="UPCMatchOrderProvider"/>
<partnerLink name="JDE_DBA" partnerRole="JDE_DBA_role"
partnerLinkType="ns1:JDE_DBA_plt"/>
</partnerLinks>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable" messageType="client:UPCMatchOrderRequestMessage"/>
<!-- Reference to the message that will be returned to the requester-->
<variable name="outputVariable" messageType="client:UPCMatchOrderResponseMessage"/>
<variable name="Invoke_1_InputVariable" messageType="ns1:args_in_msg"/>
<variable name="Invoke_1_OutputVariable" messageType="ns1:args_out_msg"/>
</variables>
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<!-- Receive input from requestor. (Note: This maps to operation defined in UPCMatchOrder.wsdl) -->
<receive name="receiveInput" partnerLink="upcmatchorder_client" portType="client:UPCMatchOrder" operation="process" variable="inputVariable" createInstance="yes"/>
<!-- Generate reply to synchronous request -->
<assign name="Assign_3">
<copy>
<from variable="inputVariable" part="InputMessage"/>
<to variable="Invoke_1_InputVariable" part="InputParameters"/>
</copy>
</assign>
<invoke name="Invoke_1" inputVariable="Invoke_1_InputVariable"
outputVariable="Invoke_1_OutputVariable" partnerLink="JDE_DBA"
portType="ns1:JDE_DBA_ptt" operation="JDE_DBA"/>
<assign name="Assign_2">
<copy>
<from variable="Invoke_1_OutputVariable" part="OutputParameters"/>
<to variable="outputVariable" part="OutputMessage"/>
</copy>
</assign>
<reply name="replyOutput" partnerLink="upcmatchorder_client" portType="client:UPCMatchOrder" operation="process" variable="outputVariable"/>
</sequence>
</process>
Regards,
-CDHi Sanjay,
The JDBC sender adapter returns the rows selected from the database in the follwoing format.
<resultset>
<row>
<column-name1>column-value</ column-name1>
<column-name2>column-value</ column-name2>
<column-name3>column-value</ column-name3>
</row>
<row>
<column-name1>column-value</ column-name1>
<column-name2>column-value</ column-name2>
<column-name3>column-value</ column-name3>
</row>
</resultset>
This error occurs , when the source datatype you have created for the JDBC adapter does not match with this format. I would suggest that you check the source format along with the occurence of your field.
Regards,
Bhavesh -
Mapping IDoc - only one Segment is mapped!
Hi, well i am trying FCC IDoc to File. FCC i already discussed quite extensive with no result. So i checked the other parts of my scenario where i found out that only one of my source segments in the idoc is mapped.
Source:
<?xml version="1.0" encoding="UTF-8"?>
<ZBC01_OUTPUT_ZEIT>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<SERIAL>20070612110222</SERIAL>
</EDI_DC40>
<ZBC01_OUTPUT_ZEIT SEGMENT="1">
<DUMMY01>** Y0000</DUMMY01>
<AUSWEISNR>1775</AUSWEISNR>
<DUMMY02>00400FFFF00</DUMMY02>
<TAG>1306</TAG>
<DUMMY03>01</DUMMY03>
<SALDO>+90000</SALDO>
<DUMMY04>.</DUMMY04>
</ZBC01_OUTPUT_ZEIT>
<ZBC01_OUTPUT_ZEIT SEGMENT="1">
<DUMMY01>** Y0000</DUMMY01>
<AUSWEISNR>1776</AUSWEISNR>
<DUMMY02>00400FFFF00</DUMMY02>
<TAG>1306</TAG>
<DUMMY03>03</DUMMY03>
<SALDO>+4</SALDO>
<DUMMY04>.</DUMMY04>
</ZBC01_OUTPUT_ZEIT>
<ZBC01_OUTPUT_ZEIT SEGMENT="2">
<DUMMY01>** Y0000</DUMMY01>
<AUSWEISNR>1777</AUSWEISNR>
<DUMMY02>00400FFFF00</DUMMY02>
<TAG>1306</TAG>
<DUMMY03>02</DUMMY03>
<SALDO>+820</SALDO>
<DUMMY04>.</DUMMY04>
</ZBC01_OUTPUT_ZEIT>
</IDOC>
</ZBC01_OUTPUT_ZEIT>
Target-Output in test environment:
<?xml version="1.0" encoding="UTF-8"?>
<MTZEIT>
<ZeitRecordSet>
<ZeitDetailsStructure>
<DUMMY01>** Y0000</DUMMY01>
<AUSWEISNR>1775</AUSWEISNR>
<DUMMY02>00400FFFF00</DUMMY02>
<TAG>1306</TAG>
<DUMMY03>01</DUMMY03>
<SALDO>+90000</SALDO>
<DUMMY04>.</DUMMY04>
</ZeitDetailsStructure>
</ZeitRecordSet>
</MTZEIT>
So it's only the first segment of the source.
The source datatype (IDoc) has the occurence of 1.999999999 and the attributes in it 0..1.
The target has
Occurence
MTZEIT 1..1
-ZeitRecordSet 1..unbounded
--ZeitDetailsStructure 1..unbounded
---DUMMY01 0..unbounded
---AUSWEISNR 0..unbounded
---others 0..unbounded
The Output should contain all segmets given from source. What is wrong?
br JensHi Sumit
Well my problem is not solved, unfortunately i am not able to put the single given segments among each other in the target file.
RecordsetStructure:ZeitRecordSet, ZeitDetailsStructure
ZeitDetailsStructure.fieldFixedLengths = 8,4,14,4,2,6,1
ZeitDetailsStructure.fieldNames = 'DUMMY01','AUSWEISNR','DUMMY02','TAG','DUMMY03','SALDO','DUMMY04'
ZeitDetailsStructure.fieldSeparator = 'nl'
ZeitRecordSet.endSeparator='nl'
the target file is written like:
Y0000177500400FFFF00 13060190000. ** Y0000177600400FFFF00 1306034 . ** Y0000177700400FFFF00 130602+820 .
any ideas?!
Solved it on my own now....thx !
Message was edited by:
Jens S -
Hi Forum ,
I need to do cleanup on a column to display clean data by eliminating the various <HTML> in the source. I would like to do a replace using the charindex, but my query becomes too big and i might miss some tags. What would be the best approach removing
the <tags> or formating them to display in correct format? .
Please give me some example if we can format data according to the tags using SSIS components.
<p><font face="Times New Roman"><span style="font-size: 11pt; ">DAVID BACKER, JR
</span><span style="font-size: 11pt; color: navy; ">L
</span></font><span style="font-size: 11pt; ">
<font face="Times New Roman"> 11111 Erwin 185th Ter <br />Jersey Gardens, NJ 10156/* Microsoft SQL Server Integration Services Script Component
* Write scripts using Microsoft Visual C# 2008.
* ScriptMain is the entry point class of the script.*/
// C# code
using System;
using System.Data;
using System.Text.RegularExpressions; // Added
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
using Microsoft.SqlServer.Dts.Runtime.Wrapper;
[Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
public class ScriptMain : UserComponent
// Method that will be executed for each row.
public override void Input0_ProcessInputRow(Input0Buffer Row)
// Replace the value of the message column
Row.Notes = RemoveHtml(Row.Notes).Replace(" ", " ")
.Replace("&", " ").Replace("-->", "
").Replace(""", "\"")
.Replace("<", "<").Replace(":
YES", ": YES ").Replace(": NO", ": NO ");
// A string method that removes html tags
// with a regex pattern
public String RemoveHtml(String message)
// The pattern for a html tag
String htmlTagPattern = "<(.|\n)+?>";
/// ///"<(.|\n)+?>"
/// ///"(?<=<[^>]*) "
// Create a regex object with the pattern
Regex objRegExp = new Regex(htmlTagPattern);
// Replace html tag by an empty string
message = objRegExp.Replace(message, String.Empty);
// Return the message without html tags
return message;
Ntext Source DataType
I convert the columns to convert(varchar(max),jr.NOTES) as Notes -
Multiline file content conversion-- error
Hi All
I am sending a txt file to CSV format (txt file), I have done IR and ID without errors. Adaptor Monitor shows that
Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
Parameter '.fieldFixedLengths' or '.fieldSeparator' is missing
I have given '.fieldFixedLengths' or '.fieldSeparator' in the Content conversion parameters in the receiver dommunication channel.
Could you please let me know what could be wrong?
Thanks,
RamThanks Krishnamoorthy, Bhavesh, Priyanka for your reply
The Problem is the file is picked up from the source but not reaches the destination
<u><b>Sender Communication Channel Details:</b></u>
Source File format----test.txt (Notepad)
<b>Source Datatype:</b>
FILEINPUT
Record
Row
FirstName
LastName
MiddleName
City
Place
State
Country
<b>Content conversion paramerters:</b>
Row.fieldNames---FirstName,LastName,MiddleName,City,Place,State,Country
Row.fieldSeparator---,
Row.endSeparator---'nl'
Transport Protocol---NFS
Message Protocol---File Content Conversion
<u><b>Receiver Communication Channel Details:</b></u>
Target File format----Test.txt
<b>Target Datatype:</b>
FOUTPUT_TEST
Record
Row
FirstName
LastName
MiddleName
City
Place
State
Country
<b>Content conversion paramerters:</b>
Row.addHeaderLine-----0(zero)
Row.fieldSeparator------,(comma)
Record.fieldSeparator-----'nl'
Row.endSeparator-----'nl'
Transport Protocol---NFS
Message Protocol---File Content Conversion
I am sending a text file and I want to receive it as a text file.
In both, Sender communication channel and Receiver communication channel I am using file content conversion.
Thanks
Ram -
JDBC Receive --- action = "SELECT"
Hi Friends,
Iam trying a scenario where Iam using JDBC Receiver with action = SELECT.
To be clear I'll explain the scenario.
Source_File>XI>MSAccess>XI>Target_File.
I mean, I want to send a file to MSAccess and retrieve the values from table using action = SELECT and put that in a new File.
<b>I></b>
1)My Source DataType (Emp_out_DT) is (This from File to XI)
<b>>Emp_out_DT
>>Emp_No
>>Emp_Name</b>
2)Target Datatype (Emp_in_DT) is (This is from XI to MSAccess)
<b>>Emp_in_DT
>>Select
>>>EmpInfo
action
table
>>>>access
Emp_No
Emp_Name</b>
3)Response DataType (Emp_in_Res_DT) (This is from MSAccess to XI)
<b>>Emp_in_Res_DT
>>row
Emp_No
Emp_Name</b>
<b>II></b>
I have created three Message Types for the three DataTypes.
<b>III></b>
I created two Message Interfaces as
1)Outbound , Synchronous (Emp_out_MI) with
output Message ---> Emp_out_MT
input Message ---> Emp_out_MT
These two are same...
2)Inbound , Synchronous (Emp_in_MI) with
input Message ---> Emp_in_MT
output Message ---> Emp_in_Res_MT
<b>IV></b>
I have done the mapping between
1)Emp_out_MT and Emp_in_MT
2)Emp_in_Res_MT and Emp_out_MT
<b>V></b>
Only one Interface Mapping with
1)Request
Source Interface ---> Emp_out_MI
Target Interface ---> Emp_in_MI
Mapping ---> Emp_out_MT_Emp_in_MT
2)Response
Source Interface ---> Emp_out_MI
Target Interface ---> Emp_in_MI
Mapping ---> Emp_in_Res_MT_Emp_out_MT
Since both are synchronous interfaces, even though MI are same for both the MT will change based on Request and Response.
<b>VI></b>
In Configuration I created three Communication Channels
1)File Sender
2)JDBC Receiver
3)File Receiver
Upto JDBC Receiver it is OK. I have created all the Sender Agreement, Receiver Determination and all. But wat to do with the Response that I get from MSAccess. Will I get the Response from MS Access with this Configuration. How and Where can I see the Response. How to create a File with the Response I got???
Regards,
Raju...Hi narayan ,
Just check the following links for proper Meassge type in JDBC format :
<a href="/people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes:///people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
also
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/frameset.htm</a>
JDBC adapter will return the details depending on the select statement u will have to map that response to the message type u r using to create the file using ftp adapter.
regards,
keith.
Maybe you are looking for
-
Hello , How can j2ee web Applications (not ADF ) be SSO Enabled using Oracle Access Manager or Oracle SSO (oid)??If so,Which is the best solution??Is it mandatory for applications to be Deployed in Oracle Weblogic Server?Is there any fixed topology p
-
Macbook Pro (Late 2008) - Windows 7 64-bit, Bootcamp 3.1 - Wireless Issue
Hi Everyone, I have a Macbook Pro (15-inch, Late 2008) model with Snow Leopard and Windows 7 64-bit dual boot. I have done a search and cannot find any reference to this problem on my hardware. I have had no issues in Windows 7 when using Bootcamp v3
-
WCS not synchronising with WLC automatically
HI Experts . I have 5508 WLC with 7.0.98.0 software version and WCS with 7.0.172.0 version . I have a problem of synchronisation of the configs . Automatic sync is not working .I have scheduled the synchronisation but the same is getting failed . But
-
I don't see how this problem is solved. I too am trying to input a graphic into a signature with no end-user joy. Whilst it works fine with Mail, my clients mainly use Lotus Notes/Domino. I too have Notes 6.5 for Mac. The graphic does not display in
-
I have an iPhone 5S. I have a problem where it will not recognize the fingerprint for Touch iD. I rest my finger on the sensor, and it wouldn't even say try again. Sometimes it works, sometimes it don't. I don't think it is a software issue, but a ha