on 2006 Jul 26 5:17 PM
Hallo,
I call a Web Service using XMLSpy and this is the response (note tag <File>):
<SOAPSDK4:ExpBaselineResponse xmlns:SOAPSDK4="http://tempuri.org/PRWBS_PRIMAVERA/message/">
<RESULT>OK</RESULT>
<File><?xml version='1.0' encoding='UTF-8'?>
<Dati:Parametri xmlns:Dati="Schema">
<ELSAG xmlns="Schema">
<proj_id>4623</proj_id>
<BS_short_name>FS0084AAAA01 - B1</BS_short_name>
<BS_proj_id>1302</BS_proj_id>
<TARGET_START>2004-04-01</TARGET_START>
....etc...
If I call the same Web Service from XI, this is the response:
<SOAPSDK4:ExpBaselineResponse xmlns:SOAPSDK4="http://tempuri.org/PRWBS_PRIMAVERA/message/" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema">
<RESULT>OK</RESULT>
<File><?xml version="1.0" standalone="yes"?>
<Dati:Parametri xmlns:Dati="Schema">
<ELSAG xmlns="Schema">
<proj_id>4623</proj_id>
<BS_short_name>FS0084AAAA01 - B1</BS_short_name>
<BS_proj_id>1302</BS_proj_id>
<TARGET_START>2004-04-01</TARGET_START>
....etc....
In my flow, I use a java mapping to parse the content of tag <File> into a message.
My mapping works correctly only with the first option.
Is it possible to change XI Soap Adapter encoding for HTML?
My java mapping uses this parser:
public void execute(InputStream MyInputStream, OutputStream MyOutputStream)
throws StreamTransformationException {
SAXReader reader = new SAXReader();
Document document;
try {
document = reader.read(MyInputStream);
...
this instruction generates an Exception only with XI message.
Can anybody help me??
Thanks;-)
get your inputstream into a string and try replacing < with proper xml notations.
& for &
< for <
> for >
" for "
' for '
See any xml reference guide for fullset of notations
Its worth a try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JI,
the following characters are special characters of XML, that need special attention.
< , > , &, ' ," . Like mentioned by Jay, in your Input STream , do a scearch and replace to replace the encoded values with the escape sequence and then parse the XML using DOM or SAX parser.
Regards,
Bhavesh
Hi,
I would suggest you go through this Pdf for the SOAP Adapter configuration:
And also have a glance on the info for webservices given below,
Just go through these links and they will surely help you learn more about Webservices:
<a href="/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi Webservices using SAPXI</a>
<a href="/people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies between SAP System & Webservice Using Proxies</a>
You can Go through these links to get some info about accessing Webservices:
http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/content.htm
Go through these links which will surely help you find an answer to your problem.....
Regards,
Abhy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.