Exclude XML tags at runtime
Hi,
Is there a way to exclude specific XML tags at runtime. For example: If a value is zero for say tag <amount> , the tag must be excluded else the tag must be present.
Can this be done.
Regards,
Ranjith
Hi,
>>>Requirement: Based on some conditions certain tags should be omitted and in some case the entire parent tag should be omitted from the XML file.
>>Can this be acheived by some programming in ABAP.
yes of course
of you can remove that inside a mapping in PI
Regards,
Michal Krawczyk
Similar Messages
-
ABAP Proxy - Exlcluding XML tags at runtime
Hello,
Scenario: ABAP Proxy is being used to send an XML file to third party from SAP R/3 via SAP PI.
SAP R/3 version - 4.7
SAP PI version - 7.0
Requirement: Based on some conditions certain tags should be omitted and in some case the entire parent tag should be omitted from the XML file.
Can this be acheived by some programming in ABAP.
All structures created under an ABAP proxy message contains a field, CONTROLLER of type PRXCTRLTAB. Can this be used to acheive the above requirement? If yes how?
Please provide some inputs. If this cannot be done in ABAP which the best way to do this and how?
Regards,
Sajith.Hi,
>>>Requirement: Based on some conditions certain tags should be omitted and in some case the entire parent tag should be omitted from the XML file.
>>Can this be acheived by some programming in ABAP.
yes of course
of you can remove that inside a mapping in PI
Regards,
Michal Krawczyk -
SOAP Runtime: Exception message: Unallowed RFC-XML Tag (SOAP_EINVALDOC)
Hi,
Curretly I am trying to test a Webservice on ECC 5.0, Oracle, Windows.
Below is the error that I am facing.
SOAP Runtime: SOAP Runtime exception: 111 occurred in method XP_READ_TAG of class CL_SOAP_XP at position 1
SOAP Runtime: Exception message: Unallowed RFC-XML Tag (SOAP_EINVALDOC)
In dev_rfc0:
ERROR 03:20:57: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->HANDLE
STATUSCODE() Received return code 404 ( Not found )
ERROR 03:20:57: SOAP Message CL_SOAP_MESSAGE->IF_SOAP_MESSAGE
PART~INITFOR_DESERIALIZE() A SOAP Runtime Core Exception
occurred in method XP_READ_TAG of class CL_SOAP_XP at position id
1 with internal error id 111 and error text Unallowed RFC-XML Tag
(SOAP_EINVALDOC) (fault location is 1 ).
I have looked up on sdn, and also looked at note 919886.
I have read several posts regarding creation of RFC Destination in sm59 of Type G, to get over this issue.
But RFC Destination of type G is not available in ECC 5.0
Is the error because of incorrect URL mentioned in logical port,
I am unable to ping the host name mentioned in URL, looks like that machine is not in the network.
does it mean the wsdl is not located at that particular host.
Any suggestions would be greatly appreciated.
Regards,
Vishnu.Hi Anton,
The complete error message in dev_rfc0:
INFO 02:15:12: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT
->IF_SOAP_TRANSPORT_BINDING~SEND() Try to send message ( DEST =
,PATH = ,URL = http://hostname:portno/ ,SOAP Action =
"ROI_R3_DF.roiSAPCreateOrder" )
INFO 02:15:12: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT
->IF_SOAP_TRANSPORT_BINDING~SEND() Message sent
INFO 02:15:12: SOAP Transport binding CL_SOAP_HTTP_TPBND_ROOT
->IF_SOAP_TRANSPORT_BINDING~RECEIVE() Try to receive message
ERROR 02:15:12: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->HANDLE
STATUSCODE() Received return code 404 ( Not found )
ERROR 02:15:12: SOAP Message CL_SOAP_MESSAGE->IF_SOAP_MESSAGE
PART~INITFOR_DESERIALIZE() A SOAP Runtime Core Exception
occurred in method XP_READ_TAG of class CL_SOAP_XP at position id
1 with internal error id 111 and error text Unallowed RFC-XML Tag
(SOAP_EINVALDOC) (fault location is 1 ).
After reading your post about the return code 404, I am in a dilemma whether, services in icman are unavailable or
the services at the location of the wsdl in the other server.
If you could clarify, it would be great.
Thanks a lot.
Vishnu. -
Unallowed RFC-XML Tag (SOAP_EINVALDOC) - Web Service using ABAP Proxy
Hi there
I am trying to consume a Web Service using ABAP Proxies. I have done the following in the system:
I configured the HTTP and HTTPS Proxy settings.
I created a package with package interfaces SAI_TOOLS and SAPPINT included under the Use Access tab.
I created the proxy classes by using the WSDL provided by the system I'm trying to interface with.
I created my HTTP destination RFC via SM59.
I configured a logical port for the proxy.
I developed the ABAP code for calling the proxy.
In the code the exception CX_AI_SYSTEM_FAULT gets raised with error message <b>"Unallowed RFC-XML Tag (SOAP_EINVALDOC)"</b> when I call the method for passing data to the destination system in the proxy class.
I had a look at SM21 and the following message was written in the log:
<b>"SOAP Runtime: SOAP Runtime exception: 111 occurred in method XP_READ_TAG of class CL_SOAP_XP at position 1
SOAP Runtime: Exception message: Unallowed RFC-XML Tag (SOAP_EINVALDOC)"</b>. I also looked at SAP Note 919886 which states that it can be dumps in the system, missing configuration or the path prefix of the RFC destination that is incorrect. I cannot find any ST22 entries. The trace file looks as follows:
SAP System ID: DGH
Client: 009
User: COLESKG
System time: 072910
System date: 20070531
SAP Release: 700
Host: hd307c
Operating system: AIX
DB System: ORACLE
Program: ZUK_IPA00003
Processing State: 0
Location: Client
Transport Binding: http://schemas.xmlsoap.org/soap/http
SOAP Application: urn:sap-com:soap:runtime:application:client
SOAP Runtime Protocol: http://www.sap.com/webas/630/soap
/runtime/protocol
SOAP Protocols: <initial>
Request Message: <initial>
Response Message: <initial>
Fault: <initial>
Registry: <initial>
SOAP Roles: <initial>
Trace Level: 3
Logging Level: 2
Monitoring Level: 0
Security Profile: <initial>
WS Security Protocol: <initial>
INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Try to create client application for Proxyclass:
ZES_CO_PROCESS_EMPLOYEE_BATCH LP name: DEFAULT
INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Client application created
INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Try to initialize client application
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->IF_SOAP_APPLICATION_CS~INIT() Try to initialize application
urn:sap-com:soap:runtime:application:client
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Create new runtime CL_SOAP_RUNTIME_CLIENT
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->REGISTER_APPLICATION() Try to register application
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->REGISTER_APPLICATION() Application registered
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Read type of transport binding from
configuration
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Create new transport binding type
http://schemas.xmlsoap.org/soap/http
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~INIT() Try to initialize
http://schemas.xmlsoap.org/soap/http
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~INIT() http://schemas.xmlsoap
.org/soap/http initialized
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~REQUEST() Try to create request message
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~REQUEST() Request message created
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~RESPONSE() Try to create response message
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~RESPONSE() Response message
created
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Try to initialize
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Check transport binding
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Create runtime protocol
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Try to initialize SOAP Runtime-intrinsic
Protocol as SENDER with Priority 5
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Try to create trace header/part
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Trace header/part created
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Try to create logging header/part
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Logging header/part created
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Protocol initialized
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT()
Initialized
INFO 07:29:10: SOAP Protocol CL_SOAP_PROTOCOL_FACTORY->CREATE()
Try to create instance for http://www.sap.com/webas/630/soap
/runtime/session/protocol::http://www.sap.com/webas/630/soap
/runtime/session/protocol/srt640_impl
INFO 07:29:10: SOAP Protocol CL_SOAP_PROTOCOL_FACTORY->CREATE()
Instance of CL_SOAP_SESSION_PROTOCOL created for http://www.sap.com/webas/630/soap/runtime/session/protocol::http://www.sap.com/webas/630/soap/runtime/session/protocol/srt640_impl
INFO 07:29:10: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Try to initialize SOAP Session Protocol
as SENDER with Priority 5
INFO 07:29:10: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Protocol initialized
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT_GEN->CONFIGURE_FEATURES() Try to configure features
INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_DESTINATION() Try to
create ICF Client for DESTINATION = ALSB
INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_DESTINATION() ICF
Client created by DESTINATION
INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_DESTINATION_URL_PATH() Set
DESTINATION PATH = /SapHRSmartIntegrationWeb/processes/ProcessEmployeeBatch.jpd
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT_GEN->CONFIGURE_FEATURES() Features configured
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->IF_SOAP_APPLICATION_CS~INIT() Application urn:sap-com:soap
:runtime:application:client initialized
INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Client application initialized
Trace file opened at 20070531 073030 GMT SAP-REL 700,0,95
Error in module XMLParserGetNextElement:773
Id @(#) $Id: //bas/700_REL/src/krn/rfc/xrfcpars.c#2 $
Unallowed RFC-XML Tag
Error in module XMLConverterReadTag:3061
Id @(#) $Id: //bas/700_REL/src/krn/rfc/xrfccnvrt.c#5 $
Unallowed RFC-XML Tag(24)
Error in module ab_soap:4392
Id @(#) $Id: //bas/700_REL/src/krn/rfc/abxrfccal.c#2 $
failed with return code 1
It then must be something in the config. Has anyone got any idea why this message is encountered?
Kind Regards
Gustav Coleske
Message was edited by:
Gustav ColeskeHi,
I have the same problem as described.
Can you give me a little more information about the error you have solved in the proxy.
Thanks for help
John -
Error deserializing arguments, xml tag without a recognized type
I am trying to run a webservice created using Weblogic Workshop 8.1sp2 that communicates
with an ejb control. When I test in debug mode, I get the above error, specifically:
<detail>
<jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
com.bea.wlw.runtime.core.request.RequestValidationException: Error deserializing
arguments.
Encountered an xml tag without a recognized type: the type must be declared with
an xsi:type attribute.
Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered an xml tag with
out a recognized type: the type must be declared with an xsi:type attribute.
</detail>
I am passing a Request object to the jws method (to the ejb) that has a Collection
as an instance member. This Collection references objects of another type, Param
(code for both objects below). Before passing the object, I convert the Collection
to an array of objects. When I call the operation via a java client, I get the
above message.
In Workshop, I've included the Request and Param classes as the parameter xml
and the soap style is rpc. I've tested the ejb by itself and it is working fine.
Request.java:
import java.util.*;
public class Request implements java.io.Serializable
protected Collection params=null;
public Collection getParams()
{ return params; }
public void setParams(Collection data)
{ params=data; }
Param.java:
public class Param implements java.io.Serializable
private String name=null;
private Object value=null;
public String getName()
{ return name; }
public void setName(String data)
{ name = data; }
public Object getValue()
{ return value; }
public void setValue(Object data)
{ value=data; }
Here's the code from the jws:
public class MyWS implements com.bea.jws.WebService
* @common:control
private control.PSEjbControl psEJB;
static final long serialVersionUID = 1L;
* @common:operation
* @jws:parameter-xml
* include-java-types="mypackage.Request mypackage.Param"
* @jws:protocol soap-style="rpc"
public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
System.out.println("arg0 : " + arg0);
psEJB.addData(arg0);
*Note: in the server console, arg0 comes through as null when called from my client.
Here's the bit from my client:
import weblogic.jws.proxies.*;
import org.openuri.www.encodedTypes.Request;
import org.openuri.www.encodedTypes.Param;
public void go(String wsdl) throws Exception {
MyWSSoap mw = null;
mw = new MyWS_Impl().getMyWSSoap();
Request req = new Request();
Collection reqColl = new ArrayList();
Param param1 = new Param();
param1.setName("NAME");
param1.setValue("Joe Tester");
Param param2 = new Param();
param2.setName("ADDRESS");
param2.setValue("345 Test Drive");
reqColl.add(param1);
reqColl.add(param2);
Object[] obs = reqColl.toArray();
req.setParams(obs);
mw.addData(req);
Not sure if this enough to go by. Please let me know if you need more information.
Any help is really appreciated. Thanks.Hi Keith,
My only suggestion is to factor out the java.util.Collection (see the
docs here [1]) with either primitive types or XMLBeans [2].
Sorry, not much help. You might also ask your question in the workshop
[3] newsgroup.
Bruce
[1]
http://e-docs.bea.com/workshop/docs81/doc/en/integration/reference/refJavaClassConversion.html
[2]
http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/xmlbeans/conXMLBeansSupportBuiltInSchemaTypes.html
[3]
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.workshop
Keith wrote:
>
Hi Bruce, thanks for the reply. I set the operation for document-style soap and
still get the deserialization exception as mentioned in my original note. Below
is the wsdl. Note: in my original note, the problematic operation was addData()
which is now named addBusinessLocation(). As always, your help is greatly appreciated.
Keith
<?xml version="1.0" encoding="utf-8"?>
<!-- @editor-info:link autogen="true" source="PublicServiceWS.jws" -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.openuri.org/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
targetNamespace="http://www.openuri.org/">
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.openuri.org/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:ope="http://www.openuri.org/">
<s:element name="addBusinessLocation">
<s:complexType>
<s:sequence>
<s:element name="arg0" type="ope:Request" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="addBusinessLocationResponse">
<s:complexType>
<s:sequence/>
</s:complexType>
</s:element>
<s:element name="getBusinessLocation">
<s:complexType>
<s:sequence/>
</s:complexType>
</s:element>
<s:element name="getBusinessLocationResponse">
<s:complexType>
<s:sequence>
<s:element name="getBusinessLocationResult" type="ope:Response" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Response" nillable="true" type="ope:Response"/>
<s:element name="repeat">
<s:complexType>
<s:sequence>
<s:element name="in" type="s:string" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="repeatResponse">
<s:complexType>
<s:sequence>
<s:element name="repeatResult" type="s:string" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true" type="s:string"/>
<s:complexType name="Request">
<s:sequence>
<s:element name="Params" type="ope:Collection" minOccurs="0"/>
</s:sequence>
</s:complexType>
<s:complexType name="Collection">
<s:sequence>
<s:element name="item" type="s:anyType" nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</s:sequence>
</s:complexType>
<s:complexType name="Param">
<s:sequence>
<s:element name="Name" type="s:string" minOccurs="0"/>
<s:element name="Value" type="s:anyType" minOccurs="0"/>
</s:sequence>
</s:complexType>
<s:complexType name="Response">
<s:complexContent>
<s:extension base="ope:Request">
<s:sequence/>
</s:extension>
</s:complexContent>
</s:complexType>
</s:schema>
</types>
<message name="addBusinessLocationSoapIn">
<part name="parameters" element="s0:addBusinessLocation"/>
</message>
<message name="addBusinessLocationSoapOut">
<part name="parameters" element="s0:addBusinessLocationResponse"/>
</message>
<message name="getBusinessLocationSoapIn">
<part name="parameters" element="s0:getBusinessLocation"/>
</message>
<message name="getBusinessLocationSoapOut">
<part name="parameters" element="s0:getBusinessLocationResponse"/>
</message>
<message name="repeatSoapIn">
<part name="parameters" element="s0:repeat"/>
</message>
<message name="repeatSoapOut">
<part name="parameters" element="s0:repeatResponse"/>
</message>
<message name="getBusinessLocationHttpGetIn"/>
<message name="getBusinessLocationHttpGetOut">
<part name="Body" element="s0:Response"/>
</message>
<message name="repeatHttpGetIn">
<part name="in" type="s:string"/>
</message>
<message name="repeatHttpGetOut">
<part name="Body" element="s0:string"/>
</message>
<message name="getBusinessLocationHttpPostIn"/>
<message name="getBusinessLocationHttpPostOut">
<part name="Body" element="s0:Response"/>
</message>
<message name="repeatHttpPostIn">
<part name="in" type="s:string"/>
</message>
<message name="repeatHttpPostOut">
<part name="Body" element="s0:string"/>
</message>
<portType name="PublicServiceWSSoap">
<operation name="addBusinessLocation">
<input message="s0:addBusinessLocationSoapIn"/>
<output message="s0:addBusinessLocationSoapOut"/>
</operation>
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationSoapIn"/>
<output message="s0:getBusinessLocationSoapOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatSoapIn"/>
<output message="s0:repeatSoapOut"/>
</operation>
</portType>
<portType name="PublicServiceWSHttpGet">
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationHttpGetIn"/>
<output message="s0:getBusinessLocationHttpGetOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatHttpGetIn"/>
<output message="s0:repeatHttpGetOut"/>
</operation>
</portType>
<portType name="PublicServiceWSHttpPost">
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationHttpPostIn"/>
<output message="s0:getBusinessLocationHttpPostOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatHttpPostIn"/>
<output message="s0:repeatHttpPostOut"/>
</operation>
</portType>
<binding name="PublicServiceWSSoap" type="s0:PublicServiceWSSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="addBusinessLocation">
<soap:operation soapAction="http://www.openuri.org/addBusinessLocation"
style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getBusinessLocation">
<soap:operation soapAction="http://www.openuri.org/getBusinessLocation"
style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="repeat">
<soap:operation soapAction="http://www.openuri.org/repeat" style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<binding name="PublicServiceWSHttpGet" type="s0:PublicServiceWSHttpGet">
<http:binding verb="GET"/>
<operation name="getBusinessLocation">
<http:operation location="/getBusinessLocation"/>
<input>
<http:urlEncoded/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
<operation name="repeat">
<http:operation location="/repeat"/>
<input>
<http:urlEncoded/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
</binding>
<binding name="PublicServiceWSHttpPost" type="s0:PublicServiceWSHttpPost">
<http:binding verb="POST"/>
<operation name="getBusinessLocation">
<http:operation location="/getBusinessLocation"/>
<input>
<mime:content type="application/x-www-form-urlencoded"/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
<operation name="repeat">
<http:operation location="/repeat"/>
<input>
<mime:content type="application/x-www-form-urlencoded"/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
</binding>
<service name="PublicServiceWS">
<port name="PublicServiceWSSoap" binding="s0:PublicServiceWSSoap">
<soap:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
<port name="PublicServiceWSHttpGet" binding="s0:PublicServiceWSHttpGet">
<http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
<port name="PublicServiceWSHttpPost" binding="s0:PublicServiceWSHttpPost">
<http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
</service>
</definitions>
Bruce Stephens <[email protected]> wrote:
Hi Keith,
As a quick test, you might try changing the protocol style to use
doc/lit (@jws:protocol soap-style="document") to see if this provides
another view on the real issue.
Could you post the generated WSDL?
Thanks,
Bruce
Keith wrote:
I am trying to run a webservice created using Weblogic Workshop 8.1sp2that communicates
with an ejb control. When I test in debug mode, I get the above error,specifically:
<detail>
<jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
com.bea.wlw.runtime.core.request.RequestValidationException: Errordeserializing
arguments.
Encountered an xml tag without a recognized type: the type must bedeclared with
an xsi:type attribute.
Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered anxml tag with
out a recognized type: the type must be declared with an xsi:type attribute.
</detail>
I am passing a Request object to the jws method (to the ejb) that hasa Collection
as an instance member. This Collection references objects of anothertype, Param
(code for both objects below). Before passing the object, I convertthe Collection
to an array of objects. When I call the operation via a java client,I get the
above message.
In Workshop, I've included the Request and Param classes as the parameterxml
and the soap style is rpc. I've tested the ejb by itself and it isworking fine.
Request.java:
import java.util.*;
public class Request implements java.io.Serializable
protected Collection params=null;
public Collection getParams()
{ return params; }
public void setParams(Collection data)
{ params=data; }
Param.java:
public class Param implements java.io.Serializable
private String name=null;
private Object value=null;
public String getName()
{ return name; }
public void setName(String data)
{ name = data; }
public Object getValue()
{ return value; }
public void setValue(Object data)
{ value=data; }
Here's the code from the jws:
public class MyWS implements com.bea.jws.WebService
* @common:control
private control.PSEjbControl psEJB;
static final long serialVersionUID = 1L;
* @common:operation
* @jws:parameter-xml
* include-java-types="mypackage.Request mypackage.Param"
* @jws:protocol soap-style="rpc"
public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
System.out.println("arg0 : " + arg0);
psEJB.addData(arg0);
*Note: in the server console, arg0 comes through as null when calledfrom my client.
Here's the bit from my client:
import weblogic.jws.proxies.*;
import org.openuri.www.encodedTypes.Request;
import org.openuri.www.encodedTypes.Param;
public void go(String wsdl) throws Exception {
MyWSSoap mw = null;
mw = new MyWS_Impl().getMyWSSoap();
Request req = new Request();
Collection reqColl = new ArrayList();
Param param1 = new Param();
param1.setName("NAME");
param1.setValue("Joe Tester");
Param param2 = new Param();
param2.setName("ADDRESS");
param2.setValue("345 Test Drive");
reqColl.add(param1);
reqColl.add(param2);
Object[] obs = reqColl.toArray();
req.setParams(obs);
mw.addData(req);
Not sure if this enough to go by. Please let me know if you need moreinformation.
Any help is really appreciated. Thanks. -
Problem using JSTL XML tags.
My xml tag is giving problems. All other tags (core/sql and EL) are working fine. Even a very simple code like :
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!-- parse an XML document -->
<x:parse var="simple">
<a>
<b>
<c>C </c>
</b>
<d>
<e> E </e>
</d>
</a>
</x:parse>
<!-- display using XPath expressions -->
<x:out select="$simple//e"/>
gives error as :
javax.servlet.ServletException: Cannot inherit from final class
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.jsp.xml.first_jsp._jspService(first_jsp.java:65)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Pls. help!Works with no problems for me. (same exact code posted into a JSP)
Running on Tomcat 5, Java1.4
What server are you running, and version of java?
Is there anything else on the page? Are you extending a class somehow?
Do you have any extra libraries in the web-inf/lib directory that might be conflicting? -
How can I replace a text/range of text enclosed in a XML tag
I want to replace a piece of text enclosed inside a XML tag in a text frame.
In my input parameters, I have the In-design document page number, text frame UID in that page and the XML tag name inside that text frame
which encloses my old text.
what command/function/interface can I use which can help me to replace the existing text with the input text ?
eg:
[old text] -----> [new text]
where [ ] is XML tag with name tag1.After some trail and POC, I was able to write the below piece of code.
This detects the starting and ending position of the marker and based on that we can replace the text inside it. Hope it helps.
InterfacePtr<IDocumentSignalData> data(signalMgr, UseDefaultIID());
if (data == nil)
break;
UIDRef docRef = data->GetDocument();
InterfacePtr<IDocument> doc(docRef, IID_IDOCUMENT);
IDataBase *db = docRef.GetDataBase();
//Get the spread
InterfacePtr<ISpreadList> spreadList(doc, UseDefaultIID());
int32 spreadCount = spreadList->GetSpreadCount();
for ( int32 spreadIndex = 0; spreadIndex < spreadCount; spreadIndex++ )
// Get the spread reference
UIDRef spreadUIDRef(db, spreadList->GetNthSpreadUID(spreadIndex));
// Get the spread object
InterfacePtr<ISpread> spread(spreadUIDRef, UseDefaultIID());
int32 numberOfPages = spread->GetNumPages();
for (int32 nPage = 0; nPage < numberOfPages; nPage++ )
UIDList pageItemList(db);
spread->GetItemsOnPage(nPage, &pageItemList, kFalse, kFalse);
// Iterate the page items and save off the UIDs of frames.
int32 pageItemListLength = pageItemList.Length();
for (int32 j = 0; j < pageItemListLength; j++ )
UIDRef pageItemRef = pageItemList.GetRef(j);
InterfacePtr<IFrameType> frame(pageItemRef, UseDefaultIID());
if( frame->IsTextFrame() )
//Now trying to get the marker position for XML tag
TextIndex startPos=0,endPos=0;
IXMLReferenceData *xmlReferenceData= Utils<IXMLUtils>()->QueryXMLReferenceData(pageItemRef);
XMLReference ref = xmlReferenceData->GetReference();
//IIDXMLElement *element = ref.Instantiate();
InterfacePtr<IIDXMLElement> element(ref.Instantiate());
UID tagUID = element->GetTagUID();
WideString elementName = element->GetTagString();
for(int32 i=0; i < element->GetChildCount(); i++)
XMLReference childRef = element->GetNthChild(i);
InterfacePtr<IIDXMLElement> child_element(childRef.Instantiate());
tagUID = child_element->GetTagUID();
elementName = child_element->GetTagString();
int32 index=0;
Utils<IXMLUtils>()->GetElementMarkerPositions(child_element,&startPos,&endPos);
startPos += 1; // move forward to exclude the starting tag
} // iterate pages in spread -
XML tag markers moved: Find and Replace causing problem in xml elements
Hi All,
I am doing find and replace using GREP. While using the expression like $1, $2 (Found Items) in the change to field it changes the placement of tag marker. If the found item is a part of two of more xml elements, I am getting a serious problem while replacing it. (ie. The xml tag markers are moved.)
See the screen shot below, then you may get better idea. And help me to overcome this issue.
This is just an example to show you what i'm trying to say, there are so many cases like this.
Original text/ Before doing find replace
After replacing
Green4everHi Peter and John,
but it seems to me that the example is looking for any space that
follows a semi-colon and has two word characters following it, and
repalce that with an em space. I think you could do the same using look
behind and look ahead and not need to replace the found text.
Yes you are right about the look behind and look ahead. I'd like to show some more examples to show what the actual problem is,
Original/Before Replacing,
(Consider there is another case here, instead of em-space some times normal word space will also be there)
Using the Grep:
Find What---------> ^(\d+\.(?:\d+)?)~m
Change To------------->$1\t
After Replace:
Did I make any sense? Eventhough this will not make any changes in the layout, my requirement is to insert the tab out-side the tag marker not indise.
Green4ever -
Urgent help needed for XML Tags using XMLForest()
Folks
I need some urgent help regarding getting use defined tag in your
XML output.
For this I am using XMLElement and XMLForest which seems to work fine
when used at the SQL prompt but when used in a procedure throws and error
SQL> Select SYS_XMLAGG(XMLElement("SDI",
XMLForest(sdi_num)))
From sdi
where sdi_num = 22261;- WORKS FINE
But when used in a procedure,doesnt seem to work
Declare
queryCtx DBMS_XMLQuery.ctxType;
v_xml VARCHAR2(32767);
v_xmlClob CLOB;
BEGIN
v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
XMLFOREST(sdi_num)))
From sdi
where sdi_num = 22261';
queryCtx :=DBMS_XMLQuery.newContext(v_xml);
v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
display_xml(v_xmlClob);
End;
CREATE OR REPLACE PROCEDURE display_xml(result IN OUT NOCOPY CLOB)
AS
xmlstr varchar2(32767);
line varchar2(2000);
BEGIN
xmlstr:=dbms_lob.SUBSTR(result,32767);
LOOP
EXIT WHEN xmlstr is null;
line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
dbms_output.put_line('.'||line);
xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
END LOOP;
end;
SQL> /
.<?xml version = '1.0'?>
.<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
XML tag name.</ERROR>
PL/SQL procedure successfully completed.
SQL>HELP is appreciated as to where I am going wrong?Hi,
if you want to transform something to something else, you should declare, what is your source.
I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
Kind regards,
Hendrik -
Error for fetching long text in xml tag for xml publisher report
My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
button, or try again later.
The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
G_MEDIA...
XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
in xml tag.
One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
Please help.Hi,
Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report... -
XML tags in an "export : XML" Report Template
Hi All,
I'm using the export XML report template to produce XML from a query. One of the column contains XML tags and the template is translating eg: if the column is "Groups" then I get:
<Groups>& lt ;Group& gt ;Sales & lt ;/Group & gt ; & lt ;Group& gt ;IT& lt ;/Group& gt ;</Groups>(ignoring all the spaces - OTN is translating the & gt 's :)
instead of:
<Groups><Group>Sales<Group><Group>IT</Group></Groups>Is there an easy way to stop this ?
Thanks,
Steve
Edited by: spilgrim on Mar 6, 2009 12:14 PM
Edited by: spilgrim on Mar 6, 2009 12:14 PMHi Steve,
Did you ever solve this? I'm having a similar issue while trying to build a Report Query that I want to build with nested elements.
<?xml version="1.0" encoding="UTF-8" ?>
- <ROWSET>
- <ROW>
<EE_ID>467</EE_ID>
<EE_GRIDS>
<EE_GRID INDEX="1">
<EE_INCENTIVE_CASH_PROGRAM>MIP</EE_INCENTIVE_CASH_PROGRAM>
<EE_BONUS>20</EE_BONUS>
</EE_GRID>
<EE_GRID INDEX="2">
<EE_INCENTIVE_CASH_PROGRAM>VIP</EE_INCENTIVE_CASH_PROGRAM>
<EE_BONUS>30</EE_BONUS>
</EE_GRID>
</EE_GRIDS>
</ROW>
- <ROW>
<EE_ID>468</EE_ID>
<EE_GRIDS>
<EE_GRID INDEX="1">
<EE_INCENTIVE_CASH_PROGRAM>MIP</EE_INCENTIVE_CASH_PROGRAM>
<EE_BONUS>20</EE_BONUS>
</EE_GRID>
<EE_GRID INDEX="2">
<EE_INCENTIVE_CASH_PROGRAM>VIP</EE_INCENTIVE_CASH_PROGRAM>
<EE_BONUS>30</EE_BONUS>
</EE_GRID>
</EE_GRIDS>
</ROW>
</ROWSET>
Thanks
Keith
Edited by: kmatthew on Mar 17, 2009 2:44 PM -
How can I add text to a field based on XML tagging?
I'm fairly new to using XML in InDesign layouts, and I'm currently facing an issue getting a bunch of content from database records formatted in a print document (text that flows over dozens of pages). I've figured out how to create an InDesign template, but I need to be able to add text between some of the XML elements in two different scenarios:
1. Add text or line breaks before or after an XML element that always appears in the document. For example: Adding "Description:" before the XML-tagged description content, or adding a return after the last element in a list.
2. Add text before or after an XML element only if it appears in the document. For example: If there's a second phone number, tagged "Phone2" in the XML, then I want " or " to appear before it in the layout. Otherwise there's just one phone number and it continues on to the next piece of content.
I have tried inserting this text into the InDesign template, but keeping them means having to also keep parts of the template that aren't used on every import--so I have a bunch of "or Phone2" bits of text to find and replace afterward. That's OK, but I'd like a more elegant solution that doesn't leave potential mistakes in my layout.
In my preliminary research so far, it looks like an XSLT or scripting might be able to handle this, but I don't know where to start. Can someone tell me if what I'm looking for is possible and suggest the best way to do it? I'm going to have to trial-and-error a solution for this myself.
I am using ID CS6 on a Mac. Thanks in advance for your help.Thanks for your reply. The line that you mention is added at the top of the message, and includes the original sender's email. I would like my name to appear, next to each line I add in the text of the original mail.
For example:
Assuming my name is Joe Smith, what I would like to have as the final reply is described below.
The lines that start with "[Joe Smith]" are my replies, to the original items in the original mail.
On 21 Feb 2013, at 09:03, Jon Doe wrote:
We need an effort estimation for thenew feature
[Joe Smith] It will be about 2 days
and additional resources needed
[Joe Smith] 2 new icons -
Problem trying to wrap a Microsoft Word paragraph in XML tags?!? :/
Hello everyone. I really hope this is not a big problem and that some of your could help. I wrote a Macro in VBA like a year ago that was intented to put a tag before every single paragraph in a document. The logic validates that the paragraph have no other
tag before putting one. All of this is based in styles. Some font styles would end up with different tags. This is my code and it works:
Sub edictos()
' Edictos de El Nuevo Día
' 06/20/2005 by Carlos Stella Sistemas de Información
' Actualización 08/08/2012
'Ver 2.0 made by Samuel Otero -> 07/26/2013
Dim oPara As Paragraph
Dim oRng As Range
'Borramos headers y footers
Call ClearHeaderFooters
'Borramos column breaks
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^n"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
'Lógica para poner los tags de Tera donde van
For Each oPara In ActiveDocument.Paragraphs
If oPara.Range.Style = "C10" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(intro) "
End If
End If
If oPara.Range.Style = "J10" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(intro) "
End If
End If
If oPara.Range.Style = "J12" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(intro) "
End If
End If
If oPara.Range.Style = "LE" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(main) "
End If
End If
If oPara.Range.Style = "XL" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(main) "
End If
End If
If oPara.Range.Style = "MF" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(main) "
End If
End If
If oPara.Range.Style = "HG" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(main) "
End If
End If
If oPara.Range.Style = "LW" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(main) "
End If
End If
If oPara.Range.Style = "J8" Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(main) "
End If
End If
' Agarrando texto sin estilo >_>
If oPara.Range.Font.Size <= 6 Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(main) "
End If
End If
If oPara.Range.Font.Size = 8 Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(capara) "
oPara.Range.InsertParagraphBefore
oPara.Range.InsertBefore "(start) "
End If
End If
If oPara.Range.Font.Size = 10 Then
If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
InStr(1, oPara.Range.Text, "(main)") = 0 And _
InStr(1, oPara.Range.Text, "(capara)") = 0 Then
oPara.Range.InsertBefore "(intro) "
End If
End If
Next oPara
'Con esto borramos el primer espacio del documento (evitamos una línea demás en los edictos)
Selection.HomeKey Unit:=wdStory
Selection.MoveDown Unit:=wdLine, Count:=2
Selection.MoveRight Unit:=wdCharacter, Count:=8
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
'Crea el .txt para ser importado a Tera
ChangeFileOpenDirectory "C:\edictos\"
ActiveDocument.SaveAs FileName:="C:\edictos\Edictos.txt", FileFormat:= _
wdFormatText, AddToRecentFiles:=True, _
WritePassword:="", EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False, Encoding:=1252, InsertLineBreaks:=False, AllowSubstitutions:=False, _
LineEnding:=wdCRLF
MsgBox "Proceso completado", 0, "Yay!"
ActiveDocument.Close
End Sub
As you see, it ends up saving a .txt document with the tags.
NOW... the issue is that the tags wont work anymore in the new system, and I need to wrap the paragraph in XML Tags. I tried to do something like for styles:
If oPara.Range.Style = "LW" Then
If InStr(1, oPara.Range.Text, "<intro>") = 0 And _
InStr(1, oPara.Range.Text, "<main>") = 0 And _
InStr(1, oPara.Range.Text, "<capara>") = 0 Then
oPara.Range.InsertAfter "</main> "
oPara.Range.InsertBefore "<main> "
End If
End If
But it just would add the two tags before the paragraphs!!! Is there anyway to wrap the paragraph in XML tags, following my logic? Somebody help please!! Thank you!! :/Hi,
Sorry for my delay.
I am afraid that this is not the proper forum for this issue, and I found that you have posted it in dedicated forum.
http://social.msdn.microsoft.com/Forums/office/en-US/8dad5670-d90b-4ea8-abe2-bc785a2368ca/problem-trying-to-wrap-a-microsoft-word-paragraph-in-xml-tags-?forum=worddev#8dad5670-d90b-4ea8-abe2-bc785a2368ca
I would suggest you focus on that thread to get more dedicated support.
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to add Multiple XML Tags for a single column for an RDF
Hi Gurus,
I have Requirement in the Oracle D2k Report from which we are generating the xml tags.
My Requirement is in a table i have 2 columns say A and B.
i am able to generate three xml tags separately using the report builder by clicking on the column name and in the xml setting giving the xml tag.
eg: table Acount contains 2 columns A and B with respective data
A B
QT 1
QTS 0
QTR 2
i am able to general xml tags like this
<ACount>
<AStatus>QT</AStatus>
<HeadCount>1</HeadCount>
</ACount>
<ACount>
<AStatus>QTS</AStatus>
<HeadCount>0</HeadCount>
</ACount>
my requiremnt for the xml tags is
<ACount>
<AStatusQT>1</AStatusQT>
<AStatusQTS>0</AStatusQTS>
</ACount>
kindly help me out how to achieve this requirment in the rdf file mulitple xml tags.
all your input are most valuable to me, thanks in advance
Edited by: 909577 on Apr 9, 2012 3:10 PMI'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
To answer your initial questions, you are correct with both your assumptions:
1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
So in following your instructions, well that's the problem I'm not quite following :)
1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden? If so, I've done this.
2) I'm not quite sure where to use the statement you provided me. You said to put it in the dataset, but I don't know which dataset. I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
as a parameter). If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties. I tried this, and it did not generate any errors, but it also kept my report groups from displaying
-- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there. When I did this and ran the report, I would get the following error:
The 'SchoolDaysActiveWeek' parameter is missing a value
So what am I missing!?
Also, thanks for taking the time to respond!! -
How can i find and replace xml tags?
Hi, i am using xml in my workflow and want to be able to remove certain tags if they contain particular text.
here is an example of my xml structure…
<entry>
<name>DEFAULT</name>
<tel>DEFAULT</tel>
<address>DEFAULT</address>
</entry>
I am using this initial structure to set the paragraph styles to be followed when the xml data is imported.
This leaves DEFAULT in place wherever an entry doesn't have any content for that field.
I want to be able to import my XML then run a script that removes any tags that include DEFAULT, - I need the entire xml tag to be removed not just the text, if i do a normal find and replace it will only remove the text not the tags which is causing problems with styling. I also want to remove the end of para/return (^p) that i've placed at the end of the line. So it would be the same as opening up story editor and removing the content + tags + hard return in there, but i want to automate the process…
So i think this is what i need to search for in each case
"<name>DEFAULT</name>^p"
and i want to replace it with nothing ""
Can this be done through scripting (ideally javascript)?
I have a little knowledge of javascript but am not sure how to search and target that kind of string in indesign...
using indesign cs5
many thanksHi,
Script should do it in two steps:
1. find all occurences of i.e. ">DEFAULT<"
2. remove whole paragraph which is a found_text's container.
For example this way -JS - (a textFrame filled with your text should be selected) :
var mStory = app.selection[0].parentStory;
app.findTextPreferences = null;
app.findTextPreferences.findWhat = ">DEFAULT<";
var myF = mStory.findText();
var count = myF.length;
while (count--)
myF[count].paragraphs[0].remove();
rgds
Maybe you are looking for
-
Data Transfer from SAP R/3 to CRM System
Hi Experts, I need the Busniess Partner Data in CRM system from SAP R/3. Can i do this by ALE or is ther any other way to do it?..If i need to do it by ALE can anyone pls let me know what message type should i use and the steps that i have to follow.
-
I am having a problem with figures in pdf format that I place onto keynote slides. Sometimes when I open the presentation, text from the pdf figures is missing. After restarting keynote, the text comes back, but sometimes it takes several restarts fo
-
Using WebLogic Integrate to Pull data from a remote location
How do we use components of weblogic integrate for the following 1. Extract data from applications located in remote place. The applications were developed using sql server, foxpro, access and excel. 2.Use the extracted data for business process mana
-
Hi Guys, There are many free pdf readers out there in the market...adobe reader being the dominant one...still, many people just do not use adobe reader because of the blot...it is slow...is heavy...download size is big and then there are too many up
-
Safari can't access some sites
My husband's work has a website they need to access to get info about the company. We only have my iMac at home, and I think the site is mainly compatible with Internet Explorer, which of course is not available to Macs anymore, or at least I know it