XI Http adapter receiver issue, how to change the target payload format
Dear all,
In my project, I need to call a servlet program using Http/xml.
The message format accepted by the server program is like this:
request:
<?xml version="1.0" encoding="GBK"?>
<PACKET type="REQUEST" version="1.0" >
<HEAD>
<REQUEST_TYPE>01</REQUEST_TYPE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO></QUERY_SEQUENCE_NO>
</BASE_PART>
</BODY>
</PACKET>
response:
<?xml version="1.0" encoding="GB2312"?>
<PACKET type="RESPONSE" version="1.0" >
<HEAD>
<REQUEST_TYPE>01</REQUEST_TYPE>
<RESPONSE_CODE>1</RESPONSE_CODE>
<ERROR_CODE>0000</ERROR_CODE>
<ERROR_MESSAGE>xxx</ERROR_MESSAGE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO>01PICC057106001156421487812453</QUERY_SEQUENCE_NO>
</BASE_PART.
</BODY>
<PACKET>
My first question is if I can use the servie by SAP PI http adapter?
If yes, and how to design the data type? The <HEAD> <BODY> are on the same level...
Commonly, I only can set the data type like this:
<?xml version="1.0" encoding="UTF-8"?>
<MT_HTTP_IN>
<HEAD>
<REQUEST_TYPE>1</REQUEST_TYPE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO>123</QUERY_SEQUENCE_NO>
</BASE_PART>
</BODY>
</MT_HTTP_IN>
The problem is how to remove the <MT_HTTP_IN> then insert the tab <PACKET type="REQUEST" version="1.0" >? I wonder if I need use JAVA mapping? and could u give me a related samples?
Thanks a lot!
Dear Xun Liu,
If you need <PACKET type="REQUEST" version="1.0" >, then you need to create attributes 'type' and 'version' under node <PACKET>. At mapping level you can pass constant values for those attibutes.
Regards,
JP.
Similar Messages
-
How to change the automatic character format in Message Editor?
Hi experts,
We use PI 7.31, AAE adapter in our scenario. When we use the message monitor in Adapter Engine, we choose one message and open it in Message editor, we can see the message payload with AUTO Character Format: Windows-1252.
The problem is we have some CN characters and they cannot display in correct formats.
So, is there any way to change the AUTO Character format?
The other question is, can we see the message after mapping in java message monitor?
Thanks.
KevinHi,
The Quantity field which is used in sales order has a standard Data Type:QUAN
with Decimal Places:3 so u cant change the settings in standard data element CRMT_SCHEDLIN_QUAN
If u want the quantity field without decimals then u need to create a Z data element.
Regards,
PePe -
How to change the MQTT messages format?
Hello,
the KURA MQTT cloud client publishes messages respecting the following formula:
#account-name/#client-id/#API-ID/topic
I want to send MQTT messages with my own format, I dont want to send the account name and the client id in the MQTT message
how can I do that?
I already tried to change the configuration in the KURA web interface -> MQTTData transport and I have deleted the content of "lwt.topic" but without success.
Thanks in advance for your help!The following link is an iot-based Greenhouse Application Prototype:
https://github.com/kartben/kura-greenhouse-demo/blob/master/org.eclipse.iot.greenhouse.publisher/src/main/java/org/eclipse/iot/greenhouse/publisher/GreenhousePublisher.java
Here, you can see the proper usage of DataService and DataServiceListener to communicate with the Message Broker.
For, further reading, go through the following links:
http://download.eclipse.org/kura/releases/1.2.0/docs/apidocs/org/eclipse/kura/data/DataService.html
http://download.eclipse.org/kura/releases/1.2.0/docs/apidocs/org/eclipse/kura/data/DataServiceListener.html
Thanks -
How to change the date time format in jsp
Hello Sir,
I am trying to convert the date from one format into another format.
In SQLServer one fields type as datetime.
when i tried to display it in jsp with String variable it shown like below,
2006-08-16 09:11:23.0
how to format this value as
Wed, Aug 16, 2006 09:11 AM
my code is
java.text.SimpleDateFormat fmt= new java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a ");
fmt.format(string value fetch from dtabase field);
Plz provide me the solution asap. very urgent request.
Regards
venki.Hello Sir,
I am trying to convert the date from one format into
another format.
In SQLServer one fields type as datetime.
when i tried to display it in jsp with String
variable it shown like below,
2006-08-16 09:11:23.0
how to format this value as
Wed, Aug 16, 2006 09:11 AM
my code is
java.text.SimpleDateFormat fmt= new
java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a
fmt.format(string value fetch from dtabase field);
Plz provide me the solution asap. very urgent
request.
Regards
venki.Have a look in to the below code
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormatTest
public static void main( String[] cmdArgs )
throws Exception
SimpleDateFormat sdfInput =
new SimpleDateFormat( "yyyy-MM-dd" );
SimpleDateFormat sdfOutput =
new SimpleDateFormat ( "EEE, d MMM yyyy hh:mm aaa" ); //Change the patterns in to what ever u need
String textDate = "2001-01-04";
Date date = sdfInput.parse( textDate );
System.out.println( sdfOutput.format( date ) );
i will suggest u to look in to the API doc you will come to know lot many things. -
How to change the calyearmonth data format in psa
Hi all,
my requirement is to load data to dso from csv file it contains 0calmonth characteristic and carparc keyfigure
and i have created a transactional datasource
and when i am loading the data in csv file my data format is 201101 but in psa it is taking 110120
can u tell me how to correct this one.
when i activate the request to active data table it is showing transfered records are 12 and added records are 1 can u tell me how to correct this.
Thanks & Regards,
NaveenHi Naveen,
You don't need to change the original infoobject but you can do this changes in DataSource. In your datasource goto field mapping tab and first of all you can map the date field to 0calmonth and on the same line you will have the option to choose the format.
There you can go for internal format or External format as per requirement at the same time you have the option to provide conversion EXIT name.
Regards,
Durgesh. -
How To change the Date display format to dd.mm.yyyy format
Hello friends
I am expected to display the date fields in my BEx reports in the standard dd/mm/yy format. However, I find that it is getting displayed in mm/dd/yyyy form.
This is creating a bit of a confusion for the client.
Hence can someone please let me know, if I can make any change to the way the date is displayed in the reports.
Looking for a prompt reply
Thanks in advance
regards
Zubin KurianHi Zubin,
There are some corrections in that coding.
year = year+2(2).
CONCATENATE day month year INTO l_date SEPERATED BY u2018/u2019.
Regards,
Yokesh. -
How to change the variable value format in Ip workbooks
Dear Experts,
How to add zeros to a vaiable value before passing to a planning function in BEx analyzer?
eg: 'ZPRCTR_VAR1' (For Infoobject 0PROFIT_CTR)
User enters value 20 for 'ZPRCTR_VAR1' , but the system know only '0000000020'. I wrote a user exit like this, but nothing happens and I get variable value 20 is incorrect, planning function cannot execute. Please advice .
DATA ZDIVISION TYPE /BI0/OIPROFIT_CTR.
DATA ZDIVISION1 TYPE /BI0/OIPROFIT_CTR.
WHEN 'ZPRCTR_VAR1'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'ZPRCTR_VAR1'.
zdivision = loc_var_range-low.
MOVE l_s_range-low to zdivision.
ENDLOOP.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = zdivision
IMPORTING
OUTPUT = zdivision1.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
MOVE zdivision1 TO l_s_range-low.
APPEND l_s_range TO e_t_range.
Thanks,
GnanaHi Gnana,
you can use de "area value" option when define a button with planning function and variables for passing values to function. These values are in excell cells so you can modify it as you want.
So imagine that your planning function has only one variable, the command sequence looks like
CMD 1 EXECUTE_PLANNING_FU
PLANNING_FUNCION_NAME 1 YOUR_FUNCTION
DATA_PROVIDER_FILTER 1 DATA_PROVIDER_1
VAR_NAME_1 1 YOUR_VARIABLE
and now you delete row with VAR_VALUE_1 and in result area you use for example
$A$1:$C$1
Now, cell A1 = VAR_VALUE_1
cell B1 = 1
cell C1 = Reference to another cell with your variable value (text item). You can use any excell function for fill 0's
And now, when you execute planning function you're passing cell C1 as value of your variable.
Hope it helps.
Enrique
Edited by: Enrique Delgado on Jun 3, 2008 7:00 PM -
How to change the width of a column in the web templete
hai
can anyone pl help me to solve the issue
here is the issue
" how to change the width of the column in web templete?" is there any chance to change
thanx in advance
syamFirst use the Active Cell property and set the row value to -2 to change an entire column. The attached image shows how to set the background color of column 3 to green. I don't understand your comment about column size. It doesn't matter how wide or narrow a column is. Using the Cell Background Color property, the entire cell is colored. If you are having difficulty keeping track of the number of columns, thats a different issue.
Attachments:
Background_Color_of_Table.jpg 5 KB -
How to change the context name
I have deployed an application in oracle 9iAS, with the context as Sample,
now iam able to access the application as
http://ipaddress:7777/context
how to change the application to run in default context
how to change it to http://ipaddress:7777 to access the application, where should i make the changesJust to share the solution.
Solved it following way:
deployed like I usually deploy via EM and then used "Fetch Deployment Plan" in EM (you can actually fetch the plan in admin console, too, I think). And then modified that plan.xml istead of creating my own. The advantage is: EM does the magic, you only have to copy the solution ;-)
The problem for me was, that I was not modifiying the appropriate deployment descriptor because I haven't seen the descriptor's xml file in JDeveloper. This xml was generated by JDev when using "Deploy to EAR". Only realised that after I have unzipped the generated ear. -
How to update the default date format in OBIEE 11G.
Hi All,
How to change the default date format in OBIEE 11g from the MM/DD to DD/MM. Could anyone please help me out ASAP?
Thanks,
ArpanHi Arpan
OBIEE 11g is having " localedefinitions.xml " file at this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display
in my case i installed at C:\Oracle\MIddleware.
so
1- Stop BI Server from EM
2- Navigate to this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display. in your case oracle home will be different
3- take a backup of this file localedefinitions.xml "
4- modify it and save
5- bring BI Server up.
Regards
sher -
To change the default date format of OID
Hello Gurus,
Any idea on how to change the default date format of OID?
The default date format of OID is something like "yyyy-mm-dd hh:mm:ss .0-0700" I want to change it to "yyyymmddhhmmss.0-0800".
Is there any system property to do the same.
I have provisioned users from OIM to OID.
Any ideas/clues/hints on this.
TIA,
- oidm.nobody? ?
-
HTTP Adapter Receiver Parameters
hi,
I have a .jsp page which has a textarea and has the name of the textarea as "test".
Now how could i configure my http adapter to this .jsp page and the page is submitted , in such a way that the output from XI is equal to the value of the textarea's "test" value.
Thanks in advance.
TirumalHi,
Not sure exactly what you want to do. Are you trying to use XI to fill in the textarea named "test" on the .jsp, then submit it? If so, I don't think this can be done.
What can be done is that the .jsp page will receive and process a post. The post will have a query string of "test" with values. In this case the following configuration can be used for the HTTP receiver:
Addressing type: URL address
Target host: your web server address
Service number: the web server port number
Path: the URL of the .jsp (e.g. /myjsp.jsp)
In XI Payload Manipulation section:
XML code: UTF-8
Prolog: test=
Regards,
Bill -
How to change the mac address of thunderbolt to ethernet adapter?
Hello everyone,
I am using Macbook pro retina display 2013 version. I have bought a thunderbolt to ethernet adapter in order to connect my Macbook to LAN. But in my area there is a shared line and I have to clone their mac address to my Macbolok. I could not change the mac address of my thunderbot to ethernet adapter. Can anyone please tell me how to change the mac address of thunderbot to ethernet adapter step by step??
Thanks in advance.Open terminal and type the followings;
1) sudo ifconfig bridge0 ether xx:xx:xx:xx:xx:xx(it will be your new mac address)
2) Type your password to confirm
3) ifconfig bridge0 |grep ether (to see if change is successful)
PS: *This should with your thunderbolt adapter, but its not working usb to ethernet adapters without installing required drivers.
** You may need to do these steps every time you boot your mac. -
How to change the time ??
Hello guys,
I would like to know how to change the time in a 7970G cisco phone, I dont know if the phone gets the date from a server, but checking typing this command: show clock in the CME UC520, date and time shows correct , I powered off / powered on the phone and it remains with the same Wrong time (just time no date), any adivce would be very well received. Thanks!Hi Gerardo,
Complete these steps on the Cisco CallManager Express in order to display the correct time:
Configure the type 7970 command under the ephone.
ephone 1
device-security-mode none
mac-address 0017.59E7.492C
type 7970
button 1:1
Configure the time-zone command under the Telephony service.
telephony-service
max-ephones 5
max-dn 5
ip source-address 10.1.0.1 port 2000
auto assign 1 to 5
time-zone 8
dialplan-pattern 1 ... extension-length 4 extension-pattern 9000
voicemail 6000
max-conferences 12 gain -6
transfer-system full-consult
create cnf-files version-stamp 7960 Feb 05 2009 12:44:03
Configure the create cnf-files command under the Telephony service in order to implement the change in step 1 and 2.
CME-CUE(config-telephony)#create cnf-files
CNF file creation is already On
Updating CNF files
CNF files update complete
Verify
Comlete these steps in order to reset the Cisco 7970 IP Phone:
Press the Settings button on the Cisco 7970 IP Phone.
Enter the **#** key sequence on the phone keypad in order to reset the phone.
The correct time displays on the Cisco 7970 IP Phone after the reset.
Troubleshoot
Complete these steps if the time displayed on the Cisco 7970 IP Phone is incorrect:
Verify the phone configuration on Cisco CallManager Express.
Display the 7970 configuration file on Cisco CallManager Express. The name of the file is xmldefault7970.cnf.xml, which is located in the system:/its/ directory. Complete these steps in order to display the configuration file:
Log in to Cisco CallManager Express.
Complete these steps in order to display the 7970 configuration file:
Issue the cd system: command.
Issue the cd its command.
Issue the more xmldefault7970.cnf.xml command in order to dump the configuration.
Verify that the time zone parameter is correctly configured . The output of the command is shown here:
CME-CUE#more xmldefault7970.cnf.xml
M/D/YA
Greenwich Standard Time
2000
10.1.0.1
{7970 Feb 05 2009 12:31:07}
2
English_United_States
en
United_States
United_States
0
http://10.1.0.1:80/localdirectory
Complete these steps in order to verify that Cisco CallManager Express successfully sends the 7970 configuration file to the Cisco 7970 IP Phone:
Log in to Cisco CallManager Express.
Issue the debug tftp events command.
Issue the terminal monitor command.
Reset the Cisco 7970 IP Phone.
This output shows the results of the debug tftp events command. The bold text indicates the phone has successfully received its configuration file.
Feb 5 12:38:21.539: TFTP: Opened system:/its/XMLDefault7970.cnf.xml, fd 0, size
1033 for process 287
Feb 5 12:38:21.543: TFTP: Finished system:/its/XMLDefault7970.cnf.xml, time 00:
00:00 for process 287
Feb 5 12:38:24.383: %IPPHONE-6-REG_ALARM: 20: Name=SEP001759E7492C Load= SCCP70
.8-3-2S Last=Phone-Keypad
Feb 5 12:38:24.427: %IPPHONE-6-REGISTER: ephone-1:SEP001759E7492C IP:10.1.0.4 S
ocket:1 DeviceType:Phone has
registered.
Regards,
Justin -
How to Change the Default Font in Firefox 4 ?
How to Change the Default Font in Firefox 4 , for this >>
http://store2.up-00.com/Mar11/AJG18655.png << ?Go to properties first: and set before typing anything in as shown here:
http://screencast.com/t/ZTgzOTM3Y
Then right click bring up this menu while inside active field and click on item with arrrow:
http://screencast.com/t/ZTRjMWRkMzk
Now what ever you typed should reflect the new Font setting.
we may be as you say. But then again other people act like whats on the other side.
We do our best. And if we fall short, well we gave it our best shot.
Okay. In the interests of being completely clear:
I have already tried this. Several times. This procedure will change the default for any of the fields that I place by hand. It does not change the default for any of the fields placed by the Wizard. I was unable to find a solution to the problem in any of the manuals, books, or on-line forums, which is why I posted here as a last resort. This leads to two conclusions:
A. Your advice is incorrect
B. There is a problem with my installation of Acrobat
I will assume that A is not the correct conclusion. I will therefore try a re-install of my software to see if this clears up the problem. There have been other issues with other Adobe software on my machine that a re-installed has fixed nicely. Luckily, I don't have to do this at all often.
Maybe you are looking for
-
How to transfer photo from my iPhone 5s to my wife iPad2 whithout cloud or hardware ?
very often we Travel whit my wife and I do hear picture whit my iPhone5s and then imediattly she ask for the picture on her iPad2. how I do this if there is no network conection, and allso I do not have any external hardware ? We allso use diferent A
-
How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page #1 without making the rest of the pages inaccurate, as page #1 is the Title Page. Does anyone have any suggestio
-
How to get a long text into the SapScript
Hi. I need to read text from header field from ME21N. I use to this READ_TEXT function module, which is called from SapScript but the problem is, that this function returns me just about 80 chars and trim rest of string. First idea was use loop in fo
-
Checking for corrupt image or element
Hi Hoping someone may be able to help, I have a 256 page book which I created in InDesign CS3, the book is made up of several documents. I need to export to a PDF, each time I try it fails as there is a corrupt image. Is there anyway I check the docu
-
Terminus 9pt font issue in Konsole after upgrade
I have a slightly weird font issue in Konsole following a bunch of upgrades today. Basically, at the beginning of the command line and the beginning of subsequent words on that line, the very first character sort of flashes and gets truncated if it i