XSLT mapping not working
Hi
I am creating one scenario using following weblog :
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
But in my I am only getting the Headings but no values which I am providing through my XML file.
*My XSLT file is like this now ..................*
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://wwww3org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:variable name="break"><br></xsl:variable>
<xsl:variable name="tableB"><table></xsl:variable>
<xsl:variable name="tableE"></table></xsl:variable>
<xsl:variable name="trB"><tr></xsl:variable>
<xsl:variable name="trE"></tr></xsl:variable>
<xsl:variable name="tdB"><td></xsl:variable>
<xsl:variable name="tdE"></td></xsl:variable>
<xsl:variable name="nbsp">&nbsp;</xsl:variable>
<xsl:variable name="thB"><tr BGCOLOR="#CCCC99"></xsl:variable>
<xsl:template match="/">
<ns1:Mail xmlns:ns1="http://sapcom/xi/XI/Mail/30">
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.002.001.02" xmlns:ns0="urn:xcom:xi:A_B2B_RSE:FI:XXX">
<Subject>File Level Status</Subject>
<From>xxxxxxx</From>
<To>xxxxxxx</To>
<Content_Type>text/html</Content_Type>
<Content>
<xsl:text xsl:space="preserve">File Level Status:</xsl:text>
<xsl:value-of select="$break"/>
<xsl:value-of select="$break"/>
<xsl:value-of select="$tableB"/>
<xsl:value-of select="$thB"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">Original File Name</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">Original Creation Date and Time</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">Customer ID</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">File Level Ack Name</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">File Level Ack Creation Date and Time</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">Total Number of Trasnsactions</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">Status Code</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">Error Description</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$trE"/>
<xsl:for-each select="Document/pain.002.001.02">
<xsl:value-of select="$trB"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="OrgnlGrpInfAndSts/OrgnlMsgId"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="OrgnlGrpInfAndSts/OrgnlCreDtTm"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="OrgId"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="MsgId"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="CreDtTm"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="OrgnlNbOfTxs"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="Prtry"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="AddtlStsRsnInf"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$trE"/>
</xsl:for-each>
<xsl:value-of select="$tableE"/>
</Content>
</Document>
</ns1:Mail>
</xsl:template>
</xsl:stylesheet>
Notes
1. I am using External Definition as a Source not the Message Type.
2. There is no ns0 or ns1 in the source file.
*Source Message*
<?xml version='1.0' encoding='UTF-8'?>
<Document xmlns='urn:iso:std:iso:20022:tech:xsd:pain.002.001.02' xmlns:xsi='http://wwww3org/2001/XMLSchema-instance'>
<pain.002.001.02>
<GrpHdr>
<MsgId>20091224-PSR/1040</MsgId>
<CreDtTm>2009-12-24T10:42:21</CreDtTm>
</GrpHdr>
*Mapping Error*
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sapcom/xi/XI/Message/30" xmlns:SOAP="http://schemasxmlsoaporg/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">RESOURCE_NOT_FOUND</SAP:Code>
<SAP:P1>d4f78d30-381b-11df-b885-debcac120353, 660e7670-68~</SAP:P1>
<SAP:P2>urn:xx.com:xi:A_B2B_RSE:FI:XXXX</SAP:P2>
<SAP:P3>email/test.xsl</SAP:P3>
<SAP:P4>-1</SAP:P4>
<SAP:AdditionalText />
<SAP:Stack>Unable to find resource d4f78d30-381b-11df-b885-debcac120353, 660e7670-68~ in the following software component versions: urn:xxcom:xi:A_B2B_RSE:FI:xx/test.xsl-1</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Can somebody please help me.
first format your post understandable format
Similar Messages
-
XSLT mapping not working b'coz " " & " " replaced with and
Hello Experts,
I have a RFC to JMS scenario. One of the parameter of RFC is a string field. This field will contain the XML data in it.
I need to create a complete XML payload using this data in a string field. For this I am using XSLT map :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" omit-xml-declaration="no"/>
<xsl:template match="/">
<xsl:for-each select="//Nem">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
This XSLT mapping works fine when tested independently.
But in actual scenario at runtime the "<" & ">" used to indicate a node are getting replaced with < and >. Then the XSLT mapping fails and produces no output.
The output of XSL will be passed in to a java mapping which signs the payload digitally.
What is the issue with these signs? How can I overcome this problem?
Any inputs will be of great help.
Kind Regards,
Abhijeet.
Edited by: Abhijeet Ambekar on May 4, 2010 2:01 PMHi Stefan,
Yes - I want to get rid of & # 60. But these (& # 60 and & # 62) are not added by XSLT mapping. Rather they are in the input available to XSLT map.
In sxmb_moni, i can see the inbound payload correctly :
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:HDK083_REFUS_SENDDOCU xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<P_SIGN_DOCUMENT />
<P_XML_DOCUMENT><NemRefusionIndberetningSamling><NemRefusionIndberetningStruktur MessageID="1"><HeaderStruktur><SignOffIndikator>true</SignOffIndikator><TransaktionKode>Opret</TransaktionKode><IndberetningstypeKode>Anmeldelse</IndberetningstypeKode><FravaerTypeKode>Sygdom</FravaerTypeKode><FravaerendeStruktur><FravaerendeTypeKode>Loenmodtager</FravaerendeTypeKode><LoenUnderFravaerIndikator>false</LoenUnderFravaerIndikator></FravaerendeStruktur><IndberetningUUIDIdentifikator>bf9cc44e-af15-4e19-8457-5845d75385d2</IndberetningUUIDIdentifikator><ReferenceAttributTekst>ref. Nielsen-1503831372 (23. oktober 2009)</ReferenceAttributTekst>
but when I try to download the payload or right click on payload to view source I get something like below:
<?xml version="1.0" encoding="UTF-8"?><rfc:HDK083_REFUS_SENDDOCU xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><P_SIGN_DOCUMENT></P_SIGN_DOCUMENT><P_XML_DOCUMENT>& # 6 0;NemRefusionIndberetningSamling& # 62; & # 60;NemRefusionIndberetningStruktur MessageID="1"& #62;& #60;HeaderStruktur& #62;& #60;SignOffIndikator& #62;true& #60;/SignOffIndikator& #62;& #60;TransaktionKode& #62;Opret& #60;/TransaktionKode& #62;& #60;IndberetningstypeKode& #62;Anmeldelse& #60;/IndberetningstypeKode& #62;& #60;FravaerTypeKode& #62;Sygdom& #60;/FravaerTypeKode& #62;& #60;FravaerendeStruktur& #62;& #60;FravaerendeTypeKode& #62;Loenmodtager</FravaerendeTypeKode><LoenUnderFravaerIndikator& #62;false</LoenUnderFravaerIndikator></FravaerendeStruktur& #62;<IndberetningUUIDIdentifikator& #62;bf9cc44e-af15-4e19-8457-5845d75385d2& #60;/IndberetningUUIDIdentifikator& #62;& #60;ReferenceAttributTekst& #62;ref. Nielsen-1503831372 (23. oktober 2009)& #60;/ReferenceAttributTekst& #62;
(extra spaces added to "& # 60" as browser was converting it to < ,>)
If i take the source code for payload and test XSLT mapping, it fails. But if I manually replace all "& # 60" with < and "& # 6 2" with >, then the mapping works fine.
So I think for XSLT map to work correctly, we need to replace all "& # 60 " . Please suggest.
Kind Regards,
Abhijeet. -
XSLT mapping not working for escapeCharacters.
Hi,
I have an issue with escape characters in PI.
Now I'm trying with CCFile. Binary. (In production we will use FTP as CC.)
Scenarie: SAP --> MyParty.
MyParty needs to have the xml Freetext tag as this:
<FreeText><![CDATA[<b> HELLO WORLD </b>]]></FreeText>
I have a xslt mapping that like this (To Add the CDATA section.)
Source file is like this: <b> HELLO WORLD </b>
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="utf-8" standalone="yes" cdata-section-elements="FreeText" />
<xsl:template match="@|">
<xsl:copy >
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
When I use this xsl mapping in my favorite xslt tool everyting looks nice but when I use it in PI it looks like this in file on disk:
<FreeText><![CDATA[ <b> HELLO WORLD </b> ]]></FreeText>
I don't whant escape characters in my target file. Any Pointers ?
//MartinHi Martin,
You required
<FreeText><![CDATA[ <b> HELLO WORLD </ b>]] ></FreeText>
and you got this in XI
<FreeText><![CDATA[ lt; b gt; HELLO WORLD lt; /b gt;]] ></FreeText> ( i removed &)
Have you seen the source of the XML output of XI? It will look like the one you mentioned but if you open that in browser it will be as per your requirement
Have you seen the source of output file created by you XML tool?
Regards
Suraj -
Alternate Access Mapping not working for Zone : Intranet
One of our client want to set Alternate Access Mappint (intranet) with url "intranet.theirDomain.com" with local IP address.
is it possible?
subsequest to my previous question (
http://social.technet.microsoft.com/Forums/sharepoint/en-US/3f39711e-301a-40e8-aa7a-855fa2c268b1/alternate-access-mapping-not-working?forum=sharepointadmin )
I want to ask one more question
Can we configure "intranet.theirDomain.com" with local IP address for any other zone?
or
If there is ".com" within the url then it can't be configured for InTRAnet?
Thanks
S H A J A NThe names for the zones don't matter. You could use the 'extranet' zone for another intranet name if you wanted, the names are just to make it a bit more friendly for beginners.
What you describe sounds routine, you create a web application with a name, then use an AAM to allow users to access it with a more friendly name. Frequently you end up creating
http://intranet.domain.com and
http://intranet as an AAM, or vice versa.
You can use .com for an intranet site, you would need to add the site as an A Host record in your DNS server so that traffic is sent to your internal server rather than out into the wider world. -
Value mapping not working properly
Hi All,
I am using value mapping twice in same mapping program. But only 1 field is coming with value and other is taking same value from source payload, can you please tell me what can be issue here?
Value mapping 1 -
Context - http://sap.com/xi/XI
SenderParty- SenderSchema
ReceiverParty- ReceiverSchema
Value Mapping table in ID -
Value mapping at field 2 -
Context - http://sap.com/xi/XI
SenderParty1- SenderSchema1
ReceiverParty2- ReceiverSchema2
Value Mapping table in ID -
Source payload -
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_VM_Send xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
<Record>
<Emp_ID>123</Emp_ID>
<Name>rash</Name>
<Surname>sumit</Surname>
<Gender>Male</Gender>
<Grade>E2</Grade>
</Record>
</ns0:MT_VM_Send>
Target Payload -
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_VM_Receiver xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
<Record>
<Emp_ID>123</Emp_ID>
<Full_Name>rash sumit</Full_Name>
<Designation>E2</Designation>
<Gender>M</Gender>
<Travel_Mode>Train</Travel_Mode>
</Record>
</ns0:MT_VM_Receiver>
Here travel_mode is coming perfect, but designation is same as defined in source payload. Why here Value mapping not working???
Thanks & regards,
Rashmi JoshiHi Rashmi,
The problem would either be in cache update or your mapping. Please provide the sceenshot of mapping (after clicking the value mapping function).
you can also choose the option to throw error in value mapping function, so it will throw error when value not found.
regards,
Harish -
Camera, Browser & Maps Not Working
Hi,
It been since yesterday my Z10 camera, broser & maps not working.
Whenever I click the camera icon, it is not even opening.
Browser icon had changed, it turned to a triangle square & circle.
Can anyone help me out.
Thanks,
ChrisThe update may not have loaded properly, you can reload this way: http://btsc.webapps.blackberry.com/btsc/viewdocument.do?externalId=KB34045&sliceId=2&docType=kc&noCo...
Or do a Security Wipe (Reset to Factory Settings) this way:
http://btsc.webapps.blackberry.com/btsc/viewdocument.do?externalId=KB33591&sliceId=2&docType=kc&noCo...
Please read both carefully ! -
Apple maps not working on iMac
apple maps not working on iMac the little thing just keeps turning
Do a backup.
Quit the application.
Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Select Library. Then go to Preferences/com.apple.Maps.plist. Move the .plist to your desktop.
Restart the computer, open the application and test. If it works okay, delete the plist from the desktop.
If the application is the same, return the .plist to where you got it from, overwriting the newer one.
Thanks to leonie for some information contained in this. -
Java Mapping (Not Working)
Hi....
I have done java mapping using file to file scenario....
I have created two data types, two message types, two message interfaces... in imported archives i have imported
dom4j-1.6.1.zip and itext.jar files..
i have written my java code like this:
package com.xmltopdf;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import com.lowagie.text.xml.XmlToPdf;
public class MyXmlToPdf {
public MyXmlToPdf(String inputFile, String outputFile){
try {
XmlToPdf xtp = new XmlToPdf();
System.out.println("Ravi");
xtp.parse(new FileInputStream(inputFile), new FileOutputStream(outputFile));
}catch(Exception e ) {
System.out.println(e);
in message mapping i have invoked "MyXmlToPdf(String,String) constructor like this:
MyXmlToPdf xmt= MyXmlTOPdf("C:
source
filetofile.xml","C:
source
file.pdf");
return "";
and i have configured my communication channel, reciever determination, sender aggrement, reciver aggrement, and interface determination.....
so please tell me whether my code is correct or not... if its correct why i am not getting the pdf file.. if its not correct please tell me whats wrong in my code...
Thanks & Regards
Ravi Shankar BHi ,
select XMLTOOLKIT option in Operation mapping and execute it.
I am not sure we can call java program in XSLT Program,but alternative is copy the code and use it in XSLT mapping it self,that means your XSLT program will become with JAVA extensions.
then in Operation mapping level select SAPXMLTOOL kit option and execute it. i hope it will work. if it is not working then you have deploy some JAXP files on server,because the way execution of XSLT Mpaping program got changed,like when eve you executing XSLT with extnasions( if you are not using XMLTOOL kit option) then you have to use latest version of JAXP.JDK files.
Regards,
Raj -
Xmlanonymizer bean and xslt - both not working for namespace change
Hi All
I have a source structure below
<ns1:Product_MT xmlns:ns1="urn:alpha:websub" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
</Header>
<Item>
</Item>
</ns1:Product_MT>
I am using a soap sender getting called from SOAP UI to consume a PI web service and send the output message to receiver HTTP channel
the receiver needs the namespace of the XML structure as below (ns1 changed to ns)
<ns:Product_MT xmlns:ns="urn:alpha:websub" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
</Header>
<Item>
</Item>
</ns:Product_MT>
I tried to put the xmlanonymizer bean in receiver HTTP but its not doing anything. I am stil getting the output with ns1 namespace
Attached screenshot of receiver http adapter configuration in module
also, I tried to use XSLT mapping as below but this is also not doing anything. Probably, the XSL has to be modified to use in my case . Please help. and let me know.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<ns:Product_MT xmlns:ns="urn:alpha:websub">
<xsl:copy-of select="." />
</ns:Product_MT>
</xsl:template>
</xsl:stylesheet>
thx
mikeI had to tweak the XSL little bit to make it work in PI. See updated version below -
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output encoding="UTF-8" indent="yes" method="xml" version="1.0"/>
<xsl:variable name="root">MT_Product</xsl:variable>
<xsl:variable name="rootns">urn:mdt:udiwebsubmission</xsl:variable>
<xsl:template match="*">
<xsl:choose>
<xsl:when test="local-name()=$root">
<xsl:element name="ns:{local-name()}" namespace="{$rootns}">
<xsl:apply-templates select="node()"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:element name="{local-name()}">
<xsl:apply-templates select="node()"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
Regards,
Sameej -
Hi All,
I am doing on XSLT Mapping. It is having a lookup. Lookup is working fine and I am getting data back in one variable say 'Var1'.
Now in my mapping all the field are mapped one to one from source to target except one field say "lookup' and I am mapping responce of RFC 'Var1' variable to this node.
My XSLT code is as follows:
<TargetNode>
<Field1><xsl:value of select="/Isourcenode/Field1"/></Field1>
<Field2><xsl:value of select="/Isourcenode/Field2"/></Field2>
<Lookup><xsl:value of select="$Var1"/></Lookup>
<Field3><xsl:value of select="/Isourcenode/Field3"/></Field3>
<Field4><xsl:value of select="/Isourcenode/Field4"/>/<Field4>
</TargetNode>
Now here I get value of Variable Var1 in Lookup field whereas all the fields after that node like Field3,Field4 are not getting mapped value.
Do I need to do anything special to access the nodes values in xpath once i access variables using $ ?
Thanks and Regards,
AtulHi,
You can use CALL TRANSFORMATION <NAME> to meet your requirement
For an example, refer:
Re: help in Xml to abap
Thanks,
Aabhas -
Type-mapping not working correctly, get "Unable to find a javaType for the xmlType" WARNING
I'm manually creating a web-services.xml file, and using the autogen ant task to
generate the codec XML/Java classes. The XML definition is provided by SAP.
The ant build.xml file:
<project name="buildWebservice" default="stubgen">
<target name="stubgen">
<clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
packageName="com.aa.rmis.webservice.client"
clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
autotype="False" />
</target>
<target name="all" depends="stubgen"/>
</project>
The problem is seen below in the output from Ant. Note the WARNINIG. The problem
is that the xml type cannot be mapped to the Java type.
C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
Buildfile: clientbuild.xml
stubgen:
[clientgen] Generating client jar for RMIS.ear ...
[clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
cument:sap:business']:PaymentRequest.Create. Make sure that you have registered
this xml type in the type mapping
[clientgen] Using SOAPElement instead
[clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
client.jar-836624340
[clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
BUILD SUCCESSFUL
Total time: 17 seconds
The Java source that has the implementation of the service methods is simply:
package com.aa.rmis.webservice;
import com.aa.rmis.ifr.request.*;
public class TestService
public TestService()
public int serviceRequest(PaymentRequestCreate request)
System.out.println("Received serviceRequest message");
return 0;
public void testStringRequest(String request)
The web-service.xml file is attached, which contains the schema for the SAP PaymentRequest.Create
object definition.
Another problem I have, which is probably related, is that the service method
that has a complex data type (non-built in data type) is not being deployed into
the WebLogic server. But the other service method that simply takes a String
parameter is.
The steps I took are:
1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
2. Use ant task autogen to generate the request codec classes
3. Create the web-services.xml file by inserting the schema definition and the
mapping file created by the autogen task, and defining the operations
4. Build web-services.war file that contains all autogen compiled class files,
the web-services.xml file, and the service implementation class
5. Build the ear file that holds the web service files
6. Use the clientgen ant task to generate (included above) to generate the client
jar file that should contain the proxy for both of the service methods
Environment:
* WebLogic 7.02
* JDK 1.3.1_06
* JBuilder 9 Enterprise
* Ant 1.4
Possible causes:
* Namespace not being used correctly
* copied verbatim the mapping xml file generated by autogen into the web-services.xml
file
* xml-schema part of web-services.xml might not be set correctly
* operation definition might not be using the correct namespace
* Classpath used for ant might not be right
* Doubt this is the problem, but I'm out of other ideas
* Set by using the setWLEnv.cmd file provided by WebLogic
* Tried adding the generated classes directory for my project to the classpath,
but did not work
I've been referencing the Programming WebLogic Web Services document throughout
this entire process. I must be missing something.
Can anybody from BEA help me out with this problem?
Thanks in advance.
[web-services.xml]Hi JD,
I spent a few cycles looking over your web-services.xml file, however I
don't have any suggestions other that one that looks like you have
already tried, at the top, in the <schema...>
targetNamespace="urn:sap-com:document:sap:business"
Making edits to these generated files can be tricky and my only
suggestion is to create a small reproducer to run by our outstanding
support team.
A quick look at our problem database shows one issue (CR095109) related
to a similar problem at deploy time that was fixed with 7.0SP3. Again,
the support folks will be able to help focus in on the issue.
Regards,
Bruce
JD wrote:
>
The first posting contains the wrong web-services.xml file. Please refer to this
one instead.
"JD" <[email protected]> wrote:
I'm manually creating a web-services.xml file, and using the autogen
ant task to
generate the codec XML/Java classes. The XML definition is provided
by SAP.
The ant build.xml file:
<project name="buildWebservice" default="stubgen">
<target name="stubgen">
<clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
packageName="com.aa.rmis.webservice.client"
clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
autotype="False" />
</target>
<target name="all" depends="stubgen"/>
</project>
The problem is seen below in the output from Ant. Note the WARNINIG.
The problem
is that the xml type cannot be mapped to the Java type.
C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
Buildfile: clientbuild.xml
stubgen:
[clientgen] Generating client jar for RMIS.ear ...
[clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
cument:sap:business']:PaymentRequest.Create. Make sure that you have
registered
this xml type in the type mapping
[clientgen] Using SOAPElement instead
[clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
client.jar-836624340
[clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
BUILD SUCCESSFUL
Total time: 17 seconds
The Java source that has the implementation of the service methods is
simply:
package com.aa.rmis.webservice;
import com.aa.rmis.ifr.request.*;
public class TestService
public TestService()
public int serviceRequest(PaymentRequestCreate request)
System.out.println("Received serviceRequest message");
return 0;
public void testStringRequest(String request)
The web-service.xml file is attached, which contains the schema for the
SAP PaymentRequest.Create
object definition.
Another problem I have, which is probably related, is that the service
method
that has a complex data type (non-built in data type) is not being deployed
into
the WebLogic server. But the other service method that simply takes
a String
parameter is.
The steps I took are:
1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
2. Use ant task autogen to generate the request codec classes
3. Create the web-services.xml file by inserting the schema definition
and the
mapping file created by the autogen task, and defining the operations
4. Build web-services.war file that contains all autogen compiled class
files,
the web-services.xml file, and the service implementation class
5. Build the ear file that holds the web service files
6. Use the clientgen ant task to generate (included above) to generate
the client
jar file that should contain the proxy for both of the service methods
Environment:
* WebLogic 7.02
* JDK 1.3.1_06
* JBuilder 9 Enterprise
* Ant 1.4
Possible causes:
* Namespace not being used correctly
* copied verbatim the mapping xml file generated by autogen into
the web-services.xml
file
* xml-schema part of web-services.xml might not be set correctly
* operation definition might not be using the correct namespace
* Classpath used for ant might not be right
* Doubt this is the problem, but I'm out of other ideas
* Set by using the setWLEnv.cmd file provided by WebLogic
* Tried adding the generated classes directory for my project to
the classpath,
but did not work
I've been referencing the Programming WebLogic Web Services document
throughout
this entire process. I must be missing something.
Can anybody from BEA help me out with this problem?
Thanks in advance.
Name: web-services.xml
web-services.xml Type: ACT Project (text/xml)
Encoding: base64 -
Image Map not working in Dreamweaver CC
I'm trying to create an image map over a jpeg but when I try to draw a rectangle over the image, a grey stroke gets placed over the image then moves with the cursor.
Here is the only code on the page. Any ideas as to why this isn't working?
<img src="/SampleImage.jpg" alt="" width="900" height="2779" style="margin: 5px; width: 649px; height: 2000px;"/>Let me see if I have this right...
1. From Design View, you are clicking your image to select it
2. You are then selecting the Rectangle tool from the bottom left of the Properties window
3. You are then clicking and dragging on the image in Design View to create your map area
4. DW puts a grey line around the image and moves it instead of adding the image map and area tags?
Run your page for code errors at http://validator.w3.org. I can't duplicate what you describe and DW will do strange things when code errors are present, it could be an error DW doesn't know how to fix that's causing the normal image map functionality to fail.
If you have clean code and are doing what I list above and it's still not working, it may be time to clear the program cache:Deleting a corrupted cache file -
XSLT mapping not reflected at the receiver
Hi ,
I am working on IDoc to proxy scenario . At the receiver i have SNC which uses standard content . The mapping here is XSLT mapping .
I modified the standard content XSLT mapping according to the requirement . The mappings works fine in the test tool . However on checking the payload at the receiver side the field i mapped is non existent
this is the XSLT code i used for mapping
!--TAxcode -->
<xsl:if test="count (./E1EDP04/MWSKZ)!=0">
<xsl:element name="FollowUpInvoice">
<xsl:element name="ProductTaxationCharacteristicsCode">
<xsl:value-of select="./E1EDP04/MWSKZ"/>
</xsl:element>
</xsl:element>
</xsl:if>
ProductTaxationCharacteristicsCode has 0-1 occurence
Is there anything i am missing out here ?Hi,
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
http://www.w3schools.com/xsl/xsl_languages.asp
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
If we use Altova map force tool, it will automatically generate the code, instead of we manually writing.
Here we map the mapping like our graphical, internally it generates the corresponding the XSLT code. -
Horizontal mapping not working in Kodo 4.1.2
Hello,
I am having troubles in trying to get the class mapping I want in Kodo 4.1.2.
I want to go from Kodo 3.3 to Kodo 4.1, and still in the evaluation process. Basically, all I want is to have my package.jdo files to work in Kodo 4.1, with the minimum modifications, before moving to JPA.
The mapping is defined is my package.jdo using the <extension vendor-name="kodo" key="jdbc-class-map" value="XXX"/> where XXX can be one of horizontal, base or flat (I dont use vertical in this applicaion). This element does not seem to be properly recognized by the new mapping tool, and all my classes are mapped in the same base table.
After some digging in the docs and in the examples provided, I found this <inheritance strategy="XXX"/> element, that can be put in my package.jdo file. This is not clearly said in the docs (it seems this element is only mentionned in the new orm DTD), but is used in the sample/jdo/horizontal/package.jdo file.
Then I modified my package.jdo files, with this new element, where XXX is one of subclass-table, new-table (with no <join/> nested element) or superclass-table. But the result is not the one expected : all the classes are mapped in the same table.
I then gave a try at the example provided, compiled, enhanced and mapped the sample/jdo/horizontal classes provided with the distribution, since this example covers exactly what I want to do. It seems to me that this example does not work either.
The package.jdo says :
<jdo>
<package name="samples.jdo.horizontal">
<sequence name="sjvm" factory-class="sjvm" strategy="nontransactional"/>
<class name="LastModified">
<inheritance strategy="subclass-table"/>
</class>
The mapping file I get says :
<mapping>
<package name="samples.jdo.horizontal">
<class name="LastModified">
<jdbc-class-map type="base" pk-column="ID" table="LASTMODIFIED"/>
<jdbc-version-ind type="version-number" column="VERSN"/>
<jdbc-class-ind type="in-class-name" column="TYP"/>
<field name="creationDate">
<jdbc-field-map type="value" column="CREATIONDATE"/>
</field>
<field name="lastModificationDate">
<jdbc-field-map type="value" column="LASTMODIFICATIONDATE"/>
</field>
</class>
The enhancement is made using jdoc, the mapping file is generated using the following command line (the DB is empty) :
mappingtool -a refresh -f mapping.xml samples.jdo.horizontal.LastModifiedI would expect an horizontal mapping, with a class element containing only a <jdbc-class-map type="horizontal"/> element, as it is the case if I use my Kodo 3.3 mapping tool.
I tried the enhancement / mapping file generation process with two configuration of the kodo.properties file : the first one with kodo3 as the Mapping Factory and the second with jdo. The result is the same in both cases. I verified by setting the log level to TRACE for the Tool what the factory used. In fact in both case, it is the MappingFileDeprecatedJDOMappingFactory, which seems weird to me.
Bytheway, setting the MappingFactory to jpa leads to the following IllegalArgumentException during enhancement :
Exception in thread "main" org.apache.openjpa.lib.util.ParseException: Instantiation of plugin "MetaDataFactory" with value "jpa" caused an error "java.lang.IllegalArgumentException : java.lang.ClassNotFoundException: jpa". The alias or class name may have been misspelled, or the class may not have be available in the class path. Valid aliases for this plugin are: [jdo, kodo3]
I'd be glad to get any hint if I'm wrong on anything, or any workaround / patch to get my case to work.
Thank you in advance,
JoseIf the same exact app and code works with 4.0 with the same ForeignKeyDeleteAction setting, I suggest that you open a case with support.
This property hasn't changed since 4.0
http://e-docs.bea.com/kodo/docs41/full/html/ref_guide_mapping_defaults.html
Laurent -
FDM Conditional mapping not working
I currently have the following #script as my map in FDM. The first part of the map is not working as all the 9* source accounts are mapping to "70111". The rule should be; with any source account of "9*", with a source profit center where the 3rd digit is "??1???", then account is "43905", else "70111".
If Left(varValues(23),3) = "1" Then
Result = "43905"
Else
Result = "70111"
End if
Not sure why the first result is not working...anyone have any suggestions?Hi
I think I may have seen this question answered previously but in case....
Your IF statement is comparing the first 3 characters to "1" so it will never match.
Assuming that you want to compare the 3rd character then you want If Mid(varValues(23),3,1) = "1" Then
Hope this helps
Stuart
Maybe you are looking for
-
How do I set up AppleTV to share play iTunes libraries from the same Mac
I have a Mac Pro (2008), running Lion (10.7.3), Airport Extreme running 7.6.1 and a 2nd gen AppleTV running 4.2.1. On the Mac Pro, I have 3 user accounts (User1, User2 and User3), each with their own iTunes libraries. I have enabled Home Sharing on e
-
6800GT wont display video bios on boot
like the post says at first i had the K7N2G thought it was this old mobo got the delta 2 but still no bios mesage on boot changed the 4oow psu for a antec 550w still no bios measage on boot any ideas card seems to work alright only just break 10000
-
Digital in port/sound blaster audigy plat. + Playstation 2. will it wo
I would like to know if i hook up the playstation 2's optical out to the optical in on the audigy platinum's dri've bay panel, will the sound work from the computer speakers, or will i have to have another piece of equipment, or change a setting in t
-
FI_DOCUMENT_ARCH_READ_SINGLE not in ECC 6.0 any alternate
Hi all, Can any one tell the alternate of Function Module: FI_DOCUMENT_ARCH_READ_SINGLE which is being used in SAP 4.7 but not available in ECC 6.0. Surya Kiran
-
7.5.2 Firmware Update causing Ambar Flashing / Internal Disk needs Repair
I just updated my firmare to 7.5.2 on my 2TB TimeCapsule, and after a couple of days my access to the TimeCapsule feature stopped working because I got a message theta says: "internal disk needs repair". I been noticing that a lot of people here, in